Skip to content

Commit 448f233

Browse files
samuelcolvinhswong3i
authored andcommitted
uprev to jiter v0.0.6, uprev pydantic-core (pydantic#1165)
1 parent 29c5419 commit 448f233

14 files changed

+232
-21
lines changed

.cargo/config.toml

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,5 @@
1-
[build]
2-
rustflags = []
1+
[source.crates-io]
2+
replace-with = "vendored-sources"
33

4-
# see https://pyo3.rs/main/building_and_distribution.html#macos
5-
[target.x86_64-apple-darwin]
6-
rustflags = [
7-
"-C", "link-arg=-undefined",
8-
"-C", "link-arg=dynamic_lookup",
9-
]
10-
11-
[target.aarch64-apple-darwin]
12-
rustflags = [
13-
"-C", "link-arg=-undefined",
14-
"-C", "link-arg=dynamic_lookup",
15-
]
4+
[source.vendored-sources]
5+
directory = "vendor"

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,11 @@ node_modules/
3737
/python/pydantic_core/*.so
3838
/src/self_schema.py
3939

40+
<<<<<<< HEAD
4041
# samply
4142
/profile.json
43+
=======
44+
.cargo/
45+
vendor/
46+
.pybuild/
47+
>>>>>>> ed8b1598 (alvistack/v2.15.0)

Cargo.lock

Lines changed: 16 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "pydantic-core"
3-
version = "2.15.0"
3+
version = "2.16.0"
44
edition = "2021"
55
license = "MIT"
66
homepage = "https://github.com/pydantic/pydantic-core"
@@ -43,7 +43,7 @@ base64 = "0.21.7"
4343
num-bigint = "0.4.4"
4444
python3-dll-a = "0.2.7"
4545
uuid = "1.6.1"
46-
jiter = {version = "0.0.5", features = ["python"]}
46+
jiter = {version = "0.0.6", features = ["python"]}
4747

4848
[lib]
4949
name = "_pydantic_core"

debian/.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
*.substvars
2+
*debhelper*
3+
.debhelper
4+
files
5+
python3-pydantic-core
6+
tmp

debian/changelog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
python-pydantic-core (100:2.16.0-1) UNRELEASED; urgency=medium
2+
3+
* https://github.com/pydantic/pydantic-core/releases/tag/v2.16.0
4+
5+
-- Wong Hoi Sing Edison <[email protected]> Thu, 18 Jan 2024 15:01:10 +0800

debian/control

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
Source: python-pydantic-core
2+
Section: python
3+
Priority: optional
4+
Standards-Version: 4.5.0
5+
Maintainer: Wong Hoi Sing Edison <[email protected]>
6+
Homepage: https://github.com/pydantic/pydantic-core/tags
7+
Vcs-Browser: https://github.com/alvistack/pydantic-pydantic-core
8+
Vcs-Git: https://github.com/alvistack/pydantic-pydantic-core.git
9+
Build-Depends:
10+
debhelper,
11+
debhelper-compat (= 10),
12+
dh-python,
13+
cargo,
14+
cython3,
15+
fdupes,
16+
python3-dev,
17+
python3-maturin (>= 1.0.0),
18+
python3-pip,
19+
python3-setuptools,
20+
python3-typing-extensions (>= 4.6.0),
21+
rustc (>= 1.64.0),
22+
23+
Package: python3-pydantic-core
24+
Architecture: amd64
25+
Description: Core validation logic for pydantic written in rust
26+
This package provides the core functionality for pydantic validation and
27+
serialization.
28+
Depends:
29+
${misc:Depends},
30+
${shlibs:Depends},
31+
${python3:Depends},
32+
python3,
33+
python3-typing-extensions (>= 4.6.0),

debian/copyright

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
2+
3+
Files: debian/*
4+
Copyright: 2024 Wong Hoi Sing Edison <[email protected]>
5+
License: Apache-2.0
6+
7+
License: Apache-2.0
8+
Licensed under the Apache License, Version 2.0 (the "License");
9+
you may not use this file except in compliance with the License.
10+
You may obtain a copy of the License at
11+
.
12+
http://www.apache.org/licenses/LICENSE-2.0
13+
.
14+
Unless required by applicable law or agreed to in writing, software
15+
distributed under the License is distributed on an "AS IS" BASIS,
16+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17+
See the License for the specific language governing permissions and
18+
limitations under the License.
19+
.
20+
The complete text of the Apache version 2.0 license
21+
can be found in "/usr/share/common-licenses/Apache-2.0".

debian/python3-pydantic-core.install

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
usr/lib/python*/*-packages/*
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
python3-pydantic-core: copyright-without-copyright-notice
2+
python3-pydantic-core: initial-upload-closes-no-bugs
3+
python3-pydantic-core: no-manual-page
4+
python3-pydantic-core: zero-byte-file-in-doc-directory

debian/rules

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#!/usr/bin/make -f
2+
3+
SHELL := /bin/bash
4+
5+
override_dh_auto_configure:
6+
7+
override_dh_auto_build:
8+
maturin build --offline --sdist
9+
10+
override_dh_auto_install:
11+
pip install \
12+
--no-deps \
13+
--ignore-installed \
14+
--root=debian/tmp \
15+
--prefix=/usr \
16+
target/wheels/*.whl
17+
mv debian/tmp/usr/local/lib debian/tmp/usr/lib || echo $$?
18+
rm -rf debian/tmp/usr/local || echo $$?
19+
find debian/tmp/usr/lib/python*/*-packages -type f -name '*.pyc' -exec rm -rf {} \;
20+
fdupes -qnrps debian/tmp/usr/lib/python*/*-packages
21+
22+
override_dh_auto_test:
23+
24+
override_dh_auto_clean:
25+
26+
%:
27+
dh $@ --with python3

debian/source/format

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.0 (quilt)

debian/source/lintian-overrides

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
python-pydantic-core source: file-without-copyright-information
2+
python-pydantic-core source: no-debian-changes
3+
python-pydantic-core source: source-contains-prebuilt-windows-binary
4+
python-pydantic-core source: source-is-missing
5+
python-pydantic-core source: source-package-encodes-python-version

python-pydantic-core.spec

Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
# Copyright 2024 Wong Hoi Sing Edison <[email protected]>
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
%global debug_package %{nil}
16+
17+
Name: python-pydantic-core
18+
Epoch: 100
19+
Version: 2.16.0
20+
Release: 1%{?dist}
21+
Summary: Core validation logic for pydantic written in rust
22+
License: MIT
23+
URL: https://github.com/pydantic/pydantic-core/tags
24+
Source0: %{name}_%{version}.orig.tar.gz
25+
BuildRequires: cargo
26+
BuildRequires: fdupes
27+
BuildRequires: python-rpm-macros
28+
BuildRequires: python3-Cython3
29+
BuildRequires: python3-devel
30+
BuildRequires: python3-maturin >= 1.0.0
31+
BuildRequires: python3-pip
32+
BuildRequires: python3-setuptools
33+
BuildRequires: python3-typing-extensions >= 4.6.0
34+
BuildRequires: rust >= 1.64.0
35+
36+
%description
37+
This package provides the core functionality for pydantic validation and
38+
serialization.
39+
40+
%prep
41+
%autosetup -T -c -n %{name}_%{version}-%{release}
42+
tar -zx -f %{S:0} --strip-components=1 -C .
43+
44+
%build
45+
maturin build --offline --sdist
46+
47+
%install
48+
pip install \
49+
--no-deps \
50+
--ignore-installed \
51+
--root=%{buildroot} \
52+
--prefix=%{_prefix} \
53+
target/wheels/*.whl
54+
find %{buildroot}%{python3_sitearch} -type f -name '*.pyc' -exec rm -rf {} \;
55+
fdupes -qnrps %{buildroot}%{python3_sitearch}
56+
57+
%check
58+
59+
%if 0%{?suse_version} > 1500
60+
%package -n python%{python3_version_nodots}-pydantic-core
61+
Summary: Core validation logic for pydantic written in rust
62+
Requires: python3
63+
Requires: python3-typing-extensions >= 4.6.0
64+
Provides: python3-pydantic-core = %{epoch}:%{version}-%{release}
65+
Provides: python3dist(pydantic-core) = %{epoch}:%{version}-%{release}
66+
Provides: python%{python3_version}-pydantic-core = %{epoch}:%{version}-%{release}
67+
Provides: python%{python3_version}dist(pydantic-core) = %{epoch}:%{version}-%{release}
68+
Provides: python%{python3_version_nodots}-pydantic-core = %{epoch}:%{version}-%{release}
69+
Provides: python%{python3_version_nodots}dist(pydantic-core) = %{epoch}:%{version}-%{release}
70+
71+
%description -n python%{python3_version_nodots}-pydantic-core
72+
This package provides the core functionality for pydantic validation and
73+
serialization.
74+
75+
%files -n python%{python3_version_nodots}-pydantic-core
76+
%license LICENSE
77+
%{python3_sitearch}/*
78+
%endif
79+
80+
%if !(0%{?suse_version} > 1500)
81+
%package -n python3-pydantic-core
82+
Summary: Core validation logic for pydantic written in rust
83+
Requires: python3
84+
Requires: python3-typing-extensions >= 4.6.0
85+
Provides: python3-pydantic-core = %{epoch}:%{version}-%{release}
86+
Provides: python3dist(pydantic-core) = %{epoch}:%{version}-%{release}
87+
Provides: python%{python3_version}-pydantic-core = %{epoch}:%{version}-%{release}
88+
Provides: python%{python3_version}dist(pydantic-core) = %{epoch}:%{version}-%{release}
89+
Provides: python%{python3_version_nodots}-pydantic-core = %{epoch}:%{version}-%{release}
90+
Provides: python%{python3_version_nodots}dist(pydantic-core) = %{epoch}:%{version}-%{release}
91+
92+
%description -n python3-pydantic-core
93+
This package provides the core functionality for pydantic validation and
94+
serialization.
95+
96+
%files -n python3-pydantic-core
97+
%license LICENSE
98+
%{python3_sitearch}/*
99+
%endif
100+
101+
%changelog

0 commit comments

Comments
 (0)