* update python-pydantic to 2.0.3-3
This commit is contained in:
parent
98817feb1f
commit
6db416382b
@ -4,15 +4,17 @@
|
||||
|
||||
_name=pydantic
|
||||
pkgname=python-$_name
|
||||
pkgver=1.10.7
|
||||
pkgrel=4
|
||||
# WARNING: upstream pins pydantic-core down to the patch-level and using other versions breaks tests! only update in lock-step with python-pydantic-core!
|
||||
pkgver=2.0.3
|
||||
pkgrel=3
|
||||
pkgdesc='Data parsing and validation using Python type hints'
|
||||
arch=(x86_64 powerpc64le powerpc64 powerpc riscv64)
|
||||
url="https://github.com/pydantic/pydantic"
|
||||
license=(MIT)
|
||||
depends=(
|
||||
glibc
|
||||
python
|
||||
python-annotated-types
|
||||
python-pydantic-core
|
||||
python-typing-extensions
|
||||
)
|
||||
makedepends=(
|
||||
@ -20,21 +22,31 @@ makedepends=(
|
||||
python-build
|
||||
python-installer
|
||||
python-importlib-metadata
|
||||
python-setuptools
|
||||
python-hatchling
|
||||
python-hatch-fancy-pypi-readme
|
||||
python-wheel
|
||||
)
|
||||
checkdepends=(
|
||||
python-ansi2html
|
||||
python-devtools
|
||||
python-dirty-equals
|
||||
python-email-validator
|
||||
python-faker
|
||||
python-hypothesis
|
||||
python-pygments
|
||||
python-pytest
|
||||
python-pytest-benchmark
|
||||
python-pytest-examples
|
||||
python-pytest-mock
|
||||
python-sqlalchemy
|
||||
)
|
||||
optdepends=(
|
||||
'python-dotenv: for .env file support'
|
||||
'python-email-validator: for email validation'
|
||||
)
|
||||
source=($url/archive/v$pkgver/$_name-v$pkgver.tar.gz)
|
||||
sha512sums=('948a7935b374719773df50243aed708b3c6789243b9aa0ba239cf1502ddd0e0cec4d701e108f1cc78090c088f3cb1c78b840c39f5e7ad0e61739776f552f284d')
|
||||
b2sums=('b2dd75a640ca54024a2bf141117a1d738a30a4630bed8f4d0169fc5a6a55ded719727d88c7e78b9a2acc3aec68482e9be8c8bf4776fef668fe4acc3e1fd775df')
|
||||
sha512sums=('2930cb85b5d4c02bc38d68875e2e5771beb28eb329ce14fcc85d0ed2c27194717e26f22f5fb0a9d548ee2a0ed7172d082a4e9213e55cb971ce8e5f68c0b1b660')
|
||||
b2sums=('ea04e906c5f16d2a3f962937b6de946b9bb6e3845b11a0d477db047ff502ea0f2ebcea624c53fe5f4590d6164f200c8f8cc1a0d9fe8c6b801a93c5957d305a02')
|
||||
|
||||
build() {
|
||||
cd $_name-$pkgver
|
||||
@ -43,12 +55,15 @@ build() {
|
||||
|
||||
check() {
|
||||
local pytest_options=(
|
||||
# we don't care about pytest warnings leading to errors
|
||||
--pythonwarnings ignore::DeprecationWarning:pkg_resources
|
||||
-vv
|
||||
)
|
||||
local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
|
||||
|
||||
cd $_name-$pkgver
|
||||
pytest -vv "${pytest_options[@]}"
|
||||
# install to temporary location, as importlib is used
|
||||
python -m installer --destdir=test_dir dist/*.whl
|
||||
export PYTHONPATH="$PWD/test_dir/$site_packages:$PYTHONPATH"
|
||||
pytest "${pytest_options[@]}"
|
||||
}
|
||||
|
||||
package() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user