[arch-commits] Commit in python-pytzdata/repos/community-staging-any (2 files)

Felix Yan felixonmars at gemini.archlinux.org
Thu Dec 2 21:48:07 UTC 2021


    Date: Thursday, December 2, 2021 @ 21:48:07
  Author: felixonmars
Revision: 1062683

archrelease: copy trunk to community-staging-any

Added:
  python-pytzdata/repos/community-staging-any/PKGBUILD
    (from rev 1062681, python-pytzdata/trunk/PKGBUILD)
Deleted:
  python-pytzdata/repos/community-staging-any/PKGBUILD

----------+
 PKGBUILD |   92 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 46 insertions(+), 46 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-12-02 21:48:05 UTC (rev 1062682)
+++ PKGBUILD	2021-12-02 21:48:07 UTC (rev 1062683)
@@ -1,46 +0,0 @@
-# Maintainer: David Runge <dvzrv at archlinux.org>
-
-_name=pytzdata
-pkgname=python-pytzdata
-pkgver=2020.1
-pkgrel=4
-pkgdesc="Official timezone database for Python."
-arch=('any')
-url="https://github.com/sdispater/pytzdata"
-license=('MIT')
-depends=('python')
-makedepends=('python-cleo' 'python-dephell')
-checkdepends=('python-pytest')
-source=("${pkgname}-${pkgver}.tar.gz::https://github.com/sdispater/${_name}/archive/${pkgver}.tar.gz")
-sha512sums=('fd154bfbe90ce07a90f769063b772234036d2627c1e6d78a465d9ddbc894e50cb9d821c04ebff1a7cc6a327266f7843fe54e5592d37c41db023329d6e0f668c2')
-b2sums=('6f07a7577edc87030fd70e720b32146e9044a8c6f74d0bafb9239ad666d0d6fd0ac7c3cca070914701af301b1a3368ace2985f8169b9747937fa6ed066be7302')
-
-prepare() {
-  mv -v "${_name}-$pkgver" "$pkgname-$pkgver"
-  cd "$pkgname-$pkgver"
-  dephell deps convert --from pyproject.toml --to setup.py
-}
-
-build() {
-  cd "$pkgname-$pkgver"
-  python setup.py build
-}
-
-check() {
-  cd "$pkgname-$pkgver"
-  export PYTHONPATH="build:${PYTHONPATH}"
-  pytest -v
-}
-
-package() {
-  cd "$pkgname-$pkgver"
-  local python_version=$(python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')
-  python setup.py install --skip-build \
-    --optimize=1 \
-    --prefix=/usr \
-    --root="${pkgdir}"
-  cp -av ${_name}/zoneinfo/* \
-    "${pkgdir}/usr/lib/python${python_version}/site-packages/${_name}/zoneinfo/"
-  install -vDm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
-  install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
-}

Copied: python-pytzdata/repos/community-staging-any/PKGBUILD (from rev 1062681, python-pytzdata/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-12-02 21:48:07 UTC (rev 1062683)
@@ -0,0 +1,46 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=pytzdata
+pkgname=python-pytzdata
+pkgver=2020.1
+pkgrel=5
+pkgdesc="Official timezone database for Python."
+arch=('any')
+url="https://github.com/sdispater/pytzdata"
+license=('MIT')
+depends=('python')
+makedepends=('python-cleo' 'python-dephell')
+checkdepends=('python-pytest')
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/sdispater/${_name}/archive/${pkgver}.tar.gz")
+sha512sums=('fd154bfbe90ce07a90f769063b772234036d2627c1e6d78a465d9ddbc894e50cb9d821c04ebff1a7cc6a327266f7843fe54e5592d37c41db023329d6e0f668c2')
+b2sums=('6f07a7577edc87030fd70e720b32146e9044a8c6f74d0bafb9239ad666d0d6fd0ac7c3cca070914701af301b1a3368ace2985f8169b9747937fa6ed066be7302')
+
+prepare() {
+  mv -v "${_name}-$pkgver" "$pkgname-$pkgver"
+  cd "$pkgname-$pkgver"
+  dephell deps convert --from pyproject.toml --to setup.py
+}
+
+build() {
+  cd "$pkgname-$pkgver"
+  python setup.py build
+}
+
+check() {
+  cd "$pkgname-$pkgver"
+  export PYTHONPATH="build:${PYTHONPATH}"
+  pytest -v
+}
+
+package() {
+  cd "$pkgname-$pkgver"
+  local python_version=$(python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')
+  python setup.py install --skip-build \
+    --optimize=1 \
+    --prefix=/usr \
+    --root="${pkgdir}"
+  cp -av ${_name}/zoneinfo/* \
+    "${pkgdir}/usr/lib/python${python_version}/site-packages/${_name}/zoneinfo/"
+  install -vDm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
+  install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+}



More information about the arch-commits mailing list