unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Sharlatan Hellseher <sharlatanus@gmail.com>
To: guix-devel <guix-devel@gnu.org>
Cc: Efraim Flashner <efraim@flashner.co.il>
Subject: Re: Question on python-pydantic update, rust and maturin build tool
Date: Thu, 28 Dec 2023 19:20:10 +0000	[thread overview]
Message-ID: <CAO+9K5o9Oqd_3=b2Kg+iN5-=7Y-pFyunaTXiy9asr0UebS9drg@mail.gmail.com> (raw)
In-Reply-To: <ZY1ifRuMkEEDUhA9@3900XT>

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



-- 

… наш разум - превосходная объяснительная машина которая способна
найти смысл почти в чем угодно, истолковать любой феномен, но
совершенно не в состоянии принять мысль о непредсказуемости.


  reply	other threads:[~2023-12-28 16:22 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2023-12-28 20:46 ` Ricardo Wurmus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAO+9K5o9Oqd_3=b2Kg+iN5-=7Y-pFyunaTXiy9asr0UebS9drg@mail.gmail.com' \
    --to=sharlatanus@gmail.com \
    --cc=efraim@flashner.co.il \
    --cc=guix-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).