* Question on python-pydantic update, rust and maturin build tool
@ 2023-12-26 0:27 Sharlatan Hellseher
2023-12-28 11:56 ` Efraim Flashner
2023-12-28 20:46 ` Ricardo Wurmus
0 siblings, 2 replies; 4+ messages in thread
From: Sharlatan Hellseher @ 2023-12-26 0:27 UTC (permalink / raw)
To: guix-devel
[-- Attachment #1: Type: text/plain, Size: 460 bytes --]
Hi Guix!
It might be addressed to rust/python teams.
https://github.com/pydantic/pydantic-core
During update of some packages from (gnu packages astronomy) I've faced
with requirement for the fresh version of pydantic which depends on
pydantic-core built with rust and maturin.
This thread is just conversation opener for the potential strategy to deal
with similar cases where python projects start using rust with rare but new
build tool.
Thanks,
Oleg
[-- Attachment #2: Type: text/html, Size: 859 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Question on python-pydantic update, rust and maturin build tool
2023-12-26 0:27 Question on python-pydantic update, rust and maturin build tool Sharlatan Hellseher
@ 2023-12-28 11:56 ` Efraim Flashner
2023-12-28 19:20 ` Sharlatan Hellseher
2023-12-28 20:46 ` Ricardo Wurmus
1 sibling, 1 reply; 4+ messages in thread
From: Efraim Flashner @ 2023-12-28 11:56 UTC (permalink / raw)
To: Sharlatan Hellseher; +Cc: guix-devel
[-- Attachment #1: Type: text/plain, Size: 1301 bytes --]
On Tue, Dec 26, 2023 at 12:27:38AM +0000, Sharlatan Hellseher wrote:
> Hi Guix!
>
>
> It might be addressed to rust/python teams.
> https://github.com/pydantic/pydantic-core
>
> During update of some packages from (gnu packages astronomy) I've faced
> with requirement for the fresh version of pydantic which depends on
> pydantic-core built with rust and maturin.
>
> This thread is just conversation opener for the potential strategy to deal
> with similar cases where python projects start using rust with rare but new
> build tool.
We have maturin packaged at 1.1.0 and I believe it is even used to build
a couple of packages. python-rpds-py, which just landed in the repo
today, is probably the best short example of how to use a combination of
cargo and any other build system to build a project that doesn't really
need any phases overridden, just added/replaced.
Is there a specific version of pydantic that you need? I might be able
to put together something either using the crates in the master branch
or a newer version on the rust-team branch.
--
Efraim Flashner <efraim@flashner.co.il> רנשלפ םירפא
GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Question on python-pydantic update, rust and maturin build tool
2023-12-28 11:56 ` Efraim Flashner
@ 2023-12-28 19:20 ` Sharlatan Hellseher
0 siblings, 0 replies; 4+ messages in thread
From: Sharlatan Hellseher @ 2023-12-28 19:20 UTC (permalink / raw)
To: guix-devel; +Cc: Efraim Flashner
Hi Efraim,
I was about to update python-hvpy to v1.1.0 which requires
pydantic>=2.0.0
https://github.com/Helioviewer-Project/python-api/blob/v1.1.0/setup.cfg#L37
Pydantic 2+ (the latest is v2.5.3 2023-12-22) depends on pydantic-core (the
latest is v2.14.6 2023-12-21) which is built with Rust flavor.
pydantic-core==2.0.1
https://github.com/pydantic/pydantic/blob/v2.0/pyproject.toml#L64
Pydantic core is built with maturin 1, <2:
https://github.com/pydantic/pydantic-core/blob/v2.0.1/pyproject.toml
Currently I've prepared updates for anything which requires minimum overhead and
does not break built of dependent packages.
https://issues.guix.gnu.org/67915
Thanks,
Oleg
On Thu, 28 Dec 2023 at 11:56, Efraim Flashner <efraim@flashner.co.il> wrote:
>
> On Tue, Dec 26, 2023 at 12:27:38AM +0000, Sharlatan Hellseher wrote:
> > Hi Guix!
> >
> >
> > It might be addressed to rust/python teams.
> > https://github.com/pydantic/pydantic-core
> >
> > During update of some packages from (gnu packages astronomy) I've faced
> > with requirement for the fresh version of pydantic which depends on
> > pydantic-core built with rust and maturin.
> >
> > This thread is just conversation opener for the potential strategy to deal
> > with similar cases where python projects start using rust with rare but new
> > build tool.
>
> We have maturin packaged at 1.1.0 and I believe it is even used to build
> a couple of packages. python-rpds-py, which just landed in the repo
> today, is probably the best short example of how to use a combination of
> cargo and any other build system to build a project that doesn't really
> need any phases overridden, just added/replaced.
>
> Is there a specific version of pydantic that you need? I might be able
> to put together something either using the crates in the master branch
> or a newer version on the rust-team branch.
>
> --
> Efraim Flashner <efraim@flashner.co.il> רנשלפ םירפא
> GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351
> Confidentiality cannot be guaranteed on emails sent or received unencrypted
--
… наш разум - превосходная объяснительная машина которая способна
найти смысл почти в чем угодно, истолковать любой феномен, но
совершенно не в состоянии принять мысль о непредсказуемости.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Question on python-pydantic update, rust and maturin build tool
2023-12-26 0:27 Question on python-pydantic update, rust and maturin build tool Sharlatan Hellseher
2023-12-28 11:56 ` Efraim Flashner
@ 2023-12-28 20:46 ` Ricardo Wurmus
1 sibling, 0 replies; 4+ messages in thread
From: Ricardo Wurmus @ 2023-12-28 20:46 UTC (permalink / raw)
To: Sharlatan Hellseher; +Cc: guix-devel
Sharlatan Hellseher <sharlatanus@gmail.com> writes:
> It might be addressed to rust/python teams.
> https://github.com/pydantic/pydantic-core
>
> During update of some packages from (gnu packages astronomy) I've faced with requirement for the fresh version of pydantic which
> depends on pydantic-core built with rust and maturin.
In python-blake3 I avoided the use of maturin with a little bit of
manual work.
--
Ricardo
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-12-28 20:47 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-26 0:27 Question on python-pydantic update, rust and maturin build tool Sharlatan Hellseher
2023-12-28 11:56 ` Efraim Flashner
2023-12-28 19:20 ` Sharlatan Hellseher
2023-12-28 20:46 ` Ricardo Wurmus
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.