[arch-commits] Commit in python-tzdata/repos/community-any (PKGBUILD PKGBUILD)
Daniel M. Capella
polyzen at gemini.archlinux.org
Sat Aug 13 19:13:30 UTC 2022
Date: Saturday, August 13, 2022 @ 19:13:30
Author: polyzen
Revision: 1265992
archrelease: copy trunk to community-any
Added:
python-tzdata/repos/community-any/PKGBUILD
(from rev 1265991, python-tzdata/trunk/PKGBUILD)
Deleted:
python-tzdata/repos/community-any/PKGBUILD
----------+
PKGBUILD | 80 +++++++++++++++++++++++++++++--------------------------------
1 file changed, 39 insertions(+), 41 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-08-13 19:13:11 UTC (rev 1265991)
+++ PKGBUILD 2022-08-13 19:13:30 UTC (rev 1265992)
@@ -1,41 +0,0 @@
-# Maintainer: Daniel M. Capella <polyzen at archlinux.org>
-
-_name=tzdata
-pkgname=python-tzdata
-pkgver=2022.1
-pkgrel=1
-pkgdesc='Provider of IANA time zone data'
-arch=('any')
-url=https://github.com/python/tzdata
-license=('Apache')
-depends=('python')
-makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel')
-checkdepends=('python-pytest' 'python-pytest-subtests')
-source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
-sha256sums=('8b536a8ec63dc0751342b3984193a3118f8fca2afe25752bb9b7fffd398552d3')
-b2sums=('b3062514e0ce8a9c3e68cd6b5969292f1a8aafceb37f3bc5518ad37024f08c508e4dad00f477bdaaa2d187fcef7e650cc949af9d273d2d90c3017f4bf3628f0c')
-
-build() {
- cd $_name-$pkgver
- python -m build --wheel --skip-dependency-check --no-isolation
-}
-
-check() {
- cd $_name-$pkgver
- python -m venv --system-site-packages test-env
- test-env/bin/python -m installer dist/*.whl
- test-env/bin/python -m pytest
-}
-
-package() {
- cd $_name-$pkgver
- python -m installer --destdir="$pkgdir" dist/*.whl
-
- # Symlink license file
- local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
- install -d "$pkgdir"/usr/share/licenses/$pkgname
- ln -s "$site_packages"/$_name-$pkgver.dist-info/LICENSE \
- "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}
-
-# vim:set ts=2 sw=2 et:
Copied: python-tzdata/repos/community-any/PKGBUILD (from rev 1265991, python-tzdata/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-08-13 19:13:30 UTC (rev 1265992)
@@ -0,0 +1,39 @@
+# Maintainer: Daniel M. Capella <polyzen at archlinux.org>
+
+_name=tzdata
+pkgname=python-tzdata
+pkgver=2022.2
+pkgrel=1
+pkgdesc='Provider of IANA time zone data'
+arch=('any')
+url=https://github.com/python/tzdata
+license=('Apache')
+depends=('python')
+makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel')
+checkdepends=('python-pytest' 'python-pytest-subtests')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
+sha256sums=('21f4f0d7241572efa7f7a4fdabb052e61b55dc48274e6842697ccdf5253e5451')
+b2sums=('5822553a06c3a9f28839e4b07ac10571ad0e122f7dd73f5de889d7a4104465291ab744a604f2d077f75c00538b628b7e325a1ee6efb275b7d9cfa13057b0b59a')
+
+build() {
+ cd $_name-$pkgver
+ python -m build --wheel --skip-dependency-check --no-isolation
+}
+
+check() {
+ cd $_name-$pkgver
+ python -m venv --system-site-packages test-env
+ test-env/bin/python -m installer dist/*.whl
+ test-env/bin/python -m pytest
+}
+
+package() {
+ cd $_name-$pkgver
+ python -m installer --destdir="$pkgdir" dist/*.whl
+
+ # Symlink license file
+ local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
+ install -d "$pkgdir"/usr/share/licenses/$pkgname
+ ln -s "$site_packages"/$_name-$pkgver.dist-info/LICENSE \
+ "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
More information about the arch-commits
mailing list