remove old pytz
This commit is contained in:
parent
d7a9e0b750
commit
27e4bcd8a8
@ -496,11 +496,11 @@ From time to time a fresh compile test on empty boxes (one with Python 3.9 and o
|
||||
|
||||
## Licenses
|
||||
This repository itself is released under GPL-3 (like most Gentoo repositories), all work on the depending components under the licenses they came from. Perhaps you came here because I filed an issue at your component about a bad or missing license. It is easy to [assign a license](https://docs.github.com/en/communities/setting-up-your-project-for-healthy-contributions/adding-a-license-to-a-repository). During cleanups and license investigations I have been asked often which license to choose. I am not a lawyer, but I can offer the following table, counted over this repository, perhaps this helps your decision. If a package has more than one license listed, all of them are counted.
|
||||
There are 1713 Ebuilds in total, 1706 of them have in total 1714 (35 different) licenses assigned.
|
||||
There are 1711 Ebuilds in total, 1704 of them have in total 1712 (35 different) licenses assigned.
|
||||
|
||||
|License| Ebuilds using it|
|
||||
|-------|-----|
|
||||
|MIT|1038|
|
||||
|MIT|1036|
|
||||
|Apache-2.0|315|
|
||||
|GPL-3|105|
|
||||
|BSD|95|
|
||||
|
||||
@ -1,8 +0,0 @@
|
||||
AUX 2018.4-zoneinfo.patch 549 BLAKE2B 5654ac8133627afaf9dc17dd9ae8e6a22ef9206efc6ca88495bfdec0078fc77a290ab7a62d6d1aa722ac01b9428bf37382d5f19d9da65593aed43354d05ceeec SHA512 eb365950d2eb62c8d984146228c7d96fca96b2ab4ea90b951a85b3f450550451e6c014da21e403476435e71c5ae989f169d21e07c56fab9713dacec0aee3184f
|
||||
AUX pytz-2018.4-zoneinfo-noinstall.patch 579 BLAKE2B 1d21d01160dbdf6c6848c2c0088cbc6ca326270b106098ce7157b363acf6f4da750a58498be95a8b5bf1ee342b679fdbbf16cf9d542d5f46088062db83f866f7 SHA512 309c2427f5a8ebb77bdf899ad3fb34029c46901cbaf2baf3ab697b83608dd1d3c6e7cf776b1b9b592918b91cbafd148ee3e4c0b4255f38ea3e41c0bca94f4c51
|
||||
AUX pytz-2020.5-system-zoneinfo.patch 1294 BLAKE2B 0f6f4cf1c588b90827decb19d82d7adf97f44769b2acd4038d6b818ae27162f576338b61de6775b4aa387b4a1cb434b36d6f14fdf1eaa3c878e2af7e9ce32620 SHA512 aad785a23a3681de7d52c4898eae4d7f33ddff9c136f52111ab0aef076d0a3c72c7b0aa0910e191f3098baa05c09f522e927a94967481a89d1d1bcbe99824e3b
|
||||
DIST pytz-2020.1.tar.gz 311771 BLAKE2B 2d7dd9987fd912dd2a62b5c4ab1667a13f3704ff407796c00fd76b6f3ac4dfcffba9f58740f9456ddfade6c2ef6deacc754f57f5e434b97da36b36fca3024d0f SHA512 4f652ab400bac0bd83ed305be7540094e674029a0cbde7da280adfd911b8c0a44023799b7c61971a5a61a1d6e3992c5b621e5e95bbfe962f310d5f26d4fda3ce
|
||||
DIST pytz-2021.1.tar.gz 317945 BLAKE2B 5d8b5ac80a9d5be56977df8a422e9f008ccb1afb9468155c53aa97f0bf43ba15c27fd30ee7be035be6fa590dcb272991a069cd1383f1c6c8d378958d7b0c4970 SHA512 507e24e3c5c2c619d9f3c7f4c33d44d262e33656b07701d0db78f5d67b263ad845dccc4ff50e48c580b0f295cf97ed146af7b9259890a50bb6da4c82b70c439b
|
||||
EBUILD pytz-2020.1.ebuild 883 BLAKE2B 330ef0315457a72cd3ecd2838bdaf13d4eb4bbbc54a554a77c787b39ca5ee1d33dd746c15f4fa5fe2c561c21b6b6b8f3d8471f2d5d89ef38a60c6e58ffee1151 SHA512 8c7230ac1bbb5d600ecb9a6abdacd8e3bea005df4a4eb8054f822ef02266b94854ce4230dbcd6e0d4e907e256c391a02bc01f3b9fc202d96fdca190525cddea2
|
||||
EBUILD pytz-2021.1.ebuild 867 BLAKE2B 573a9c43a5d50f43bb8bcb46dd1e2374168ee8d85b2d1c38a6090eddaf108458961cb79a677002111aef7b17e2429a3361865ab31d7e38125a48b5e7e070ee1a SHA512 459636b0489c16a0885e9c399194c27d9a27333dcd20e02469c4c4b58563865304fc64a118c7e500d3b628e0a7a0f205b45ea5e9544583a764b3db6ce2fbd9fd
|
||||
MISC metadata.xml 739 BLAKE2B d96611c8cdfc1d45fa86eabcbcc60ed1d3f7e7d2a358a2fc5cf54a64ac3427140299651263e0be1cc4d2f87750df81c4adac9512be75ab334d38f44a375238ea SHA512 b7c9e6ea1b5bd128f1c5ce0a77171d0b7cdbb6f8ffb186d92aa4167d2d84c60c28c647cae66ffc7532350bca13ab65aaab5eb441f68321fc786a14b90f8813e8
|
||||
@ -1,12 +0,0 @@
|
||||
--- a/pytz/__init__.py
|
||||
+++ b/pytz/__init__.py
|
||||
@@ -91,8 +91,7 @@
|
||||
if zoneinfo_dir is not None:
|
||||
filename = os.path.join(zoneinfo_dir, *name_parts)
|
||||
else:
|
||||
- filename = os.path.join(os.path.dirname(__file__),
|
||||
- 'zoneinfo', *name_parts)
|
||||
+ filename = os.path.join('/usr/share/zoneinfo', *name_parts)
|
||||
if not os.path.exists(filename):
|
||||
# http://bugs.launchpad.net/bugs/383171 - we avoid using this
|
||||
# unless absolutely necessary to help when a broken version of
|
||||
@ -1,18 +0,0 @@
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
@@ -15,15 +15,8 @@
|
||||
memail = 'stuart@stuartbishop.net'
|
||||
packages = ['pytz']
|
||||
resources = ['zone.tab', 'locales/pytz.pot']
|
||||
-for dirpath, dirnames, filenames in os.walk(os.path.join('pytz', 'zoneinfo')):
|
||||
- # remove the 'pytz' part of the path
|
||||
- basepath = dirpath.split(os.path.sep, 1)[1]
|
||||
- resources.extend([os.path.join(basepath, filename)
|
||||
- for filename in filenames])
|
||||
package_data = {'pytz': resources}
|
||||
|
||||
-assert len(resources) > 10, 'zoneinfo files not found!'
|
||||
-
|
||||
setup(
|
||||
name='pytz',
|
||||
version=pytz.VERSION,
|
||||
@ -1,33 +0,0 @@
|
||||
diff --git a/pytz/__init__.py b/pytz/__init__.py
|
||||
index a1f75b6..f2a2330 100644
|
||||
--- a/pytz/__init__.py
|
||||
+++ b/pytz/__init__.py
|
||||
@@ -92,8 +92,7 @@ def open_resource(name):
|
||||
if zoneinfo_dir is not None:
|
||||
filename = os.path.join(zoneinfo_dir, *name_parts)
|
||||
else:
|
||||
- filename = os.path.join(os.path.dirname(__file__),
|
||||
- 'zoneinfo', *name_parts)
|
||||
+ filename = os.path.join('/usr/share/zoneinfo', *name_parts)
|
||||
if not os.path.exists(filename):
|
||||
# http://bugs.launchpad.net/bugs/383171 - we avoid using this
|
||||
# unless absolutely necessary to help when a broken version of
|
||||
diff --git a/setup.py b/setup.py
|
||||
index e31ff2b..ba6926b 100644
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
@@ -15,14 +15,8 @@ me = 'Stuart Bishop'
|
||||
memail = 'stuart@stuartbishop.net'
|
||||
packages = ['pytz']
|
||||
resources = ['zone.tab', 'locales/pytz.pot']
|
||||
-for dirpath, dirnames, filenames in os.walk(os.path.join('pytz', 'zoneinfo')):
|
||||
- # remove the 'pytz' part of the path
|
||||
- basepath = dirpath.split(os.path.sep, 1)[1]
|
||||
- resources.extend([os.path.join(basepath, filename) for filename in filenames])
|
||||
package_data = {'pytz': resources}
|
||||
|
||||
-assert len(resources) > 10, 'zoneinfo files not found!'
|
||||
-
|
||||
setup(
|
||||
name='pytz',
|
||||
version=pytz.VERSION,
|
||||
@ -1,19 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>python@gentoo.org</email>
|
||||
<name>Python</name>
|
||||
</maintainer>
|
||||
<longdescription lang="en">
|
||||
pytz brings the Olson tz database into Python. This library allows
|
||||
accurate and cross platform timezone calculations using Python 2.3
|
||||
or higher. It also solves the issue of ambiguous times at the end of
|
||||
daylight savings, which you can read more about in the Python
|
||||
Library Reference (datetime.tzinfo).
|
||||
Amost all (over 540) of the Olson timezones are supported.
|
||||
</longdescription>
|
||||
<upstream>
|
||||
<remote-id type="pypi">pytz</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
@ -1,35 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..9} )
|
||||
PYTHON_REQ_USE="threads(+)"
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="World timezone definitions for Python"
|
||||
HOMEPAGE="https://pythonhosted.org/pytz/ https://pypi.org/project/pytz/"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~arm ~arm64 x86 amd64-linux x86-linux"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
|| ( >=sys-libs/timezone-data-2017a sys-libs/glibc[vanilla] )"
|
||||
DEPEND="${RDEPEND}
|
||||
app-arch/unzip"
|
||||
|
||||
PATCHES=(
|
||||
# Use timezone-data zoneinfo.
|
||||
"${FILESDIR}"/2018.4-zoneinfo.patch
|
||||
# ...and do not install a copy of it.
|
||||
"${FILESDIR}"/${PN}-2018.4-zoneinfo-noinstall.patch
|
||||
)
|
||||
|
||||
python_test() {
|
||||
"${PYTHON}" pytz/tests/test_tzinfo.py -v || die "Tests fail with ${EPYTHON}"
|
||||
}
|
||||
@ -1,32 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..9} )
|
||||
PYTHON_REQ_USE="threads(+)"
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="World timezone definitions for Python"
|
||||
HOMEPAGE="https://pythonhosted.org/pytz/ https://pypi.org/project/pytz/"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha amd64 ~arm ~arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="
|
||||
|| ( >=sys-libs/timezone-data-2017a sys-libs/glibc[vanilla] )"
|
||||
RDEPEND="${DEPEND}"
|
||||
BDEPEND="app-arch/unzip"
|
||||
|
||||
PATCHES=(
|
||||
# Use timezone-data zoneinfo.
|
||||
"${FILESDIR}"/pytz-2020.5-system-zoneinfo.patch
|
||||
)
|
||||
|
||||
python_test() {
|
||||
"${EPYTHON}" pytz/tests/test_tzinfo.py -v || die "Tests fail with ${EPYTHON}"
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user