[packages/python-sqlalchemy] Up to 1.4.40
arekm
arekm at pld-linux.org
Wed Dec 21 14:15:13 CET 2022
commit 3168f47797f489c3bc62f51a9c356c00b2fbd1cf
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Wed Dec 21 14:15:00 2022 +0100
Up to 1.4.40
python-sqlalchemy-tests.patch | 30 +++++-------------------------
python-sqlalchemy.spec | 13 ++++++++-----
2 files changed, 13 insertions(+), 30 deletions(-)
---
diff --git a/python-sqlalchemy.spec b/python-sqlalchemy.spec
index 6b6bc78..b54e684 100644
--- a/python-sqlalchemy.spec
+++ b/python-sqlalchemy.spec
@@ -8,13 +8,13 @@
Summary: Database Abstraction Library for Python 2
Summary(pl.UTF-8): Biblioteka abstrakcji baz danych dla Pythona 2
Name: python-%{module}
-Version: 1.3.23
-Release: 7
+Version: 1.4.40
+Release: 1
License: MIT
Group: Libraries/Python
#Source0Download: https://pypi.org/simple/sqlalchemy/
Source0: https://files.pythonhosted.org/packages/source/S/SQLAlchemy/SQLAlchemy-%{version}.tar.gz
-# Source0-md5: 179d25a8fea451f06539c12bb0a00081
+# Source0-md5: 9474e4fd6fce28e474ee55629a17be45
Patch0: %{name}-tests.patch
URL: https://www.sqlalchemy.org/
BuildRequires: rpm-pythonprov
@@ -159,14 +159,15 @@ rm -rf $RPM_BUILD_ROOT
%{py_sitedir}/sqlalchemy/engine
%{py_sitedir}/sqlalchemy/event
%{py_sitedir}/sqlalchemy/ext
+%{py_sitedir}/sqlalchemy/future
%{py_sitedir}/sqlalchemy/orm
%{py_sitedir}/sqlalchemy/pool
%{py_sitedir}/sqlalchemy/sql
%{py_sitedir}/sqlalchemy/testing
%{py_sitedir}/sqlalchemy/util
+%attr(755,root,root) %{py_sitedir}/sqlalchemy/cimmutabledict.so
%attr(755,root,root) %{py_sitedir}/sqlalchemy/cprocessors.so
%attr(755,root,root) %{py_sitedir}/sqlalchemy/cresultproxy.so
-%attr(755,root,root) %{py_sitedir}/sqlalchemy/cutils.so
%{py_sitedir}/sqlalchemy/*.py[co]
%{py_sitedir}/SQLAlchemy-%{version}-py*.egg-info
@@ -181,14 +182,16 @@ rm -rf $RPM_BUILD_ROOT
%{py3_sitedir}/sqlalchemy/engine
%{py3_sitedir}/sqlalchemy/event
%{py3_sitedir}/sqlalchemy/ext
+%{py3_sitedir}/sqlalchemy/future
%{py3_sitedir}/sqlalchemy/orm
%{py3_sitedir}/sqlalchemy/pool
%{py3_sitedir}/sqlalchemy/sql
%{py3_sitedir}/sqlalchemy/testing
%{py3_sitedir}/sqlalchemy/util
+%attr(755,root,root) %{py3_sitedir}/sqlalchemy/cimmutabledict.cpython-*.so
%attr(755,root,root) %{py3_sitedir}/sqlalchemy/cprocessors.cpython-*.so
%attr(755,root,root) %{py3_sitedir}/sqlalchemy/cresultproxy.cpython-*.so
-%attr(755,root,root) %{py3_sitedir}/sqlalchemy/cutils.cpython-*.so
+#%attr(755,root,root) %{py3_sitedir}/sqlalchemy/cutils.cpython-*.so
%{py3_sitedir}/sqlalchemy/*.py
%{py3_sitedir}/sqlalchemy/__pycache__
%{py3_sitedir}/SQLAlchemy-%{version}-py*.egg-info
diff --git a/python-sqlalchemy-tests.patch b/python-sqlalchemy-tests.patch
index 5e4a52b..c253392 100644
--- a/python-sqlalchemy-tests.patch
+++ b/python-sqlalchemy-tests.patch
@@ -1,27 +1,6 @@
-diff -urNp -x '*.orig' SQLAlchemy-1.3.23.org/setup.py SQLAlchemy-1.3.23/setup.py
---- SQLAlchemy-1.3.23.org/setup.py 2021-02-01 21:52:02.000000000 +0100
-+++ SQLAlchemy-1.3.23/setup.py 2021-03-07 23:28:59.044650527 +0100
-@@ -89,7 +89,7 @@ class PyTest(TestCommand):
- # not working at the time of this comment.
- user_options = [("pytest-args=", "a", "Arguments to pass to py.test")]
-
-- default_options = ["-n", "4", "-q", "--nomemory"]
-+ default_options = ["-q", "--nomemory"]
-
- def initialize_options(self):
- TestCommand.initialize_options(self)
-@@ -159,7 +159,7 @@ def run_setup(with_cext):
- cmdclass=cmdclass,
- tests_require=[
- "pytest>=2.5.2,!=3.9.1,!=3.9.2",
-- "mock",
-+ "mock;python_version<'3.3'",
- "pytest-xdist",
- ],
- long_description=readme,
---- SQLAlchemy-1.3.23/test/dialect/mssql/test_engine.py~ 2021-02-01 21:52:02.000000000 +0100
-+++ SQLAlchemy-1.3.23/test/dialect/mssql/test_engine.py 2021-11-28 20:02:55.581556369 +0100
-@@ -158,26 +158,6 @@
+--- SQLAlchemy-1.3.24/test/dialect/mssql/test_engine.py~ 2021-03-31 00:58:18.000000000 +0200
++++ SQLAlchemy-1.3.24/test/dialect/mssql/test_engine.py 2022-03-31 08:03:00.006533320 +0200
+@@ -158,26 +158,6 @@ class ParseConnectTest(fixtures.TestBase
True,
)
@@ -30,7 +9,7 @@ diff -urNp -x '*.orig' SQLAlchemy-1.3.23.org/setup.py SQLAlchemy-1.3.23/setup.py
- dialect = pyodbc.dialect()
- u = url.make_url(
- "mssql+pyodbc://@server_name/db_name?"
-- "driver=ODBC+Driver+17+for+SQL+Server;"
+- "driver=ODBC+Driver+17+for+SQL+Server&"
- "authentication=ActiveDirectoryIntegrated"
- )
- connection = dialect.create_connect_args(u)
@@ -48,3 +27,4 @@ diff -urNp -x '*.orig' SQLAlchemy-1.3.23.org/setup.py SQLAlchemy-1.3.23/setup.py
def test_pyodbc_odbc_connect(self):
dialect = pyodbc.dialect()
u = url.make_url(
+
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-sqlalchemy.git/commitdiff/3168f47797f489c3bc62f51a9c356c00b2fbd1cf
More information about the pld-cvs-commit
mailing list