From: TinfoilSubmarine <TinfoilSubmarine@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] python3-pydantic: update to 2.4.2.
Date: Wed, 25 Oct 2023 14:15:51 +0200 [thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-46889@inbox.vuxu.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 1379 bytes --]
There is a new pull request by TinfoilSubmarine against master on the void-packages repository
https://github.com/TinfoilSubmarine/void-packages maint/python3-pydantic
https://github.com/void-linux/void-packages/pull/46889
python3-pydantic: update to 2.4.2.
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **YES**
Need to test these packages depending on python3-pydantic:
- [ ] python3-inflect
- [x] synapse
<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
- armv7l
- armv6l-musl
-->
A patch file from https://github.com/void-linux/void-packages/pull/46889.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-maint/python3-pydantic-46889.patch --]
[-- Type: text/x-diff, Size: 13066 bytes --]
From 78aa0f47ecc5663dec0642197257b10306712016 Mon Sep 17 00:00:00 2001
From: Joel Beckmeyer <joel@beckmeyer.us>
Date: Tue, 22 Aug 2023 16:41:12 -0400
Subject: [PATCH 1/7] New package: python3-dirty-equals-0.6.0
---
.../patches/no-pytest-filterwarnings.patch | 12 +++++++++++
srcpkgs/python3-dirty-equals/template | 21 +++++++++++++++++++
2 files changed, 33 insertions(+)
create mode 100644 srcpkgs/python3-dirty-equals/patches/no-pytest-filterwarnings.patch
create mode 100644 srcpkgs/python3-dirty-equals/template
diff --git a/srcpkgs/python3-dirty-equals/patches/no-pytest-filterwarnings.patch b/srcpkgs/python3-dirty-equals/patches/no-pytest-filterwarnings.patch
new file mode 100644
index 0000000000000..e9ff2cc4a4cb2
--- /dev/null
+++ b/srcpkgs/python3-dirty-equals/patches/no-pytest-filterwarnings.patch
@@ -0,0 +1,12 @@
+diff --git a/pyproject.toml b/pyproject.toml
+index 1b8ff7a..3a753ac 100644
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -59,7 +59,6 @@ target-version = 'py37'
+
+ [tool.pytest.ini_options]
+ testpaths = "tests"
+-filterwarnings = "error"
+
+ [tool.coverage.run]
+ source = ["dirty_equals"]
diff --git a/srcpkgs/python3-dirty-equals/template b/srcpkgs/python3-dirty-equals/template
new file mode 100644
index 0000000000000..4e0be610d2621
--- /dev/null
+++ b/srcpkgs/python3-dirty-equals/template
@@ -0,0 +1,21 @@
+# Template file for 'python3-dirty-equals'
+pkgname=python3-dirty-equals
+version=0.6.0
+revision=1
+build_style=python3-pep517
+# requires unpackaged pytest-examples and circular dependency on pydantic
+make_check_args="--ignore=tests/test_docs.py --ignore=tests/test_other.py"
+hostmakedepends="hatchling"
+depends="python3-pytz"
+checkdepends="${depends} python3-pytest"
+short_desc="Doing dirty (but extremely useful) things with equals"
+maintainer="Joel Beckmeyer <joel@beckmeyer.us>"
+license="MIT"
+homepage="https://github.com/samuelcolvin/dirty-equals"
+changelog="https://github.com/samuelcolvin/dirty-equals/releases"
+distfiles="${PYPI_SITE}/d/dirty_equals/dirty_equals-${version}.tar.gz"
+checksum=4c4e4b9b52670ad8b880c46734e5ffc52e023250ae817398b78b30e329c3955d
+
+post_install() {
+ vlicense LICENSE
+}
From cdc11c9d6acf942bc4e03ff6ecbcb476d06cce95 Mon Sep 17 00:00:00 2001
From: Joel Beckmeyer <joel@beckmeyer.us>
Date: Tue, 22 Aug 2023 16:42:50 -0400
Subject: [PATCH 2/7] New package: python3-pydantic-core-2.11.0
---
srcpkgs/python3-pydantic-core/template | 36 ++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
create mode 100644 srcpkgs/python3-pydantic-core/template
diff --git a/srcpkgs/python3-pydantic-core/template b/srcpkgs/python3-pydantic-core/template
new file mode 100644
index 0000000000000..e345f6a6ed168
--- /dev/null
+++ b/srcpkgs/python3-pydantic-core/template
@@ -0,0 +1,36 @@
+# Template file for 'python3-pydantic-core'
+pkgname=python3-pydantic-core
+version=2.11.0
+revision=1
+build_style=python3-pep517
+build_helper=rust
+hostmakedepends="maturin cargo"
+makedepends="python3-typing_extensions"
+depends="python3-typing_extensions"
+checkdepends="${depends} python3-pytest python3-pytest-benchmark
+ python3-pytest-timeout python3-pytest-mock python3-hypothesis
+ python3-dirty-equals"
+short_desc="Core functionality for pydantic-core validation and serialization"
+maintainer="Joel Beckmeyer <joel@beckmeyer.us>"
+license="MIT"
+homepage="https://github.com/pydantic/pydantic-core"
+distfiles="${PYPI_SITE}/p/pydantic_core/pydantic_core-${version}.tar.gz"
+checksum=55c6d7fdc94a98e0551870774e27be1ec5cd847230015463853d27a73b05ba13
+
+# taken from python3-adblock
+if [ "$CROSS_BUILD" ]; then
+ makedepends+=" rust-std"
+ hostmakedepends+=" python3-typing_extensions"
+ export PYO3_CROSS_LIB_DIR="${XBPS_CROSS_BASE}/usr/lib"
+ export PYO3_CROSS_INCLUDE_DIR="${XBPS_CROSS_BASE}/usr/include"
+fi
+
+do_build() {
+ maturin build -o . --release --target "${RUST_TARGET}" --manylinux off
+ mkdir -p dist
+ mv pydantic_core-${version}-*.whl dist/pydantic_core-${version}-py3-none-any.whl
+}
+
+post_install() {
+ vlicense LICENSE
+}
From ee00fa5fe4d9a88a8c7162456766f086febae151 Mon Sep 17 00:00:00 2001
From: Joel Beckmeyer <joel@beckmeyer.us>
Date: Tue, 22 Aug 2023 16:14:36 -0400
Subject: [PATCH 3/7] New package: python3-annotated-types-0.6.0
---
srcpkgs/python3-annotated-types/template | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
create mode 100644 srcpkgs/python3-annotated-types/template
diff --git a/srcpkgs/python3-annotated-types/template b/srcpkgs/python3-annotated-types/template
new file mode 100644
index 0000000000000..ca3900a990430
--- /dev/null
+++ b/srcpkgs/python3-annotated-types/template
@@ -0,0 +1,18 @@
+# Template file for 'python3-annotated-types'
+pkgname=python3-annotated-types
+version=0.6.0
+revision=1
+build_style=python3-pep517
+hostmakedepends="hatchling"
+depends="python3"
+checkdepends="python3-pytest"
+short_desc="Reusable constraint types to use with typing.Annotated"
+maintainer="Joel Beckmeyer <joel@beckmeyer.us>"
+license="MIT"
+homepage="https://github.com/annotated-types/annotated-types"
+distfiles="${PYPI_SITE}/a/annotated_types/annotated_types-${version}.tar.gz"
+checksum=563339e807e53ffd9c267e99fc6d9ea23eb8443c08f112651963e24e22f84a5d
+
+post_install() {
+ vlicense LICENSE
+}
From ad4c5ee01449f291a02064ea89b6c52a4b05b820 Mon Sep 17 00:00:00 2001
From: Joel Beckmeyer <joel@beckmeyer.us>
Date: Thu, 19 Oct 2023 08:28:34 -0400
Subject: [PATCH 4/7] python3-email-validator: update to 2.0.0.
---
srcpkgs/python3-email-validator/template | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/srcpkgs/python3-email-validator/template b/srcpkgs/python3-email-validator/template
index 69628ad1e35db..9534a0c875b59 100644
--- a/srcpkgs/python3-email-validator/template
+++ b/srcpkgs/python3-email-validator/template
@@ -1,20 +1,19 @@
# Template file for 'python3-email-validator'
pkgname=python3-email-validator
-version=1.3.0
-revision=3
+version=2.0.0
+revision=1
build_style=python3-module
hostmakedepends="python3-setuptools"
makedepends="python3"
depends="python3-idna python3-dnspython"
-checkdepends="python3-pytest"
+checkdepends="python3-pytest $depends"
short_desc="Robust email address syntax and deliverability validation library"
maintainer="DragonGhost7 <darkiridiumghost@gmail.com>"
license="CC0-1.0"
homepage="https://github.com/JoshData/python-email-validator"
changelog="https://raw.githubusercontent.com/JoshData/python-email-validator/main/CHANGELOG.md"
distfiles="https://github.com/JoshData/python-email-validator/archive/refs/tags/v${version}.tar.gz"
-checksum=1f5b38b5f6b8455468f2c557e887c442d455931ee1523c6eb40c6f7ce119d99b
-make_check=no #no tests folder is present in archives
+checksum=0cd656b4c2cba10bcb518808f800bdde74af0c01a2522a9d475b3b1954d98f01
post_install() {
vlicense LICENSE
From fbd54ecfb0a81a533949b853312573efa6ec4649 Mon Sep 17 00:00:00 2001
From: Joel Beckmeyer <joel@beckmeyer.us>
Date: Thu, 19 Oct 2023 08:37:46 -0400
Subject: [PATCH 5/7] python3-Faker: update to 19.12.0.
---
srcpkgs/python3-Faker/template | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/srcpkgs/python3-Faker/template b/srcpkgs/python3-Faker/template
index 8e8533c703913..9576ad17fd606 100644
--- a/srcpkgs/python3-Faker/template
+++ b/srcpkgs/python3-Faker/template
@@ -1,6 +1,6 @@
# Template file for 'python3-Faker'
pkgname=python3-Faker
-version=19.9.0
+version=19.12.0
revision=1
build_style=python3-module
hostmakedepends="python3-setuptools"
@@ -12,7 +12,7 @@ license="MIT"
homepage="https://faker.readthedocs.io/en/master/"
changelog="https://github.com/joke2k/faker/raw/master/CHANGELOG.md"
distfiles="${PYPI_SITE}/F/Faker/Faker-${version}.tar.gz"
-checksum=d75401c631a991b32d3595f26250f42c007cc32653ac3e522b626f3d80770571
+checksum=91438f6b1713274ec3f24970ba303617be86ce5caf6f6a0776f1d04777b6ff5f
post_install() {
vlicense LICENSE.txt
From f688a213d35503fc27125a3e8fc069d0b7cc352f Mon Sep 17 00:00:00 2001
From: Joel Beckmeyer <joel@beckmeyer.us>
Date: Tue, 22 Aug 2023 16:47:01 -0400
Subject: [PATCH 6/7] python3-pydantic: update to 2.4.2.
---
.../patches/drop-fancy-pypi-readme-dep.patch | 38 +++++++++++++++++++
srcpkgs/python3-pydantic/template | 20 +++++-----
2 files changed, 49 insertions(+), 9 deletions(-)
create mode 100644 srcpkgs/python3-pydantic/patches/drop-fancy-pypi-readme-dep.patch
diff --git a/srcpkgs/python3-pydantic/patches/drop-fancy-pypi-readme-dep.patch b/srcpkgs/python3-pydantic/patches/drop-fancy-pypi-readme-dep.patch
new file mode 100644
index 0000000000000..6bc5bcf6f3321
--- /dev/null
+++ b/srcpkgs/python3-pydantic/patches/drop-fancy-pypi-readme-dep.patch
@@ -0,0 +1,38 @@
+diff --git a/pyproject.toml b/pyproject.toml
+index aba4d03..d2af96e 100644
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -1,5 +1,5 @@
+ [build-system]
+-requires = ['hatchling', 'hatch-fancy-pypi-readme>=22.5.0']
++requires = ['hatchling']
+ build-backend = 'hatchling.build'
+
+ [tool.hatch.version]
+diff --git a/pyproject.toml b/pyproject.toml
+index d2af96e..5ccd6f6 100644
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -128,22 +128,6 @@ Funding = 'https://github.com/sponsors/samuelcolvin'
+ Source = 'https://github.com/pydantic/pydantic'
+ Changelog = 'https://docs.pydantic.dev/latest/changelog/'
+
+-[tool.hatch.metadata.hooks.fancy-pypi-readme]
+-content-type = 'text/markdown'
+-# construct the PyPI readme from README.md and HISTORY.md
+-fragments = [
+- {path = "README.md"},
+- {text = "\n## Changelog\n\n"},
+- {path = "HISTORY.md", pattern = "(.+?)<!-- package description limit -->"},
+- {text = "\n... see [here](https://docs.pydantic.dev/changelog/#v0322-2019-08-17) for earlier changes.\n"},
+-]
+-# convert GitHuB issue/PR numbers and handles to links
+-substitutions = [
+- {pattern = '(\s+)#(\d+)', replacement = '\1[#\2](https://github.com/pydantic/pydantic/issues/\2)'},
+- {pattern = '(\s+)@([\w\-]+)', replacement = '\1[@\2](https://github.com/\2)'},
+- {pattern = '@@', replacement = '@'},
+-]
+-
+ [tool.pytest.ini_options]
+ testpaths = 'tests'
+ xfail_strict = true
diff --git a/srcpkgs/python3-pydantic/template b/srcpkgs/python3-pydantic/template
index 8a09f0e39bc1f..17333449bf64e 100644
--- a/srcpkgs/python3-pydantic/template
+++ b/srcpkgs/python3-pydantic/template
@@ -1,20 +1,22 @@
# Template file for 'python3-pydantic'
pkgname=python3-pydantic
-version=1.10.7
-revision=2
-build_style=python3-module
-# added to stop test failing due to DeprecationWarning on pkg_resources import
-make_check_args="-p no:warnings"
-hostmakedepends="python3-setuptools"
-depends="python3-typing_extensions"
-checkdepends="${depends} python3-pytest python3-pytest-mock"
+version=2.4.2
+revision=1
+build_style=python3-pep517
+# requires unpackaged pytest-examples
+make_check_args="--ignore=tests/test_docs.py"
+hostmakedepends="hatchling"
+depends="python3-typing_extensions python3-annotated-types
+ python3-pydantic-core"
+checkdepends="${depends} python3-pytest python3-pytest-benchmark
+ python3-pytest-mock python3-dirty-equals python3-Faker python3-email-validator"
short_desc="Data parsing and validation using Python type hints"
maintainer="Joel Beckmeyer <joel@beckmeyer.us>"
license="MIT"
homepage="https://github.com/pydantic/pydantic"
changelog="https://raw.githubusercontent.com/pydantic/pydantic/main/HISTORY.md"
distfiles="${PYPI_SITE}/p/pydantic/pydantic-${version}.tar.gz"
-checksum=cfc83c0678b6ba51b0532bea66860617c4cd4251ecf76e9846fa5a9f3454e97e
+checksum=94f336138093a5d7f426aac732dcfe7ab4eb4da243c88f891d65deb4a2556ee7
post_install() {
vlicense LICENSE
From df1bbbcfde72476e42d0bd9f1b1fc97a7087b556 Mon Sep 17 00:00:00 2001
From: Joel Beckmeyer <joel@beckmeyer.us>
Date: Tue, 22 Aug 2023 17:05:27 -0400
Subject: [PATCH 7/7] python3-inflect: update to 7.0.0.
---
srcpkgs/python3-inflect/template | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/python3-inflect/template b/srcpkgs/python3-inflect/template
index 15b16a0da04bd..e83b21c359d04 100644
--- a/srcpkgs/python3-inflect/template
+++ b/srcpkgs/python3-inflect/template
@@ -1,7 +1,7 @@
# Template file for 'python3-inflect'
pkgname=python3-inflect
-version=6.0.4
-revision=2
+version=7.0.0
+revision=1
build_style=python3-pep517
hostmakedepends="python3-wheel python3-setuptools_scm"
depends="python3-pydantic"
@@ -10,9 +10,10 @@ short_desc="Correctly generate plurals, ordinals; convert numbers to words"
maintainer="icp <pangolin@vivaldi.net>"
license="MIT"
homepage="https://github.com/jaraco/inflect"
-changelog="https://raw.githubusercontent.com/jaraco/inflect/main/CHANGES.rst"
+changelog="https://raw.githubusercontent.com/jaraco/inflect/main/NEWS.rst"
distfiles="${PYPI_SITE}/i/inflect/inflect-${version}.tar.gz"
-checksum=1842649a17b6cad66812a5c9bdfacb6310e1e7b6dd8a31f026766df1b62612eb
+checksum=63da9325ad29da81ec23e055b41225795ab793b4ecb483be5dc1fa363fd4717e
+make_check_pre="env PY_IGNORE_IMPORTMISMATCH=1"
post_install() {
vlicense LICENSE
next reply other threads:[~2023-10-25 12:15 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-25 12:15 TinfoilSubmarine [this message]
2024-01-24 1:47 ` github-actions
2024-02-08 1:44 ` [PR PATCH] [Closed]: " github-actions
2024-03-05 7:41 ` [PR PATCH] [Updated] " classabbyamp
2024-03-05 7:55 ` classabbyamp
2024-03-05 8:07 ` classabbyamp
2024-03-05 8:21 ` classabbyamp
2024-03-05 8:22 ` classabbyamp
2024-03-05 8:31 ` [PR PATCH] [Merged]: " classabbyamp
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-46889@inbox.vuxu.org \
--to=tinfoilsubmarine@users.noreply.github.com \
--cc=ml@inbox.vuxu.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.
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 NNTP newsgroup(s).