Caleb Maclennan pushed to branch main at Arch Linux / Packaging / Packages / python-dateutil
Commits: cba6686f by Caleb Maclennan at 2023-12-23T00:15:16+03:00 upgpkg: 2.8.2-6: Use PEP517 build system - - - - - 2 changed files: - + .SRCINFO - PKGBUILD Changes: ===================================== .SRCINFO ===================================== @@ -0,0 +1,23 @@ +pkgbase = python-dateutil + pkgdesc = Provides powerful extensions to the standard datetime module + pkgver = 2.8.2 + pkgrel = 6 + url = https://github.com/dateutil/dateutil + arch = any + license = BSD + license = Apache + checkdepends = python-freezegun + checkdepends = python-hypothesis + checkdepends = python-pytest + makedepends = python-build + makedepends = python-installer + makedepends = python-wheel + makedepends = python-setuptools-scm + makedepends = python-six + makedepends = git + depends = python-six + source = git+https://github.com/dateutil/dateutil.git#commit=6b035517571e63b6a63a493740c5506ec1e5da44?signed + validpgpkeys = 5DE3E0509C47EA3CF04A42D34AEE18F83AFDEB23 + sha256sums = SKIP + +pkgname = python-dateutil ===================================== PKGBUILD ===================================== @@ -1,33 +1,41 @@ # Maintainer: Jelle van der Waa <[email protected]> +# Maintainer: Caleb Maclennan <[email protected]> # Contributor: Eli Schwartz <[email protected]> # Contributor: lilydjwg <[email protected]> pkgname=python-dateutil pkgver=2.8.2 -pkgrel=5 +_sha=6b035517571e63b6a63a493740c5506ec1e5da44 +pkgrel=6 pkgdesc="Provides powerful extensions to the standard datetime module" -arch=('any') -license=('BSD' 'Apache') +arch=(any) +license=(BSD Apache) url="https://github.com/dateutil/dateutil" -depends=('python-six') -makedepends=('python-setuptools-scm' 'python-six' 'git') -checkdepends=('python-pytest' 'python-freezegun' 'python-hypothesis') -source=(git+https://github.com/dateutil/dateutil.git#commit=6b035517571e63b6a63a493740c5506ec1e5da44?signed) +depends=(python-six) +makedepends=(python-{build,installer,wheel} + python-setuptools-scm + python-six git) +checkdepends=(python-freezegun + python-hypothesis + python-pytest) +source=("git+$url.git#commit=$_sha?signed") sha256sums=('SKIP') validpgpkeys=('5DE3E0509C47EA3CF04A42D34AEE18F83AFDEB23') # Mario Corchero <[email protected]> build() { - cd "$srcdir"/dateutil - python setup.py build + cd dateutil + python -m build -wn } check() { cd dateutil - pytest -W ignore::pytest.PytestUnknownMarkWarning # https://github.com/pytest-dev/pytest/issues/5678 + # https://github.com/pytest-dev/pytest/issues/5678 + pytest -W ignore::pytest.PytestUnknownMarkWarning \ + --deselect dateutil/test/test_internals.py::test_parser_parser_private_not_warns } package() { - cd "$srcdir"/dateutil - python setup.py install --root="$pkgdir" --optimize=1 --skip-build - install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE + cd dateutil + python -m installer -d "$pkgdir" dist/*.whl + install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE } View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-dateutil/-/commit/cba6686fce9b2f647d8e8e055722a5b2f87ced41 -- View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-dateutil/-/commit/cba6686fce9b2f647d8e8e055722a5b2f87ced41 You're receiving this email because of your account on gitlab.archlinux.org.
