python-dateutil: rebuild for Python 3.10, update to 2.8.2.

This commit is contained in:
Andrew J. Hesford 2021-09-24 23:16:21 -04:00
parent 1dcf906e3c
commit 32429a0291
2 changed files with 35 additions and 7 deletions

View file

@ -0,0 +1,28 @@
Void doesn't package setuptools_scm for Python 2, so remove the dependency.
Leave a placeholder for version number that can be substituted at build.
diff -ur a/setup.cfg b/setup.cfg
--- a/setup.cfg
+++ b/setup.cfg
@@ -35,7 +35,6 @@
[options]
zip_safe = True
-setup_requires = setuptools_scm
install_requires = six >= 1.5
python_requires = >=2.7, !=3.0.*, !=3.1.*, !=3.2.*
packages = find:
diff -ur a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -47,9 +47,7 @@
setup(
- use_scm_version={
- 'write_to': 'dateutil/_version.py',
- },
+ version=%PKGVERSION%,
## Needed since doctest not supported by PyPA.
long_description = README,
cmdclass={

View file

@ -1,21 +1,21 @@
# Template file for 'python-dateutil'
pkgname=python-dateutil
version=2.8.1
revision=2
version=2.8.2
revision=1
build_style=python-module
hostmakedepends="python-setuptools python3-setuptools_scm"
hostmakedepends="python-setuptools python3-setuptools"
depends="python-six tzdata"
short_desc="Extensions to the standard Python2 datetime module"
maintainer="Alessio Sergi <al3hex@gmail.com>"
license="Apache-2.0, BSD-3-Clause"
homepage="https://github.com/dateutil/dateutil"
distfiles="${PYPI_SITE}/p/${pkgname}/${pkgname}-${version}.tar.gz"
checksum=73ebfe9dbf22e832286dafa60473e4cd239f8592f699aa5adaf10050e6e1823c
checksum=0123cacc1627ae19ddf3c27a5de5bd67ee4586fbdd6440d9748f8abb483d3e86
pre_build() {
# don't install zoneinfo tarball
sed -i '/package_data=/d' setup.py
post_patch() {
vsed -i setup.py -e "s/%PKGVERSION%/'${version}'/"
}
post_install() {
vlicense LICENSE
}