Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update to pydantic v2 #238

Merged
merged 60 commits into from
Dec 18, 2024
Merged
Changes from 1 commit
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
137c5a8
package/pkg-python: add setuptools-rust and maturin infrastructure
jameshilliard Aug 7, 2022
37d44d8
package/python-maturin: migrate to setuptools-rust infrastructure
jameshilliard Aug 7, 2022
dae75dd
package/python-maturin: bump to version 1.3.1
jameshilliard Nov 5, 2023
946b98a
package/python-pydantic-core: new package
jameshilliard Nov 25, 2023
ab4edd0
package/python-pydantic: bump to version 2.5.2
jameshilliard Nov 25, 2023
8ae74ca
package/pkg-python.mk: fix typo
RomainNaour Dec 8, 2023
8a88a38
package/python-maturin: bump to version 1.4.0
jameshilliard Jan 10, 2024
1bf2516
package/python-orjson: migrate to maturin infrastructure
jameshilliard Aug 7, 2022
cafaca4
package/python-pydantic-core: bump to version 2.14.6
jameshilliard Jan 10, 2024
aa24310
package/python-pydantic: bump to version 2.5.3
jameshilliard Jan 10, 2024
7411be7
package/python-orjson: bump to version 3.9.10
jameshilliard Nov 24, 2023
868de74
package/python-rtoml: migrate to setuptools-rust infrastructure
jameshilliard Aug 7, 2022
0c4c3fa
package/python-rtoml: bump to version 0.10.0
jameshilliard Jan 11, 2024
8b94467
package/python-cryptography: migrate to setuptools-rust infrastructure
jameshilliard Aug 7, 2022
dc24db8
package/python-*: fix hashes for cargo-vendored python packages
yann-morin-1998 May 14, 2024
cc6350c
package/python-pydantic-core: bump for fixes with python 3.12
yann-morin-1998 Jun 12, 2024
412b41e
package/python-annotated-types: bump to version 0.7.0
jameshilliard Jul 1, 2024
010438d
package/python-pydantic-core: bump to version 2.20.0
jameshilliard Jul 1, 2024
3f49560
package/python-pydantic: bump to version 2.8.0
jameshilliard Jul 1, 2024
8335a71
package/python-pydantic: bump to version 2.8.2
jameshilliard Jul 19, 2024
04409eb
package/python-pydantic-core: bump to version 2.20.1
jameshilliard Jul 19, 2024
3965a0e
package/python-maturin: bump to version 1.7.0
jameshilliard Jul 19, 2024
5588632
package/python-pydantic: bump to version 2.9.0
jameshilliard Sep 6, 2024
92170ea
package/python-pydantic-core: bump to version 2.23.2
jameshilliard Sep 7, 2024
9573892
package/python-pydantic-core: bump to version 2.23.4
jameshilliard Sep 17, 2024
255de25
package/python-pydantic: bump to version 2.9.2
jameshilliard Sep 17, 2024
00bcf47
package/{rust, rust-bin}: bump to version 1.68.0
jameshilliard Mar 17, 2023
0c1aac2
package/{rust, rust-bin}: bump to version 1.68.2
jameshilliard Apr 5, 2023
e03e35c
package/{rust, rust-bin}: bump to version 1.70.0
jameshilliard Jun 5, 2023
d8223c0
package/{rust, rust-bin}: bump to version 1.71.0
jameshilliard Jul 13, 2023
4f9c13c
package/{rust, rust-bin}: security bump to version 1.71.1
jameshilliard Aug 14, 2023
8d1f86e
package/{rust, rust-bin}: bump to version 1.74.1
antocout Dec 28, 2023
f97ec10
package/rustc: rust >= 1.73.0 needs cmake >= 3.20
RomainNaour Jan 17, 2024
dd9272a
package/rust/rust.mk: add missing host-zlib dependency
RomainNaour Feb 29, 2024
29c0fe2
package/rust: use host libraries from HOST_DIR
RomainNaour Feb 29, 2024
600e51c
package/rust: provide RUSTFLAGS for cargo
RomainNaour Mar 2, 2024
b6b4c54
utils/update-rust: add script to automatically update the rust version
yann-morin-1998 Jun 13, 2024
b368d7a
package/rust: update to 1.79.0
yann-morin-1998 Jun 13, 2024
3fb1552
package/rust: update to 1.80.1
sl8vz Aug 16, 2024
dc8023f
package/rust: bump to version 1.81.0
jameshilliard Sep 22, 2024
24a75d9
package/rust: bump to version 1.82.0
jameshilliard Oct 27, 2024
46e6ac3
package/rust/rust: remove Cargo.toml.orig fixup
RomainNaour Nov 1, 2024
c393a71
package/pkg-cargo: configure cargo profiles
jameshilliard Oct 21, 2022
639015c
package/pkg-generic.mk: really make DL_SUBDIR inheritance work
tpetazzoni May 9, 2024
17f87f5
support/download/git: handle git attributes
yann-morin-1998 May 4, 2024
2ce88c2
package/pkg-utils: add vendoring mechanism into generated archive fil…
yann-morin-1998 May 4, 2024
7b9599a
support/download: even more reproducible archives (until next time)
yann-morin-1998 May 4, 2024
1eb0796
support/dependencies: require tar >= 1.35
yann-morin-1998 May 4, 2024
e167e14
package/pkg-download: use _DL_SUBDIR as root dir of generated archives
yann-morin-1998 Jun 2, 2024
eb78e2e
package/pkg-download: export TAR for download backends
yann-morin-1998 Jun 5, 2024
ad0bb02
package/pkg-download: symplify calling parameters
yann-morin-1998 Jun 7, 2024
15e49b6
package/pkg-generic: split long, unreadable DOWNLOAD line
yann-morin-1998 Jun 7, 2024
bd2f1f9
support/download: pass post-process options to post-process helper
yann-morin-1998 Jun 7, 2024
93fb959
pakcage/pkg-cargo: use post-process opts to pass manifest path
yann-morin-1998 Jun 7, 2024
95f4577
package/pkg-python: use post-process opts to pass Cargo manifest path
yann-morin-1998 Jun 7, 2024
4a84211
package/pkg-download: restore user's original umask for the whole dow…
Dec 6, 2022
2ddc26b
package: add annotated-types
sfoster1 Dec 18, 2024
83958d2
package/python-fastapi: bump to 0.100.0
sfoster1 Dec 18, 2024
4064ca1
package/python-pydantic-settings: new package
jameshilliard Sep 27, 2024
1d8f2c7
package/python-pydantic-settings: downgrade to 2.4.0
sfoster1 Dec 18, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
package/python-cryptography: migrate to setuptools-rust infrastructure
We can now significantly simplify the python-cryptography build using
the new setuptools-rust setup type introduced in the python package
infrastructure.

