Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5023 from gudrutis/IB/CMSSW_11_0_X/gcc700
updated sqlalchemy to version 1.3.4
- Loading branch information
Showing
8 changed files
with
54 additions
and
218 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Patch0: py2-sqlalchemy-1.3.4-add-frontier-dialect | ||
Patch1: py2-sqlalchemy-1.3.4-fix-sqlite-dialect-timestamp | ||
|
||
%define PipPreBuild tar -xzf SQLAlchemy-%{realversion}.tar.gz && pushd SQLAlchemy-%{realversion} && for pch in %{patches} ; do patch -p1 < ${pch} ; done && popd && rm -f SQLAlchemy-%{realversion}.tar.gz && tar czf SQLAlchemy-%{realversion}.tar.gz SQLAlchemy-%{realversion} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -201,3 +201,4 @@ wrapt==1.11.1 | |
xgboost==0.82 | ||
xrootdpyfs==0.1.5 | ||
hepdata-lib==0.2.7 | ||
sqlalchemy==1.3.4 |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
diff --git a/lib/sqlalchemy/processors.py b/lib/sqlalchemy/processors.py | ||
index 62fc6e9..38a63a4 100644 | ||
--- a/lib/sqlalchemy/processors.py | ||
+++ b/lib/sqlalchemy/processors.py | ||
@@ -30,12 +30,15 @@ def str_to_datetime_processor_factory(regexp, type_): | ||
if value is None: | ||
return None | ||
else: | ||
+ # in case we got an oracle timestamp: | ||
+ if type(value) == type(1): | ||
+ return datetime.datetime.fromtimestamp( float(value)/1000000000. ).strftime("%Y-%m-%d %H:%M:%S.%f") | ||
try: | ||
m = rmatch(value) | ||
except TypeError: | ||
raise ValueError( | ||
"Couldn't parse %s string '%r' " | ||
- "- value is not a string." % (type_.__name__, value) | ||
+ "- value is not a string but %s." % (type_.__name__, value, type(value)) | ||
) | ||
if m is None: | ||
raise ValueError( | ||
diff --git a/setup.py b/setup.py | ||
index aaba737..b30d7b3 100644 | ||
--- a/setup.py | ||
+++ b/setup.py | ||
@@ -21,10 +21,10 @@ if sys.version_info < (2, 7): | ||
cpython = platform.python_implementation() == "CPython" | ||
|
||
ext_modules = [ | ||
- Extension( | ||
- "sqlalchemy.cprocessors", | ||
- sources=["lib/sqlalchemy/cextension/processors.c"], | ||
- ), | ||
+# Extension( | ||
+# "sqlalchemy.cprocessors", | ||
+# sources=["lib/sqlalchemy/cextension/processors.c"], | ||
+# ), | ||
Extension( | ||
"sqlalchemy.cresultproxy", | ||
sources=["lib/sqlalchemy/cextension/resultproxy.c"], |
This file was deleted.
Oops, something went wrong.