Date: Friday, December 30, 2022 @ 10:20:44
Author: dvzrv
Revision: 1372394
archrelease: copy trunk to community-x86_64
Added:
python-pydantic/repos/community-x86_64/PKGBUILD
(from rev 1372393, python-pydantic/trunk/PKGBUILD)
Deleted:
python-pydantic/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 78 ++++++++++++++++++++++++++++++++-----------------------------
1 file changed, 41 insertions(+), 37 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-12-30 10:20:32 UTC (rev 1372393)
+++ PKGBUILD 2022-12-30 10:20:44 UTC (rev 1372394)
@@ -1,37 +0,0 @@
-# Maintainer: David Runge <[email protected]>
-# Maintainer: Filipe Laíns (FFY00) <[email protected]>
-
-_name=pydantic
-pkgname=python-$_name
-pkgver=1.10.2
-pkgrel=1
-pkgdesc='Data parsing and validation using Python type hints'
-arch=(x86_64)
-url="https://github.com/pydantic/pydantic"
-license=(MIT)
-depends=(cython python python-typing-extensions)
-optdepends=(
- 'python-dotenv: for .env file support'
- 'python-email-validator: for email validation'
-)
-makedepends=(python-build python-installer python-setuptools python-wheel)
-checkdepends=(python-pytest python-pytest-mock)
-source=($_name-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz)
-sha512sums=('dc2acfb271cd62b6de08bbaa48dbc76ec8d3a3f3142778ffa2cb9a2a1cad62dbdb3c7470a50e9a2825837b65a48c6aefb8736411f32c398aa9ca779841b53ac5')
-b2sums=('9aac69ace185ccc56255cf36f9af472caf4c6bcbdcbb81eec66353f755673e9a240e7713c0a2ecff00a02e07b0069e4b3f1edda41f345698a979b79dd54b354a')
-
-build() {
- cd $_name-$pkgver
- python -m build --wheel --no-isolation
-}
-
-check() {
- cd $_name-$pkgver
- pytest -vv
-}
-
-package() {
- cd $_name-$pkgver
- python -m installer --destdir="$pkgdir" dist/*.whl
- install -vDm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
-}
Copied: python-pydantic/repos/community-x86_64/PKGBUILD (from rev 1372393,
python-pydantic/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-12-30 10:20:44 UTC (rev 1372394)
@@ -0,0 +1,41 @@
+# Maintainer: David Runge <[email protected]>
+# Maintainer: Filipe Laíns (FFY00) <[email protected]>
+
+_name=pydantic
+pkgname=python-$_name
+pkgver=1.10.3
+pkgrel=1
+pkgdesc='Data parsing and validation using Python type hints'
+arch=(x86_64)
+url="https://github.com/pydantic/pydantic"
+license=(MIT)
+depends=(cython python python-typing-extensions)
+optdepends=(
+ 'python-dotenv: for .env file support'
+ 'python-email-validator: for email validation'
+)
+makedepends=(python-build python-installer python-setuptools python-wheel)
+checkdepends=(python-hypothesis python-pytest python-pytest-mock)
+source=($_name-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz)
+sha512sums=('7c9db4a010f14ab41b0e7782e59e51caded5de31798e4dd83e01037e3365e34537b30c79c12a6451fdee875e1bfe1a3d981cae58aa373917f71489231df2e6a6')
+b2sums=('e8cec71f0d3f66e2c71e421505f624f7e92827f8fe4ef3a7c637b4f2cbc543d43e63739f8fed1a84246458d6675f19de9f83c7fc2a1d8f6e9fb18807ad5ace6f')
+
+build() {
+ cd $_name-$pkgver
+ python -m build --wheel --no-isolation
+}
+
+check() {
+ local deselected=(
+ # we don't care about pytest warnings leading to errors
+ --deselect tests/test_edge_cases.py::test_cython_function_untouched
+ )
+ cd $_name-$pkgver
+ pytest -vv "${deselected[@]}"
+}
+
+package() {
+ cd $_name-$pkgver
+ python -m installer --destdir="$pkgdir" dist/*.whl
+ install -vDm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
+}