[arch-commits] Commit in python-tempora/trunk (PKGBUILD)
Thore Bödecker
foxxx0 at archlinux.org
Wed Mar 14 11:46:29 UTC 2018
Date: Wednesday, March 14, 2018 @ 11:46:28
Author: foxxx0
Revision: 307686
upgpkg: python-tempora 1.11-1
update to 1.11
Modified:
python-tempora/trunk/PKGBUILD
----------+
PKGBUILD | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2018-03-14 11:15:42 UTC (rev 307685)
+++ PKGBUILD 2018-03-14 11:46:28 UTC (rev 307686)
@@ -4,7 +4,7 @@
pkgbase='python-tempora'
_pkgbase="${pkgbase//python-/}"
pkgname=('python-tempora' 'python2-tempora')
-pkgver=1.9
+pkgver=1.11
pkgrel=1
pkgdesc="Objects and routines pertaining to date and time (tempora)."
arch=('any')
@@ -14,17 +14,20 @@
'python2-setuptools-scm' 'python-six' 'python2-six' 'python-pytz'
'python2-pytz')
checkdepends=('python-tox' 'python2-tox' 'python2-backports.unittest_mock')
-source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/jaraco/${_pkgbase}/archive/${pkgver}.tar.gz"
+source=("${pkgbase}-${pkgver}.tar.gz::https://files.pythonhosted.org/packages/12/6b/dc2e9370bf3be766302dbd6cd9729e258e875d31a7a21c9f760aaa5b5b5e/${_pkgbase}-${pkgver}.tar.gz"
'LICENSE')
-sha512sums=('50c11499a02645dddc1a447f16a29920baea6fc0d9d56d84c2a90f87d8d727ddd700e6b274d9f0931d70377154e058ca9f5a1a56a63c61127c5147cdee5a43a7'
+sha512sums=('cda47613cabefabb0c52e2f89f31b405a3b3f17c531a0b890a9ccfd3a3fcd5bc5bec19881ce726972ff61811654e8b5ec8048c9ebad6e87d72d7d98bfa4daeab'
'1106afed483b7258e4ae89c5d9459c3834412b31aac90169725ed62d2ab44f61f6f79e894d4c9e4d8bd99e14530ab778df2187784f0b25eaab86d312fad68944')
prepare() {
+ cd "${srcdir}/${_pkgbase}-${pkgver}"
+
cp -r "${srcdir}/${_pkgbase}-${pkgver}" "${srcdir}/${_pkgbase}-${pkgver}-py2"
}
build() {
# setuptools wont find version from git tag
+
export SETUPTOOLS_SCM_PRETEND_VERSION="${pkgver}"
cd "${srcdir}/${_pkgbase}-${pkgver}"
python ./setup.py build
@@ -34,6 +37,9 @@
}
check() {
+ # setuptools wont find version from git tag
+ export SETUPTOOLS_SCM_PRETEND_VERSION="${pkgver}"
+
cd "${srcdir}/${_pkgbase}-${pkgver}"
tox
More information about the arch-commits
mailing list