From e38f8562a4065997e4a02945ab2f644a97489bbc Mon Sep 17 00:00:00 2001 From: classabbyamp Date: Wed, 11 Oct 2023 17:23:44 -0400 Subject: [PATCH] python-dateutil: remove python 2 --- .../patches/setuptools_scm.patch | 28 ------------------- srcpkgs/python-dateutil/template | 21 -------------- 2 files changed, 49 deletions(-) delete mode 100644 srcpkgs/python-dateutil/patches/setuptools_scm.patch delete mode 100644 srcpkgs/python-dateutil/template diff --git a/srcpkgs/python-dateutil/patches/setuptools_scm.patch b/srcpkgs/python-dateutil/patches/setuptools_scm.patch deleted file mode 100644 index 9e5103ce4d4..00000000000 --- a/srcpkgs/python-dateutil/patches/setuptools_scm.patch +++ /dev/null @@ -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={ diff --git a/srcpkgs/python-dateutil/template b/srcpkgs/python-dateutil/template deleted file mode 100644 index cf8ce771084..00000000000 --- a/srcpkgs/python-dateutil/template +++ /dev/null @@ -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 " -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 -}