[python-ironicclient] Initial upload into master

Angus Thomas athomas at fedoraproject.org
Mon Apr 7 15:33:40 UTC 2014


commit 3328d10280f31f140e2b9d4e165cf1220e3229ee
Author: Angus Thomas <athomas at redhat.com>
Date:   Mon Apr 7 16:32:57 2014 +0100

    Initial upload into master

 .gitignore                                         |    1 +
 ...t-Remove-runtime-dependency-on-python-pbr.patch |   25 ++++++
 ...cclient-Prevent-pbr-dependencies-handling.patch |   56 ++++++++++++++
 python-ironicclient.spec                           |   79 ++++++++++++++++++++
 sources                                            |    1 +
 5 files changed, 162 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..5831180 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/python-ironicclient-0.1.2.tar.gz
diff --git a/0001-ironicclient-Remove-runtime-dependency-on-python-pbr.patch b/0001-ironicclient-Remove-runtime-dependency-on-python-pbr.patch
new file mode 100644
index 0000000..3122843
--- /dev/null
+++ b/0001-ironicclient-Remove-runtime-dependency-on-python-pbr.patch
@@ -0,0 +1,25 @@
+From 628694a030ea37bb80b2e31dd2d0494c3f0c1989 Mon Sep 17 00:00:00 2001
+From: Angus Thomas <athomas at redhat.com>
+Date: Thu, 27 Feb 2014 16:49:05 +0000
+Subject: [PATCH] Remove runtime dependency on python pbr
+
+---
+ ironicclient/__init__.py | 5 +----
+ 1 file changed, 1 insertion(+), 4 deletions(-)
+
+diff --git a/ironicclient/__init__.py b/ironicclient/__init__.py
+index 4aa915f..2c4fe3d 100644
+--- a/ironicclient/__init__.py
++++ b/ironicclient/__init__.py
+@@ -13,7 +13,4 @@
+ # License for the specific language governing permissions and limitations
+ # under the License.
+ 
+-import pbr.version
+-
+-
+-__version__ = pbr.version.VersionInfo('python-ironicclient').version_string()
++__version__ = "REDHATIRONICCLIENTVERSION"
+-- 
+1.8.5.3
+
diff --git a/0002-ironicclient-Prevent-pbr-dependencies-handling.patch b/0002-ironicclient-Prevent-pbr-dependencies-handling.patch
new file mode 100644
index 0000000..5ecc8eb
--- /dev/null
+++ b/0002-ironicclient-Prevent-pbr-dependencies-handling.patch
@@ -0,0 +1,56 @@
+From c65348116e57885e6e90660f2594fa4f3c9fcdd3 Mon Sep 17 00:00:00 2001
+From: Angus Thomas <athomas at redhat.com>
+Date: Thu, 27 Feb 2014 17:13:47 +0000
+Subject: [PATCH] -Prevent pbr handling dependencies
+
+---
+ requirements.txt      |  8 --------
+ setup.py              |  1 -
+ test-requirements.txt | 10 ----------
+ 3 files changed, 19 deletions(-)
+ delete mode 100644 requirements.txt
+ delete mode 100644 test-requirements.txt
+
+diff --git a/requirements.txt b/requirements.txt
+deleted file mode 100644
+index 066dfd1..0000000
+--- a/requirements.txt
++++ /dev/null
+@@ -1,8 +0,0 @@
+-pbr>=0.5.21,<1.0
+-anyjson>=0.3.3
+-argparse
+-httplib2
+-lxml>=2.3
+-PrettyTable>=0.7,<0.8
+-python-keystoneclient>=0.4.2
+-six>=1.4.1
+diff --git a/setup.py b/setup.py
+index 70c2b3f..afab729 100644
+--- a/setup.py
++++ b/setup.py
+@@ -18,5 +18,4 @@
+ import setuptools
+ 
+ setuptools.setup(
+-    setup_requires=['pbr'],
+     pbr=True)
+diff --git a/test-requirements.txt b/test-requirements.txt
+deleted file mode 100644
+index 830bbee..0000000
+--- a/test-requirements.txt
++++ /dev/null
+@@ -1,10 +0,0 @@
+-hacking>=0.8.0,<0.9
+-coverage>=3.6
+-discover
+-fixtures>=0.3.14
+-mock>=1.0
+-Babel>=1.3
+-python-subunit
+-sphinx>=1.1.2,<1.2
+-testrepository>=0.0.17
+-testtools>=0.9.32
+-- 
+1.8.5.3
+
diff --git a/python-ironicclient.spec b/python-ironicclient.spec
new file mode 100644
index 0000000..31cab40
--- /dev/null
+++ b/python-ironicclient.spec
@@ -0,0 +1,79 @@
+%if 0%{?rhel} && 0%{?rhel} <= 6
+%{!?__python2: %global __python2 /usr/bin/python2}
+%{!?python2_sitelib: %global python2_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
+%{!?python2_sitearch: %global python2_sitearch %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
+%endif
+
+Name:		python-ironicclient
+Version:	0.1.2
+Release:	5%{?dist}
+Summary:	Python client for Ironic
+
+License:	ASL 2.0
+URL:		https://pypi.python.org/pypi/python-ironicclient
+Source0:	http://tarballs.openstack.org/python-ironicclient/python-ironicclient-0.1.2.tar.gz
+
+Patch0001:	0001-ironicclient-Remove-runtime-dependency-on-python-pbr.patch
+Patch0002:	0002-ironicclient-Prevent-pbr-dependencies-handling.patch
+
+BuildArch:	noarch
+
+BuildRequires:	python2-devel
+BuildRequires:	python-pbr
+BuildRequires:	python-setuptools
+
+Requires:	python-prettytable
+Requires:	python-keystoneclient
+Requires:	python-six
+Requires:	python-stevedore
+Requires:	python-anyjson
+Requires:	python-httplib2
+Requires:	python-lxml
+
+%description
+A python and command line client library for Ironic.
+
+%prep
+%setup -q -n %{name}-%{version}
+
+%patch0001 -p1
+%patch0002 -p1
+
+# We provide version like this in order to remove runtime dep on pbr.
+sed -i s/REDHATIRONICCLIENTVERSION/%{version}/ ironicclient/__init__.py
+
+%build
+%{__python2} setup.py build
+
+%install
+%{__python2} setup.py install --skip-build --root %{buildroot}
+
+
+%files
+%doc LICENSE README.rst
+%{_bindir}/*
+%{python2_sitelib}/ironicclient*
+%{python2_sitelib}/python_ironicclient*
+
+
+%changelog
+
+* Wed Mar 26 2014 Angus Thomas <athomas at redhat.com> - 0.1.2-5
+- Removed instance of macro in Changelog
+- Consistent use of tabs in SPEC file
+
+* Thu Feb 27 2014 Angus Thomas <athomas at redhat.com> - 0.1.2-4
+- Switched to patches made with git
+- Write REDHATIRONICCLIENTVERSION correctly
+- Reordered files section
+
+* Thu Feb 27 2014 Angus Thomas <athomas at redhat.com> - 0.1.2-3
+- Added macro fix to support building on EL6
+
+* Wed Feb 26 2014 Angus Thomas <athomas at redhat.com> - 0.1.2-2
+- Added patches to remove pbr dependency
+- Updated the source URL
+- Removed deletion of python_ironicclient.egg-info
+
+* Tue Feb 25 2014 Angus Thomas <athomas at redhat.com> - 0.1.2-1
+- Initial package.
diff --git a/sources b/sources
index e69de29..34804a3 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+9dd7ef466a7be893d5851e0137ef4145  python-ironicclient-0.1.2.tar.gz


More information about the scm-commits mailing list