On 2025-08-26 8 h 50 a.m., Simon Josefsson wrote:
Folks,

Is there someone who like to help on the rfc3161-client package, which
involves both Rust and Python?  Starting point is here:

https://salsa.debian.org/python-team/packages/python-rfc3161-client

Build failure here:
https://salsa.debian.org/python-team/packages/python-rfc3161-client/-/jobs/8106868

I haven't had time to look into the pointers given earlier, I am hoping
this is easy to solve for anyone familiar with Rust & Python packaging.

There is good interaction with upstream going on about dependencies for
the entire Sigstore stack --
https://github.com/sigstore/sigstore-python/issues/1524 -- and I think
we can influence things a little (like temporarily avoiding use of the
UV build system for some Python code) if we put some cycles into
preparing packages that are needed for Sigstore into Debian.

/Simon

Simon Josefsson <si...@josefsson.org> writes:

Jelmer Vernooij <jel...@jelmer.uk> writes:

I've packaged a few Python packages that are fully or partially
built in rust. The simplest examples are probably:

* dulwich
* python-upstream-ontologist

More advanced are e.g.:

* ruff

Thanks!

Alexander Kjäll <alexander.kj...@gmail.com> writes:

As long as the Rust crates are published on crates.io then I think it would
be easiest to package them in the rust team :)

They aren't on creates.io.  Since the need arose from a python library,
I'll see if I can complete this within the python team, but if the Rust
part of this package turns out to be heavy I think that is a bad idea
and it should be split up or moved to Rust team.  Maybe upstream could
publish the Rust crate on crates.io and separate the project into two
parts eventually.

weepingclown <weepingcl...@disroot.org> writes:

Hi,

Top of my head, there is src:pendulum and
src:python-orjson. *Probably* anything with a python3-maturin
build-dep can be of help.

Thank you!

I will try to learn from python-upstream-ontologist and python-orjson
which looks closest to this package.

/Simon


Here's an example of a Python project I worked on that uses maturin:

https://salsa.debian.org/python-team/packages/python-watchfiles

You'll need to patch the cargo file manually to use the right versions of the Rust packages in the Debian archive...

--
  ⢀⣴⠾⠻⢶⣦⠀
  ⣾⠁⢠⠒⠀⣿⡁  Louis-Philippe Véronneau
  ⢿⡄⠘⠷⠚⠋   po...@debian.org / veronneau.org
  ⠈⠳⣄

Reply via email to