mbox

[meta-python,0/5] Upgrade python3-pydantic-*

Message ID cover.1723134758.git.tim.orling@konsulko.com
State Accepted
Headers show

Pull-request

https://git.openembedded.org/meta-openembedded-contrib timo/python3-pydantic-upgrade

Message

Tim Orling Aug. 8, 2024, 4:38 p.m. UTC
From: Tim Orling <tim.orling@konsulko.com>

We've had some trouble with python3-pydantic being upgrading without the
required version of python3-pydantic-core being available. To ensure we
do not keep having this happen, this series sets RECIPE_NO_UPDATE_REASON
in python3-pydantic.

There were a number of missing ptest dependencies, including python3-tzdata
which we did not have a recipe for yet. This series adds this new recipe.

Upstream has a patch, not yet in a release, for the TMPDIR [build-paths]
contamination which was injecting RUSTFLAGS into the _pydantic-core.*.so.
This series backports that patch.

The following changes since commit 49d707e0301d7bcbad386cbf3dd205ef6fdc561c:

  python3-cachetools: Upgrade 5.3.3 -> 5.4.0 (2024-08-02 08:52:53 -0700)

are available in the Git repository at:

  https://git.openembedded.org/meta-openembedded-contrib timo/python3-pydantic-upgrade
  https://git.openembedded.org/meta-openembedded-contrib/log/?h=timo/python3-pydantic-upgrade

Tim Orling (5):
  python3-tzdata: add recipe for v2024.1
  python3-tzdata: enable ptest
  python3-pydantic-core: upgrade 2.18.4 -> 2.21.0
  python3-pydantic: upgrade 2.7.3 -> 2.8.2
  python3-pydantic-core: backport patch

 .../ptest-packagelists-meta-python.inc        |   1 +
 .../python/python3-pydantic-core-crates.inc   | 280 ++++++++++--------
 ...sion-from-1.76-to-1.75-in-Cargo.toml.patch |  29 --
 ...8.4.bb => python3-pydantic-core_2.21.0.bb} |  16 +-
 ...tic_2.7.3.bb => python3-pydantic_2.8.2.bb} |   8 +-
 .../python/python3-tzdata/run-ptest           |   3 +
 .../python/python3-tzdata_2024.1.bb           |  24 ++
 7 files changed, 198 insertions(+), 163 deletions(-)
 delete mode 100644 meta-python/recipes-devtools/python/python3-pydantic-core/0001-Set-rust-version-from-1.76-to-1.75-in-Cargo.toml.patch
 rename meta-python/recipes-devtools/python/{python3-pydantic-core_2.18.4.bb => python3-pydantic-core_2.21.0.bb} (80%)
 rename meta-python/recipes-devtools/python/{python3-pydantic_2.7.3.bb => python3-pydantic_2.8.2.bb} (87%)
 create mode 100644 meta-python/recipes-devtools/python/python3-tzdata/run-ptest
 create mode 100644 meta-python/recipes-devtools/python/python3-tzdata_2024.1.bb

Comments

Khem Raj Aug. 8, 2024, 6:38 p.m. UTC | #1
does it address the buildpaths issue ? or should that patch be rebased 
on top of this.

On 8/8/24 9:38 AM, Tim Orling via lists.openembedded.org wrote:
> From: Tim Orling <tim.orling@konsulko.com>
> 
> We've had some trouble with python3-pydantic being upgrading without the
> required version of python3-pydantic-core being available. To ensure we
> do not keep having this happen, this series sets RECIPE_NO_UPDATE_REASON
> in python3-pydantic.
> 
> There were a number of missing ptest dependencies, including python3-tzdata
> which we did not have a recipe for yet. This series adds this new recipe.
> 
> Upstream has a patch, not yet in a release, for the TMPDIR [build-paths]
> contamination which was injecting RUSTFLAGS into the _pydantic-core.*.so.
> This series backports that patch.
> 
> The following changes since commit 49d707e0301d7bcbad386cbf3dd205ef6fdc561c:
> 
>    python3-cachetools: Upgrade 5.3.3 -> 5.4.0 (2024-08-02 08:52:53 -0700)
> 
> are available in the Git repository at:
> 
>    https://git.openembedded.org/meta-openembedded-contrib timo/python3-pydantic-upgrade
>    https://git.openembedded.org/meta-openembedded-contrib/log/?h=timo/python3-pydantic-upgrade
> 
> Tim Orling (5):
>    python3-tzdata: add recipe for v2024.1
>    python3-tzdata: enable ptest
>    python3-pydantic-core: upgrade 2.18.4 -> 2.21.0
>    python3-pydantic: upgrade 2.7.3 -> 2.8.2
>    python3-pydantic-core: backport patch
> 
>   .../ptest-packagelists-meta-python.inc        |   1 +
>   .../python/python3-pydantic-core-crates.inc   | 280 ++++++++++--------
>   ...sion-from-1.76-to-1.75-in-Cargo.toml.patch |  29 --
>   ...8.4.bb => python3-pydantic-core_2.21.0.bb} |  16 +-
>   ...tic_2.7.3.bb => python3-pydantic_2.8.2.bb} |   8 +-
>   .../python/python3-tzdata/run-ptest           |   3 +
>   .../python/python3-tzdata_2024.1.bb           |  24 ++
>   7 files changed, 198 insertions(+), 163 deletions(-)
>   delete mode 100644 meta-python/recipes-devtools/python/python3-pydantic-core/0001-Set-rust-version-from-1.76-to-1.75-in-Cargo.toml.patch
>   rename meta-python/recipes-devtools/python/{python3-pydantic-core_2.18.4.bb => python3-pydantic-core_2.21.0.bb} (80%)
>   rename meta-python/recipes-devtools/python/{python3-pydantic_2.7.3.bb => python3-pydantic_2.8.2.bb} (87%)
>   create mode 100644 meta-python/recipes-devtools/python/python3-tzdata/run-ptest
>   create mode 100644 meta-python/recipes-devtools/python/python3-tzdata_2024.1.bb
> 



