[arch-commits] Commit in python-dateutil/trunk (PKGBUILD)
Jelle van der Waa
jelle at gemini.archlinux.org
Sat Nov 13 15:35:52 UTC 2021
Date: Saturday, November 13, 2021 @ 15:35:51
Author: jelle
Revision: 1045491
upgpkg: python-dateutil 2.8.2-2
Modified:
python-dateutil/trunk/PKGBUILD
----------+
PKGBUILD | 29 ++++++-----------------------
1 file changed, 6 insertions(+), 23 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-11-13 15:34:45 UTC (rev 1045490)
+++ PKGBUILD 2021-11-13 15:35:51 UTC (rev 1045491)
@@ -1,33 +1,24 @@
# Maintainer: Jelle van der Waa <jelle at vdwaa.nl>
-# Maintainer: Eli Schwartz <eschwartz at archlinux.org>
+# Contributor: Eli Schwartz <eschwartz at archlinux.org>
# Contributor: lilydjwg <lilydjwg at gmail.com>
-pkgbase=python-dateutil
-pkgname=('python-dateutil' 'python2-dateutil')
+pkgname=python-dateutil
pkgver=2.8.2
-pkgrel=1
+pkgrel=2
pkgdesc="Provides powerful extensions to the standard datetime module"
arch=('any')
license=('BSD' 'Apache')
url="https://github.com/dateutil/dateutil"
-makedepends=('python-setuptools-scm' 'python2-setuptools-scm' 'python-six' 'python2-six' 'git')
+depends=('python-six')
+makedepends=('python-setuptools-scm' 'python-six' 'git')
checkdepends=('python-pytest' 'python-freezegun' 'python-hypothesis')
source=(git+https://github.com/dateutil/dateutil.git#commit=6b035517571e63b6a63a493740c5506ec1e5da44?signed)
sha256sums=('SKIP')
validpgpkeys=('5DE3E0509C47EA3CF04A42D34AEE18F83AFDEB23') # Mario Corchero <mariocj89 at gmail.com>
-prepare() {
- cd "$srcdir"
-
- cp -r dateutil dateutil2
-}
-
build() {
cd "$srcdir"/dateutil
python setup.py build
-
- cd "$srcdir"/dateutil2
- python setup.py build
}
check() {
@@ -35,16 +26,8 @@
pytest -W ignore::pytest.PytestUnknownMarkWarning # https://github.com/pytest-dev/pytest/issues/5678
}
-package_python-dateutil() {
-depends=('python-six')
+package() {
cd "$srcdir"/dateutil
python setup.py install --root="$pkgdir" --optimize=1 --skip-build
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
-
-package_python2-dateutil() {
-depends=('python2-six')
- cd "$srcdir"/dateutil2
- python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build
- install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}
More information about the arch-commits
mailing list