Compare commits
7 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c23367d477 | ||
|
|
0b63427b1e | ||
|
|
f3a7f05c89 | ||
|
|
3e962d4a82 | ||
|
|
ec3cc09b2e | ||
|
|
a0347fe389 | ||
|
|
7b5d38b681 |
6 changed files with 143 additions and 1 deletions
11
.gitignore
vendored
Normal file
11
.gitignore
vendored
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
/0.2.0.tar.gz
|
||||||
|
/0.2.1.tar.gz
|
||||||
|
/0.2.3.tar.gz
|
||||||
|
/v0.3.0.tar.gz
|
||||||
|
/0.3.4.tar.gz
|
||||||
|
/v0.3.5.tar.gz
|
||||||
|
/0.3.6.tar.gz
|
||||||
|
/0.4.5.tar.gz
|
||||||
|
/0.4.6.tar.gz
|
||||||
|
/0.5.0.tar.gz
|
||||||
|
/0.5.1.tar.gz
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
Orphaned for 6+ weeks
|
|
||||||
1
sources
Normal file
1
sources
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
fc335fbe597f2026b6d9255e8cf8f1bf 0.5.1.tar.gz
|
||||||
15
vertica-python-0.2.0-dateutil15.patch
Normal file
15
vertica-python-0.2.0-dateutil15.patch
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
diff --git a/vertica_python/vertica/column.py b/vertica_python/vertica/column.py
|
||||||
|
index cc0bb27..3266d74 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
|
||||||
|
from vertica_python import errors
|
||||||
12
vertica-python-0.5.0-crypt_windows.patch
Normal file
12
vertica-python-0.5.0-crypt_windows.patch
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
diff --git a/vertica_python/vertica/messages/frontend_messages/crypt_windows.py b/vertica_python/vertica/messages/frontend_messages/crypt_windows.py
|
||||||
|
index 3a8276d..faa558f 100755
|
||||||
|
--- a/vertica_python/vertica/messages/frontend_messages/crypt_windows.py
|
||||||
|
+++ b/vertica_python/vertica/messages/frontend_messages/crypt_windows.py
|
||||||
|
@@ -1,5 +1,3 @@
|
||||||
|
-#!/usr/bin/env python
|
||||||
|
-
|
||||||
|
# Initial permutation
|
||||||
|
IP = (
|
||||||
|
58, 50, 42, 34, 26, 18, 10, 2,
|
||||||
|
--
|
||||||
|
2.4.3
|
||||||
104
vertica-python.spec
Normal file
104
vertica-python.spec
Normal file
|
|
@ -0,0 +1,104 @@
|
||||||
|
%{!?__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.5.1
|
||||||
|
Release: 1%{?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
|
||||||
|
# EPEL 6 patch
|
||||||
|
Patch0: vertica-python-0.2.0-dateutil15.patch
|
||||||
|
Patch1: vertica-python-0.5.0-crypt_windows.patch
|
||||||
|
|
||||||
|
BuildArch: noarch
|
||||||
|
BuildRequires: python2-devel
|
||||||
|
BuildRequires: python-setuptools
|
||||||
|
|
||||||
|
%if 0%{?rhel} && 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}
|
||||||
|
|
||||||
|
%if 0%{?rhel} && 0%{?rhel} <= 6
|
||||||
|
%patch0 -p1
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%patch1 -p1
|
||||||
|
|
||||||
|
|
||||||
|
%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
|
||||||
|
* Wed Sep 23 2015 Jakub Jedelsky <jakub.jedelsky@gmail.com> - 0.5.1-1
|
||||||
|
- update to version 0.5.1
|
||||||
|
|
||||||
|
* Fri Jul 03 2015 Jakub Jedelsky <jakub.jedelsky@gmail.com> - 0.5.0-1
|
||||||
|
- update to version 0.5.0
|
||||||
|
|
||||||
|
* Mon Jun 22 2015 Jakub Jedelsky <jakub.jedelsky@gmail.com> - 0.4.6-1
|
||||||
|
- update to version 0.4.6
|
||||||
|
|
||||||
|
* Tue Jun 16 2015 Jakub Jedelsky <jakub.jedelsky@gamil.com> - 0.4.5-1
|
||||||
|
- update to version 0.4.5
|
||||||
|
|
||||||
|
* Wed Apr 15 2015 Jakub Jedelsky <jakub.jedelsky@gmail.com> - 0.3.6-1
|
||||||
|
- update to version 0.3.6
|
||||||
|
|
||||||
|
* Wed Apr 08 2015 Jakub Jedelsky <jakub.jedelsky@gmail.com> - 0.3.5-1
|
||||||
|
- update to version 0.3.5
|
||||||
|
|
||||||
|
* Wed Jan 21 2015 Jakub Jedelsky <jakub.jedelsky@gmail.com> - 0.3.4-1
|
||||||
|
- update to version 0.3.4
|
||||||
|
|
||||||
|
* Wed Oct 15 2014 Jakub Jedelsky <jakub.jedelsky@gooddata.com> - 0.3.0-1
|
||||||
|
- update to version 0.3.0
|
||||||
|
|
||||||
|
* Fri Jun 13 2014 Jakub Jedelsky <jakub.jedelsky@gmail.com> - 0.2.3-1
|
||||||
|
- update to new version
|
||||||
|
|
||||||
|
* Thu Apr 24 2014 Jakub Jedelsky <jakub.jedelsky@gmail.com> - 0.2.1-1
|
||||||
|
- new version update
|
||||||
|
|
||||||
|
* Fri Mar 28 2014 Jakub Jedelsky <jakub.jedelsky@gmail.com> - 0.2.0-4
|
||||||
|
- remove buildrood tag
|
||||||
|
- edit dateutil patch for el6
|
||||||
|
|
||||||
|
* Wed Mar 26 2014 Jakub Jedelsky <jakub.jedelsky@gmail.com> - 0.2.0-3
|
||||||
|
- package is not ready for python3
|
||||||
|
|
||||||
|
* Wed Mar 26 2014 Jakub Jedelsky <jakub.jedelsky@gmail.com> - 0.2.0-2
|
||||||
|
- python-setuptools is required only on rhel<=6
|
||||||
|
|
||||||
|
* Mon Mar 24 2014 Jakub Jedelsky <jakub.jedelsky@gmail.com> - 0.2.0-1
|
||||||
|
- Initial package
|
||||||
Loading…
Add table
Add a link
Reference in a new issue