[vertica-python] Initial import (#1080669)

Jakub Jedelsky kubo at fedoraproject.org
Mon Mar 31 13:15:03 UTC 2014


commit 781661948a7ca2ac24bd32df4a0231d7542d01b5
Author: Jakub Jedelsky <jakub.jedelsky at gooddata.com>
Date:   Mon Mar 31 15:13:54 2014 +0200

    Initial import (#1080669)

 .gitignore                            |    1 +
 sources                               |    1 +
 vertica-python-0.2.0-dateutil15.patch |   16 +++++++
 vertica-python-0.2.0-version.patch    |   13 ++++++
 vertica-python.spec                   |   74 +++++++++++++++++++++++++++++++++
 5 files changed, 105 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..6e0eccb 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/0.2.0.tar.gz
diff --git a/sources b/sources
index e69de29..94d1f5b 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+da4f73d2d63e6253491977e80726ee85  0.2.0.tar.gz
diff --git a/vertica-python-0.2.0-dateutil15.patch b/vertica-python-0.2.0-dateutil15.patch
new file mode 100644
index 0000000..e40dff9
--- /dev/null
+++ b/vertica-python-0.2.0-dateutil15.patch
@@ -0,0 +1,16 @@
+diff --git a/vertica_python/vertica/column.py b/vertica_python/vertica/column.py
+index 75d87a2..9eeef08 100644
+--- a/vertica_python/vertica/column.py
++++ b/vertica_python/vertica/column.py
+@@ -5,6 +5,11 @@ from collections import namedtuple
+ from decimal import Decimal
+ from datetime import date
+ from datetime import datetime
++from pkg_resources import require,VersionConflict
++try:
++	require("python_dateutil>=1.5")
++except VersionConflict:
++	pass
+ from dateutil import parser
+ 
+ import pytz
diff --git a/vertica-python-0.2.0-version.patch b/vertica-python-0.2.0-version.patch
new file mode 100644
index 0000000..001ab62
--- /dev/null
+++ b/vertica-python-0.2.0-version.patch
@@ -0,0 +1,13 @@
+diff --git a/vertica_python/__init__.py b/vertica_python/__init__.py
+index 487f376..ea24bf3 100644
+--- a/vertica_python/__init__.py
++++ b/vertica_python/__init__.py
+@@ -24,7 +24,7 @@ from vertica_python.errors import TimedOutError, ConnectionError, SSLNotSupporte
+ # Main module for this library.
+ 
+ # The version number of this library.
+-version_info = (0, 1, 9)
++version_info = (0, 2, 0)
+ __version__ = '.'.join(map(str, version_info))
+ 
+ __author__ = 'Uber Technologies, Inc'
diff --git a/vertica-python.spec b/vertica-python.spec
new file mode 100644
index 0000000..2f63cf0
--- /dev/null
+++ b/vertica-python.spec
@@ -0,0 +1,74 @@
+%{!?__python2: %global __python2 /usr/bin/python2}
+%{!?python2_sitelib: %global python2_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
+
+Name:           vertica-python
+Version:        0.2.0
+Release:        4%{?dist}
+Summary:        A native Python adapter for the Vertica database
+
+Group:          Development/Languages
+License:        MIT
+URL:            https://github.com/uber/vertica-python
+Source0:        https://github.com/uber/vertica-python/archive/%{version}.tar.gz
+Patch0:         vertica-python-0.2.0-version.patch
+# EPEL 6 patch
+Patch1:         vertica-python-0.2.0-dateutil15.patch
+
+BuildArch:      noarch
+BuildRequires:  python2-devel
+BuildRequires:  python-setuptools
+BuildRequires:  python-pip
+
+%if 0%{?rhel} <= 6
+Requires:       python-dateutil15
+Requires:       python-setuptools
+%else
+Requires:       python-dateutil >= 1.5
+%endif
+
+Requires:       pytz
+Requires:       python-psycopg2
+
+
+%description
+vertica-python is a native Python adapter for the Vertica
+(http://www.vertica.com) database.
+
+
+%prep
+%setup -q -n vertica-python-%{version}
+%patch0 -p1
+
+%if 0%{?rhel} <= 6
+%patch1 -p1
+%endif
+
+
+%build
+%{__python2} setup.py build
+
+
+%install
+%{__python2} setup.py install --skip-build --root $RPM_BUILD_ROOT
+
+ 
+%files
+%doc README.md LICENSE
+%{python2_sitelib}/*.egg-info
+%dir %{python2_sitelib}/vertica_python
+%{python2_sitelib}/vertica_python/*
+
+
+%changelog
+* Fri Mar 28 2014 Jakub Jedelsky <jakub.jedelsky at gmail.com> - 0.2.0-4
+- remove buildrood tag
+- edit dateutil patch for el6
+
+* Wed Mar 26 2014 Jakub Jedelsky <jakub.jedelsky at gmail.com> - 0.2.0-3
+- package is not ready for python3 
+
+* Wed Mar 26 2014 Jakub Jedelsky <jakub.jedelsky at gmail.com> - 0.2.0-2
+- python-setuptools is required only on rhel<=6
+
+* Mon Mar 24 2014 Jakub Jedelsky <jakub.jedelsky at gmail.com> - 0.2.0-1
+- Initial package


More information about the scm-commits mailing list