diff --git a/.gitignore b/.gitignore deleted file mode 100644 index e69de29..0000000 --- a/.gitignore +++ /dev/null diff --git a/dead.package b/dead.package new file mode 100644 index 0000000..fb1bcd9 --- /dev/null +++ b/dead.package @@ -0,0 +1 @@ +https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal diff --git a/python-dateutil-1.5-system-zoneinfo.patch b/python-dateutil-1.5-system-zoneinfo.patch deleted file mode 100644 index 2f909dc..0000000 --- a/python-dateutil-1.5-system-zoneinfo.patch +++ /dev/null @@ -1,103 +0,0 @@ -diff -up python-dateutil-1.5/dateutil/zoneinfo/__init__.py\~ python-dateutil-1.5/dateutil/zoneinfo/__init__.py ---- python-dateutil-1.5/dateutil/zoneinfo/__init__.py~ 2005-12-22 19:13:50.000000000 +0100 -+++ python-dateutil-1.5/dateutil/zoneinfo/__init__.py 2011-08-17 15:24:29.019214748 +0200 -@@ -15,6 +15,7 @@ __all__ = ["setcachesize", "gettz", "reb - - CACHE = [] - CACHESIZE = 10 -+USE_SYSTEM_ZONEINFO = True # XXX configure at build time - - class tzfile(tzfile): - def __reduce__(self): -@@ -29,7 +30,8 @@ def getzoneinfofile(): - return os.path.join(os.path.dirname(__file__), entry) - return None - --ZONEINFOFILE = getzoneinfofile() -+ZONEINFOFILE = getzoneinfofile() if USE_SYSTEM_ZONEINFO else None -+ZONEINFODIR = (os.getenv("TZDIR") or "/usr/share/zoneinfo").rstrip(os.sep) - - del getzoneinfofile - -@@ -39,22 +40,37 @@ def setcachesize(size): - del CACHE[size:] - - def gettz(name): -- tzinfo = None -- if ZONEINFOFILE: -- for cachedname, tzinfo in CACHE: -- if cachedname == name: -- break -+ for cachedname, tzinfo in CACHE: -+ if cachedname == name: -+ return tzinfo -+ -+ name_parts = name.lstrip('/').split('/') -+ for part in name_parts: -+ if part == os.path.pardir or os.path.sep in part: -+ raise ValueError('Bad path segment: %r' % part) -+ filename = os.path.join(ZONEINFODIR, *name_parts) -+ try: -+ zonefile = open(filename, "rb") -+ except: -+ tzinfo = None -+ else: -+ tzinfo = tzfile(zonefile) -+ zonefile.close() -+ -+ if tzinfo is None and ZONEINFOFILE: -+ tf = TarFile.open(ZONEINFOFILE) -+ try: -+ zonefile = tf.extractfile(name) -+ except KeyError: -+ tzinfo = None - else: -- tf = TarFile.open(ZONEINFOFILE) -- try: -- zonefile = tf.extractfile(name) -- except KeyError: -- tzinfo = None -- else: -- tzinfo = tzfile(zonefile) -- tf.close() -- CACHE.insert(0, (name, tzinfo)) -- del CACHE[CACHESIZE:] -+ tzinfo = tzfile(zonefile) -+ tf.close() -+ -+ if tzinfo is not None: -+ CACHE.insert(0, (name, tzinfo)) -+ del CACHE[CACHESIZE:] -+ - return tzinfo - - def rebuild(filename, tag=None, format="gz"): -diff -up python-dateutil-1.5/setup.py\~ python-dateutil-1.5/setup.py ---- python-dateutil-1.5/setup.py~ 2010-01-11 10:43:22.000000000 +0100 -+++ python-dateutil-1.5/setup.py 2011-08-17 15:38:13.206304651 +0200 -@@ -15,6 +15,16 @@ TOPDIR = os.path.dirname(__file__) or ". - VERSION = re.search('__version__ = "([^"]+)"', - open(TOPDIR + "/dateutil/__init__.py").read()).group(1) - -+# XXX We would like to bind this to something like -+# --system-zoneinfo=/path/to/zoneinfo. Any way of doing this short of -+# overriding build and install commands? -+if False: -+ extra_options = dict( -+ package_data={"": ["*.tar.gz"]}, -+ ) -+else: -+ extra_options = {} -+ - - setup(name="python-dateutil", - version = VERSION, -@@ -29,7 +39,7 @@ The dateutil module provides powerful ex - datetime module, available in Python 2.3+. - """, - packages = ["dateutil", "dateutil.zoneinfo"], -- package_data={"": ["*.tar.gz"]}, - include_package_data=True, - zip_safe=False, -+ **extra_options - ) diff --git a/python-dateutil15.spec b/python-dateutil15.spec deleted file mode 100644 index a51edfe..0000000 --- a/python-dateutil15.spec +++ /dev/null @@ -1,102 +0,0 @@ -%global srcname python-dateutil -Name: python-dateutil15 -Version: 1.5 -Release: 16%{?dist} -Summary: Powerful extensions to the standard datetime module - -Group: Development/Languages -License: Python -URL: http://labix.org/python-dateutil -Source0: http://labix.org/download/%{srcname}/%{srcname}-%{version}.tar.gz -Patch0: python-dateutil-1.5-system-zoneinfo.patch -BuildArch: noarch -BuildRequires: python2-devel,python2-setuptools - -%global _description\ -The dateutil module provides powerful extensions to the standard datetime\ -module available in Python 2.3+. This is backwards compatibility version\ -is parallel-installable with dateutil 2.x . - -%description %_description - -%package -n python2-dateutil15 -Summary: %summary -%{?python_provide:%python_provide python2-dateutil15} - -%description -n python2-dateutil15 %_description - -%prep -%setup -q -n %{srcname}-%{version} -%patch0 -p1 - -iconv --from=ISO-8859-1 --to=UTF-8 NEWS > NEWS.new -mv NEWS.new NEWS - -%build -%{__python} setup.py bdist_egg - -%install -mkdir -p %{buildroot}%{python_sitelib} -easy_install -m --prefix %{buildroot}%{_usr} dist/*.egg - -chmod -x %{buildroot}%{python_sitelib}/python_dateutil-%{version}-py%{python2_version}.egg/dateutil/*.py -chmod -x %{buildroot}%{python_sitelib}/python_dateutil-%{version}-py%{python2_version}.egg/dateutil/zoneinfo/__init__.py - -%files -n python2-dateutil15 -%doc example.py LICENSE NEWS README -%{python2_sitelib}/python_dateutil-%{version}-py%{python2_version}.egg -%exclude %{python_sitelib}/dateutil/zoneinfo/zoneinfo-2010g.tar.gz - - -%changelog -* Fri Jul 13 2018 Fedora Release Engineering - 1.5-16 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild - -* Mon Feb 12 2018 Iryna Shcherbina - 1.5-15 -- Update Python 2 dependency declarations to new packaging standards - (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) - -* Fri Feb 09 2018 Fedora Release Engineering - 1.5-14 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild - -* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek - 1.5-13 -- Python 2 binary package renamed to python2-dateutil15 - See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3 - -* Thu Jul 27 2017 Fedora Release Engineering - 1.5-12 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild - -* Sat Feb 11 2017 Fedora Release Engineering - 1.5-11 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild - -* Tue Jul 19 2016 Fedora Release Engineering - 1.5-10 -- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages - -* Thu Feb 04 2016 Fedora Release Engineering - 1.5-9 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild - -* Thu Jun 18 2015 Fedora Release Engineering - 1.5-8 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild - -* Mon Jan 19 2015 Pete Travis - 1.5-7 -- Go back to building the egg, remove conflict. - -* Sun Jan 18 2015 Pete Travis - 1.5-6 -- Build the full module, not just an egg. -- Conflict with the newer python-dateutil package. - -* Wed Jan 07 2015 Pete Travis - 1.5-5 -- Add patch to use system timezone data. - -* Sat Jun 07 2014 Fedora Release Engineering - 1.5-4 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild - -* Sun Aug 04 2013 Fedora Release Engineering - 1.5-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild - -* Thu Feb 14 2013 Fedora Release Engineering - 1.5-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild - -* Wed Jul 13 2011 Rahul Sundaram - 1.5-1 -- parallel installable newer version -- askbot indirectly requires this newer version via python-celery diff --git a/sources b/sources deleted file mode 100644 index fa72316..0000000 --- a/sources +++ /dev/null @@ -1 +0,0 @@ -35f3732db3f2cc4afdc68a8533b60a52 python-dateutil-1.5.tar.gz