1
0
forked from pool/python-pyodbc

Accepting request 1063824 from devel:languages:python

- 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

OBS-URL: https://build.opensuse.org/request/show/1063824
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyodbc?expand=0&rev=10
This commit is contained in:
Dominique Leuenberger 2023-02-08 16:20:48 +00:00 committed by Git OBS Bridge
commit 262266c577
5 changed files with 47 additions and 7 deletions

View File

@ -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',

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:852b5deeeb3366af8b4408efed993501708be45d221881bce60c9aac54be726a
size 266286

3
pyodbc-4.0.35.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c9d5ef7fbcc0028735416d28b7be38d75b9a18df1780c79692fa8edc85e92a26
size 285827

View File

@ -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>

View File

@ -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