[arch-commits] Commit in python-tempora/trunk (PKGBUILD)
Thore Bödecker
foxxx0 at archlinux.org
Fri Jan 3 12:48:22 UTC 2020
Date: Friday, January 3, 2020 @ 12:48:21
Author: foxxx0
Revision: 547132
upgpkg: python-tempora 2.0.0-1
with this upstream release py2.7 support was dropped, thus the py2 package is removed starting with this version
Modified:
python-tempora/trunk/PKGBUILD
----------+
PKGBUILD | 47 ++++++++++-------------------------------------
1 file changed, 10 insertions(+), 37 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-01-03 12:40:38 UTC (rev 547131)
+++ PKGBUILD 2020-01-03 12:48:21 UTC (rev 547132)
@@ -1,30 +1,23 @@
# Maintainer: Thore Bödecker <foxxx0 at archlinux.org>
# Contributor: Laurent Soest <laurent.soest(at)gmail.com>
-pkgbase='python-tempora'
-_pkgbase="${pkgbase//python-/}"
-pkgname=('python-tempora' 'python2-tempora')
-pkgver=1.14.1
-pkgrel=4
+pkgname='python-tempora'
+_pkgbase="${pkgname//python-/}"
+pkgver=2.0.0
+pkgrel=1
pkgdesc="Objects and routines pertaining to date and time (tempora)."
arch=('any')
url="https://github.com/jaraco/tempora"
license=('MIT')
-makedepends=('python-setuptools' 'python2-setuptools' 'python-setuptools-scm'
- 'python2-setuptools-scm' 'python-six' 'python2-six' 'python-pytz'
- 'python2-pytz' 'python-jaraco')
-checkdepends=('python-tox' 'python2-tox' 'python2-backports.unittest_mock')
+depends=('python' 'python-six' 'python-pytz' 'python-jaraco')
+makedepends=('python-setuptools' 'python-setuptools-scm' 'python-six'
+ 'python-pytz' 'python-jaraco')
+checkdepends=('python-tox')
source=("https://files.pythonhosted.org/packages/source/${_pkgbase:0:1}/${_pkgbase}/${_pkgbase}-${pkgver}.tar.gz"
'LICENSE')
-sha512sums=('4ecd5430d4d90959b0985908a1e4f239a56ce0026cd315ef6b8c204b645caccb135db76bb2ca9cb95bc65bdf337b61e7c31514eb9c85036771469b6a058edfbb'
+sha512sums=('9f488ecca0673a0071503475378bc8f5ddcfabb32fcc548392434df45767fbeb8b914117622ec6f9dc6a8de90e5bfe6e5571a9a18ddecf7c25e94fc1f7fff102'
'1106afed483b7258e4ae89c5d9459c3834412b31aac90169725ed62d2ab44f61f6f79e894d4c9e4d8bd99e14530ab778df2187784f0b25eaab86d312fad68944')
-prepare() {
- cd "${srcdir}/${_pkgbase}-${pkgver}"
-
- cp -r "${srcdir}/${_pkgbase}-${pkgver}" "${srcdir}/${_pkgbase}-${pkgver}-py2"
-}
-
build() {
# setuptools wont find version from git tag
@@ -31,9 +24,6 @@
export SETUPTOOLS_SCM_PRETEND_VERSION="${pkgver}"
cd "${srcdir}/${_pkgbase}-${pkgver}"
python ./setup.py build
-
- cd "${srcdir}/${_pkgbase}-${pkgver}-py2"
- python2 ./setup.py build
}
check() {
@@ -42,13 +32,9 @@
cd "${srcdir}/${_pkgbase}-${pkgver}"
tox
-
- cd "${srcdir}/${_pkgbase}-${pkgver}-py2"
- tox2
}
-package_python-tempora() {
- depends=('python' 'python-six' 'python-pytz' 'python-jaraco')
+package() {
cd "${srcdir}/${_pkgbase}-${pkgver}"
python ./setup.py install --root="${pkgdir}" --optimize=1
@@ -58,16 +44,3 @@
# https://github.com/jaraco/skeleton/blob/skeleton/LICENSE
install -D -m644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
-
-package_python2-tempora() {
- depends=('python2' 'python2-six' 'python2-pytz')
- cd "${srcdir}/${_pkgbase}-${pkgver}-py2"
- python2 ./setup.py install --root="${pkgdir}" --optimize=1
- mv "${pkgdir}/usr/bin/calc-prorate" "${pkgdir}/usr/bin/calc-prorate2"
-
- # the author has promised to include a LICENSE file in future releases:
- # https://github.com/jaraco/skeleton/issues/1
- # for now the LICENSE file has been taken from:
- # https://github.com/jaraco/skeleton/blob/skeleton/LICENSE
- install -D -m644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
-}
More information about the arch-commits
mailing list