python-dateutil: remove

python 2
This commit is contained in:
classabbyamp 2023-10-11 17:23:44 -04:00 committed by classabbyamp
parent e702885eb0
commit e38f8562a4
2 changed files with 0 additions and 49 deletions

View File

@ -1,28 +0,0 @@
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 +0,0 @@
# Template file for 'python-dateutil'
pkgname=python-dateutil
version=2.8.2
revision=2
build_style=python2-module
hostmakedepends="python-setuptools"
depends="python-six tzdata"
short_desc="Extensions to the standard Python2 datetime module"
maintainer="Orphaned <orphan@voidlinux.org>"
license="Apache-2.0, BSD-3-Clause"
homepage="https://github.com/dateutil/dateutil"
distfiles="${PYPI_SITE}/p/python-dateutil/python-dateutil-${version}.tar.gz"
checksum=0123cacc1627ae19ddf3c27a5de5bd67ee4586fbdd6440d9748f8abb483d3e86
post_patch() {
vsed -i setup.py -e "s/%PKGVERSION%/'${version}'/"
}
post_install() {
vlicense LICENSE
}