Signed-off-by: James Hilliard <[email protected]>
Signed-off-by: Arnout Vandecappelle <[email protected]>
jameshilliard authored and sfoster1 committed Dec 9, 2024
commit 8b94467a41f8c85138699863918d3b301aacd000
30 changes: 4 additions & 26 deletions package/python-cryptography/python-cryptography.mk
Original file line number Diff line number Diff line change
@@ -7,36 +7,14 @@
PYTHON_CRYPTOGRAPHY_VERSION = 39.0.2
PYTHON_CRYPTOGRAPHY_SOURCE = cryptography-$(PYTHON_CRYPTOGRAPHY_VERSION).tar.gz
PYTHON_CRYPTOGRAPHY_SITE = https://files.pythonhosted.org/packages/fa/f3/f4b8c175ea9a1de650b0085858059050b7953a93d66c97ed89b93b232996
PYTHON_CRYPTOGRAPHY_SETUP_TYPE = setuptools
PYTHON_CRYPTOGRAPHY_SETUP_TYPE = setuptools-rust
PYTHON_CRYPTOGRAPHY_LICENSE = Apache-2.0 or BSD-3-Clause
PYTHON_CRYPTOGRAPHY_LICENSE_FILES = LICENSE LICENSE.APACHE LICENSE.BSD
PYTHON_CRYPTOGRAPHY_CPE_ID_VENDOR = cryptography_project
PYTHON_CRYPTOGRAPHY_CPE_ID_PRODUCT = cryptography
PYTHON_CRYPTOGRAPHY_DEPENDENCIES = \
host-python-setuptools-rust \
host-python-cffi \
host-rustc \
openssl
HOST_PYTHON_CRYPTOGRAPHY_DEPENDENCIES = \
host-python-setuptools-rust \
host-python-cffi \
host-rustc \
host-openssl
PYTHON_CRYPTOGRAPHY_ENV = \
$(PKG_CARGO_ENV) \
PYO3_CROSS_LIB_DIR="$(STAGING_DIR)/usr/lib/python$(PYTHON3_VERSION_MAJOR)"
HOST_PYTHON_CRYPTOGRAPHY_ENV = \
$(HOST_PKG_CARGO_ENV) \
PYO3_CROSS_LIB_DIR="$(HOST_DIR)/lib/python$(PYTHON3_VERSION_MAJOR)"
# We need to vendor the Cargo crates at download time
PYTHON_CRYPTOGRAPHY_DOWNLOAD_POST_PROCESS = cargo
PYTHON_CRYPTOGRAPHY_DOWNLOAD_DEPENDENCIES = host-rustc
PYTHON_CRYPTOGRAPHY_DL_ENV = \
$(PKG_CARGO_ENV) \
BR_CARGO_MANIFEST_PATH=src/rust/Cargo.toml
HOST_PYTHON_CRYPTOGRAPHY_DL_ENV = \
$(HOST_PKG_CARGO_ENV) \
BR_CARGO_MANIFEST_PATH=src/rust/Cargo.toml
PYTHON_CRYPTOGRAPHY_CARGO_MANIFEST_PATH = src/rust/Cargo.toml
PYTHON_CRYPTOGRAPHY_DEPENDENCIES = host-python-cffi openssl
HOST_PYTHON_CRYPTOGRAPHY_DEPENDENCIES = host-python-cffi host-openssl

$(eval $(python-package))
$(eval $(host-python-package))