> 
> 
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#111669): https://lists.openembedded.org/g/openembedded-devel/message/111669
> Mute This Topic: https://lists.openembedded.org/mt/107793237/1997914
> Group Owner: openembedded-devel+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [raj.khem@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
Tim Orling Aug. 8, 2024, 8:27 p.m. UTC | #2
On Thu, Aug 8, 2024 at 11:38 AM Khem Raj <raj.khem@gmail.com> wrote:

> does it address the buildpaths issue ? or should that patch be rebased
> on top of this.
>
> Patch 5/5 is the buildpaths issue and I'd rather not rebase again. I've
already run all this patch series through ptest etc.


> On 8/8/24 9:38 AM, Tim Orling via lists.openembedded.org wrote:
> > From: Tim Orling <tim.orling@konsulko.com>
> >
> > We've had some trouble with python3-pydantic being upgrading without the
> > required version of python3-pydantic-core being available. To ensure we
> > do not keep having this happen, this series sets RECIPE_NO_UPDATE_REASON
> > in python3-pydantic.
> >
> > There were a number of missing ptest dependencies, including
> python3-tzdata
> > which we did not have a recipe for yet. This series adds this new recipe.
> >
> > Upstream has a patch, not yet in a release, for the TMPDIR [build-paths]
> > contamination which was injecting RUSTFLAGS into the _pydantic-core.*.so.
> > This series backports that patch.
> >
> > The following changes since commit
> 49d707e0301d7bcbad386cbf3dd205ef6fdc561c:
> >
> >    python3-cachetools: Upgrade 5.3.3 -> 5.4.0 (2024-08-02 08:52:53 -0700)
> >
> > are available in the Git repository at:
> >
> >    https://git.openembedded.org/meta-openembedded-contrib
> timo/python3-pydantic-upgrade
> >
> https://git.openembedded.org/meta-openembedded-contrib/log/?h=timo/python3-pydantic-upgrade
> >
> > Tim Orling (5):
> >    python3-tzdata: add recipe for v2024.1
> >    python3-tzdata: enable ptest
> >    python3-pydantic-core: upgrade 2.18.4 -> 2.21.0
> >    python3-pydantic: upgrade 2.7.3 -> 2.8.2
> >    python3-pydantic-core: backport patch
> >
> >   .../ptest-packagelists-meta-python.inc        |   1 +
> >   .../python/python3-pydantic-core-crates.inc   | 280 ++++++++++--------
> >   ...sion-from-1.76-to-1.75-in-Cargo.toml.patch |  29 --
> >   ...8.4.bb => python3-pydantic-core_2.21.0.bb} |  16 +-
> >   ...tic_2.7.3.bb => python3-pydantic_2.8.2.bb} |   8 +-
> >   .../python/python3-tzdata/run-ptest           |   3 +
> >   .../python/python3-tzdata_2024.1.bb           |  24 ++
> >   7 files changed, 198 insertions(+), 163 deletions(-)
> >   delete mode 100644
> meta-python/recipes-devtools/python/python3-pydantic-core/0001-Set-rust-version-from-1.76-to-1.75-in-Cargo.toml.patch
> >   rename meta-python/recipes-devtools/python/{
> python3-pydantic-core_2.18.4.bb => python3-pydantic-core_2.21.0.bb} (80%)
> >   rename meta-python/recipes-devtools/python/{python3-pydantic_2.7.3.bb
> => python3-pydantic_2.8.2.bb} (87%)
> >   create mode 100644
> meta-python/recipes-devtools/python/python3-tzdata/run-ptest
> >   create mode 100644 meta-python/recipes-devtools/python/
> python3-tzdata_2024.1.bb
> >
>
>
>
> >
> >
> > -=-=-=-=-=-=-=-=-=-=-=-
> > Links: You receive all messages sent to this group.
> > View/Reply Online (#111669):
> https://lists.openembedded.org/g/openembedded-devel/message/111669
> > Mute This Topic: https://lists.openembedded.org/mt/107793237/1997914
> > Group Owner: openembedded-devel+owner@lists.openembedded.org
> > Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [
> raj.khem@gmail.com]
> > -=-=-=-=-=-=-=-=-=-=-=-
> >
>