[arch-commits] Commit in python-tempora/trunk (PKGBUILD)

Thore Bödecker foxxx0 at archlinux.org
Sat Jan 11 21:20:20 UTC 2020


    Date: Saturday, January 11, 2020 @ 21:20:19
  Author: foxxx0
Revision: 552109

upgpkg: python-tempora 2.1.0-1

rework check() to properly use pytest, remove tox stuff

Modified:
  python-tempora/trunk/PKGBUILD

----------+
 PKGBUILD |   17 +++++++----------
 1 file changed, 7 insertions(+), 10 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-01-11 21:18:47 UTC (rev 552108)
+++ PKGBUILD	2020-01-11 21:20:19 UTC (rev 552109)
@@ -3,7 +3,7 @@
 
 pkgname='python-tempora'
 _pkgbase="${pkgname//python-/}"
-pkgver=2.0.0
+pkgver=2.1.0
 pkgrel=1
 pkgdesc="Objects and routines pertaining to date and time (tempora)."
 arch=('any')
@@ -12,26 +12,23 @@
 depends=('python' 'python-six' 'python-pytz' 'python-jaraco')
 makedepends=('python-setuptools' 'python-setuptools-scm' 'python-six'
              'python-pytz' 'python-jaraco')
-checkdepends=('python-tox')
+checkdepends=('python-pytest' 'python-pytest-flake8' 'python-pytest-cov' 'python-pytest-black' 'python-freezegun' 'python-pytest-freezegun')
 source=("https://files.pythonhosted.org/packages/source/${_pkgbase:0:1}/${_pkgbase}/${_pkgbase}-${pkgver}.tar.gz"
         'LICENSE')
-sha512sums=('9f488ecca0673a0071503475378bc8f5ddcfabb32fcc548392434df45767fbeb8b914117622ec6f9dc6a8de90e5bfe6e5571a9a18ddecf7c25e94fc1f7fff102'
+sha512sums=('f66ebf03d5c6d71f1316e3ac9b2c16a96eb622e553917f7e52fe8881cbd5f4651174130e70d2212cad78811859dfb4fe248e6f81a5bb6c928a0c43e9363d2c4e'
             '1106afed483b7258e4ae89c5d9459c3834412b31aac90169725ed62d2ab44f61f6f79e894d4c9e4d8bd99e14530ab778df2187784f0b25eaab86d312fad68944')
 
+# setuptools won't find version from git tag
+export SETUPTOOLS_SCM_PRETEND_VERSION="${pkgver}"
+
 build() {
-    # setuptools wont find version from git tag
-
-    export SETUPTOOLS_SCM_PRETEND_VERSION="${pkgver}"
     cd "${srcdir}/${_pkgbase}-${pkgver}"
     python ./setup.py build
 }
 
 check() {
-    # setuptools wont find version from git tag
-    export SETUPTOOLS_SCM_PRETEND_VERSION="${pkgver}"
-
     cd "${srcdir}/${_pkgbase}-${pkgver}"
-    tox
+    pytest
 }
 
 package() {



More information about the arch-commits mailing list