[arch-commits] Commit in (4 files)

Felix Yan felixonmars at gemini.archlinux.org
Fri Jun 10 10:28:32 UTC 2022


    Date: Friday, June 10, 2022 @ 10:28:32
  Author: felixonmars
Revision: 1229995

addpkg: python-calver 2021.7.30-1

Added:
  python-calver/
  python-calver/repos/
  python-calver/trunk/
  python-calver/trunk/PKGBUILD

----------+
 PKGBUILD |   36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

Added: python-calver/trunk/PKGBUILD
===================================================================
--- python-calver/trunk/PKGBUILD	                        (rev 0)
+++ python-calver/trunk/PKGBUILD	2022-06-10 10:28:32 UTC (rev 1229995)
@@ -0,0 +1,36 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-calver
+pkgver=2021.7.30
+pkgrel=1
+pkgdesc="Setuptools extension for CalVer package versions"
+url="https://github.com/di/calver"
+license=('Apache')
+arch=('any')
+depends=('python')
+makedepends=('python-calver' 'python-setuptools')
+checkdepends=('python-pytest' 'python-pretend')
+source=("https://github.com/di/calver/archive/$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('17c10b0f60ec4c8c582de660bd715d054c3478d8fdec88a6830396bad1d6147ce375a34c5ff57d244c8c2e337a6b382b6ee10673182a40bc14ad16a97405f181')
+
+prepare() {
+  cd calver-$pkgver
+  echo "Version: $pkgver" > PKG-INFO
+}
+
+build() {
+  cd calver-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd calver-$pkgver
+  mv PKG-INFO PKG-INFO.bak
+  PYTHONPATH="$PWD"/build/lib pytest
+  mv PKG-INFO.bak PKG-INFO
+}
+
+package() {
+  cd calver-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+}



More information about the arch-commits mailing list