Re: packaging rust

Marco Atzeri via Cygwin-apps <[email protected]> Mon, 29 Dec 2025 15:46:07 +0100
Newsgroups gmane.os.cygwin.applications
Message-ID <[email protected]>
On 02/11/2025 00:10, Jeremy Drake wrote:
> On Sun, 26 Oct 2025, Marco Atzeri via Cygwin-apps wrote:
> 
>> On 10/10/2025 21:29, Jeremy Drake via Cygwin-apps wrote:
>>> On Wed, 24 Sep 2025, ASSI via Cygwin-apps wrote:
>>>
>>>> ASSI via Cygwin-apps writes:
>>>> […]
>>>>

>>
>> any chance to have a test package to play with ?
>>
>> Almost all Cryptographic module of Python are written in Rust and I am stacked
>> in the upgrade process of a good chunk of them.
>>
> 
> The scallywag/GitHub Actions job uploads binary artifacts.  I've just
> pushed an update to 1.91.0.
> https://github.com/cygwin/scallywag/actions/runs/19003732079 /
> https://cygwin.com/cgi-bin2/jobs.cgi?id=10491
> 
> As far as a published-on-the-mirrors test package, it would need  some
> packaging love first, filling in the metadata properly, and probably being
> split into multiple packages.

Hi Jeremy,

I used the binary package as pseudo-package (after defining the 
CATEGORY=Devel) and built the latest python-bcrypt package.

The tests are positive with no failures that for python packages is
really a surprise.

Cygport needs to learn about rust as I am doing some acrobacies
to build multiple versions.

Let me know what help you need for the metadata.

Regards
Marco


testing 3.9
============================= test session starts 
==============================
platform cygwin -- Python 3.9.16, pytest-8.3.4, pluggy-1.6.0
benchmark: 5.2.3 (defaults: timer=time.perf_counter disable_gc=False 
min_rounds=5 min_time=0.000005 max_time=1.0 calibration_precision=10 
warmup=False warmup_iterations=100000)
rootdir: 
/cygdrive/d/cyg_pub/devel/python/python-bcrypt/python-bcrypt-5.0.0-1.x86_64/build
configfile: pyproject.toml
plugins: hypothesis-6.124.9, benchmark-5.2.3, env-1.1.5, mock-3.15.1, 
sugar-1.1.1
collected 147 items

tests/test_bcrypt.py ....................... [ 34%]
............................................ [ 83%]
........................                     [100%]

============================= 147 passed in 14.20s 
=============================
testing 3.12
============================= test session starts 
==============================
platform cygwin -- Python 3.12.12, pytest-9.0.2, pluggy-1.6.0
benchmark: 5.2.3 (defaults: timer=time.perf_counter disable_gc=False 
min_rounds=5 min_time=0.000005 max_time=1.0 calibration_precision=10 
warmup=False warmup_iterations=100000)
rootdir: 
/cygdrive/d/cyg_pub/devel/python/python-bcrypt/python-bcrypt-5.0.0-1.x86_64/build
configfile: pyproject.toml
plugins: hypothesis-6.148.8, benchmark-5.2.3, env-1.2.0, mock-3.15.1, 
sugar-1.1.1
collected 147 items

tests/test_bcrypt.py ....................... [ 34%]
............................................ [ 83%]
........................                     [100%]

============================= 147 passed in 13.63s 
=============================