[packages/python-github2] - cleanup dateutil deps, 2.2 now supports all flavours - rel 3

baggins baggins at pld-linux.org
Tue Oct 21 20:46:38 CEST 2014


commit c68665b324cf81fb4787babdd7816ec8ed210634
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Tue Oct 21 20:46:09 2014 +0200

    - cleanup dateutil deps, 2.2 now supports all flavours
    - rel 3

 dateutil.patch      | 25 +++++++++++++++++++++++++
 python-github2.spec |  7 +++----
 2 files changed, 28 insertions(+), 4 deletions(-)
---
diff --git a/python-github2.spec b/python-github2.spec
index ba0855a..b018098 100644
--- a/python-github2.spec
+++ b/python-github2.spec
@@ -2,11 +2,12 @@
 Summary:	Github API v2 library for Python
 Name:		python-%{module}
 Version:	0.6.2
-Release:	2
+Release:	3
 License:	New BSD License
 Group:		Development/Languages/Python
 Source0:	http://pypi.python.org/packages/source/g/github2/%{module}-%{version}.tar.gz
 # Source0-md5:	1341655d6ca823c1e0cb7eacec68f99f
+Patch0:		dateutil.patch
 URL:		http://github.com/ask/python-github2
 BuildRequires:	python-distribute
 BuildRequires:	rpm-pythonprov
@@ -23,9 +24,7 @@ features available in version 2 of the Github API.
 
 %prep
 %setup -q -n %{module}-%{version}
-
-# fix something that doesn't make sense (there is no dateutil-2.1)
-%{__sed} -i -e 's/, >= 2.1//' github2.egg-info/requires.txt setup.py
+%patch0 -p1
 
 %build
 %{__python} setup.py build
diff --git a/dateutil.patch b/dateutil.patch
new file mode 100644
index 0000000..8e55dac
--- /dev/null
+++ b/dateutil.patch
@@ -0,0 +1,25 @@
+--- github2-0.6.2/setup.py~	2012-05-23 07:11:05.000000000 +0200
++++ github2-0.6.2/setup.py	2014-10-21 20:44:07.711038630 +0200
+@@ -27,14 +27,7 @@
+ elif sys.version_info[:2] < (2, 6):
+     install_requires.append('simplejson >= 2.0.9')
+ 
+-# dateutil supports python 2.x in dateutil-1, python 3.x in dateutil-2.0 and
+-# python 2.6+ in dateutil-2.1.  Exciting…
+-if sys.version_info[:2] <= (2, 5):
+-    install_requires.append('python-dateutil < 2.0')
+-elif sys.version_info < (3, ):
+-    install_requires.append('python-dateutil < 2.0, >= 2.1')
+-else:
+-    install_requires.append('python-dateutil > 2.0')
++install_requires.append('python-dateutil >= 2.2')
+ 
+ long_description = (codecs.open('README.rst', "r", "utf-8").read()
+     + "\n" + codecs.open('NEWS.rst', "r", "utf-8").read())
+--- github2-0.6.2/github2.egg-info/requires.txt~	2014-10-21 20:40:49.000000000 +0200
++++ github2-0.6.2/github2.egg-info/requires.txt	2014-10-21 20:44:39.267704182 +0200
+@@ -1,2 +1,2 @@
+ httplib2 >= 0.7.0
+-python-dateutil < 2.0, >= 2.1
+\ No newline at end of file
++python-dateutil >= 2.2
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-github2.git/commitdiff/c68665b324cf81fb4787babdd7816ec8ed210634



More information about the pld-cvs-commit mailing list