diff --git a/fix_install_location_of_pyodbc.pyi.patch b/fix_install_location_of_pyodbc.pyi.patch new file mode 100644 index 0000000..024486a --- /dev/null +++ b/fix_install_location_of_pyodbc.pyi.patch @@ -0,0 +1,17 @@ +Index: pyodbc-4.0.35/setup.py +=================================================================== +--- pyodbc-4.0.35.orig/setup.py ++++ pyodbc-4.0.35/setup.py +@@ -94,9 +94,9 @@ def main(): + + 'ext_modules': [Extension('pyodbc', sorted(files), **settings)], + +- 'data_files': [ +- ('', ['src/pyodbc.pyi']) # places pyodbc.pyi alongside pyodbc.py in site-packages +- ], ++ 'packages': [''], ++ 'package_dir': {'': 'src'}, ++ 'package_data': {'': ['pyodbc.pyi']}, # places pyodbc.pyi alongside pyodbc.{platform}.{pyd|so} in site-packages + + 'license': 'MIT', + diff --git a/pyodbc-4.0.30.tar.gz b/pyodbc-4.0.30.tar.gz deleted file mode 100644 index b860d70..0000000 --- a/pyodbc-4.0.30.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:852b5deeeb3366af8b4408efed993501708be45d221881bce60c9aac54be726a -size 266286 diff --git a/pyodbc-4.0.35.tar.gz b/pyodbc-4.0.35.tar.gz new file mode 100644 index 0000000..43545b5 --- /dev/null +++ b/pyodbc-4.0.35.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c9d5ef7fbcc0028735416d28b7be38d75b9a18df1780c79692fa8edc85e92a26 +size 285827 diff --git a/python-pyodbc.changes b/python-pyodbc.changes index a7a0cec..d42c571 100644 --- a/python-pyodbc.changes +++ b/python-pyodbc.changes @@ -1,3 +1,21 @@ +------------------------------------------------------------------- +Tue Feb 7 20:20:18 UTC 2023 - Dirk Hartmann <2monex@gmx.net> + +- Update to version 4.0.35 + * This release provides Python 3.11 wheels, plus some other wheel fixes. + * There is also an import memory fix when using fast_execute_many. + +- Changes from version 4.0.34 + * Mac wheels are finally here. Thanks to all that worked on the code for that. Please let us + know if there are any problems with the wheels on PyPI + * Python 3.10 wheels are also available + * Fix for DSNs with non-ASCII characters. + * Memory leak fix with Decimal parameters. + * PostgreSQL dates of -Infinity/+Infinity changed to year 1 and 9999 instead of raising an error. + +- Remove upstreamed patch: + * fix_install_location_of_pyodbc.pyi.patch + ------------------------------------------------------------------- Wed Jan 20 20:12:59 UTC 2021 - Dirk Hartmann <2monex@gmx.net> diff --git a/python-pyodbc.spec b/python-pyodbc.spec index 34f46d9..31dc1dc 100644 --- a/python-pyodbc.spec +++ b/python-pyodbc.spec @@ -1,7 +1,7 @@ # # spec file for package python-pyodbc # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,15 +16,16 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-pyodbc -Version: 4.0.30 +Version: 4.0.35 Release: 0 Summary: Python ODBC API License: MIT Group: Development/Languages/Python URL: https://github.com/mkleehammer/pyodbc Source: https://files.pythonhosted.org/packages/source/p/pyodbc/pyodbc-%{version}.tar.gz +# PATCH-FIX-INSTALL-LOCATION-UPSTREAM fix_install_location_of_pyodbc.pyi.patch -- based on PR 1146 +Patch1: fix_install_location_of_pyodbc.pyi.patch BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} BuildRequires: gcc-c++ @@ -43,8 +44,10 @@ even more. %prep %setup -q -n pyodbc-%{version} +%patch1 -p1 %build +export CFLAGS="%{optflags}" %python_build %install @@ -57,7 +60,9 @@ $python tests${TESTDIRSUFFIX::1}/sqlitetests.py -v "Driver=SQLITE3;Database=sqli } %files %{python_files} -%{python_sitearch}/* +%{python_sitearch}/pyodbc*-info +%{python_sitearch}/pyodbc.pyi +%{python_sitearch}/pyodbc*.so %license LICENSE.txt %doc README.md