[arch-commits] Commit in python-cucumber-tag-expressions/trunk (PKGBUILD)

Felix Yan felixonmars at gemini.archlinux.org
Tue Feb 15 00:06:52 UTC 2022


    Date: Tuesday, February 15, 2022 @ 00:06:52
  Author: felixonmars
Revision: 1133292

upgpkg: python-cucumber-tag-expressions 4.0.0-1

Modified:
  python-cucumber-tag-expressions/trunk/PKGBUILD

----------+
 PKGBUILD |   21 +++++++++++++--------
 1 file changed, 13 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-02-14 23:54:27 UTC (rev 1133291)
+++ PKGBUILD	2022-02-15 00:06:52 UTC (rev 1133292)
@@ -1,30 +1,35 @@
 # Maintainer: Felix Yan <felixonmars at archlinux.org>
 
 pkgname=python-cucumber-tag-expressions
-pkgver=3.0.1
-pkgrel=3
+pkgver=4.0.0
+pkgrel=1
 pkgdesc="Provides tag-expression parser for cucumber/behave"
-url="https://github.com/cucumber/tag-expressions-python"
+url="https://github.com/cucumber/tag-expressions"
 license=('MIT')
 arch=('any')
 depends=('python')
 makedepends=('python-setuptools')
 checkdepends=('python-pytest' 'python-pytest-html')
-source=("https://github.com/cucumber/tag-expressions-python/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
-sha512sums=('444c04d219998899e7ea30f3a3141c9f6d711c7ab727eca107bdcfa0b3b8fe66c99cfa07c695638efcbf5279d75a12434101a85f2c778f6802a74a972b274c85')
+source=("https://github.com/cucumber/tag-expressions/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('b855386e00671c27c10febf1ce9a642d60cd07fc6afab5afe352733f3443c87067049e4a526b96ac5038f0ae334c730356c51fee826c22df920b2e8908ec25ba')
 
+prepare() {
+  cd tag-expressions-$pkgver/python
+  sed -i '/use_2to3 = /d' setup.py
+}
+
 build() {
-  cd tag-expressions-python-$pkgver
+  cd tag-expressions-$pkgver/python
   python setup.py build
 }
 
 check() {
-  cd tag-expressions-python-$pkgver
+  cd tag-expressions-$pkgver/python
   python -m pytest
 }
 
 package() {
-  cd tag-expressions-python-$pkgver
+  cd tag-expressions-$pkgver/python
   python setup.py install --root="$pkgdir" --optimize=1
 
   install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/



More information about the arch-commits mailing list