1
0
forked from pool/python-pyodbc

Accepting request 1079995 from devel:languages:python

- update to 4.0.39:
  * Version 4.0.38 had a serious bug in Row.__repr__ which could
    cause crashes (#1196 ).
  * Version 5.0 is on its way and will drop support for Python 2.
    This release is a (hopefully final) bug fix release for
    the 4.x line.
  * added typing for Connection, Cursor, and connect parameters.
  * corrected the install location of the pyi file.
  * fixed Unicode errors in repr(row)
  * fixed more typing related issues by removing TypeAlias
  * arturxedex128 opened a security advisory for a buffer
    overflow if selecting a decimal more
  * than 100 digits long.  Fixed by Michael Kleehammer.
- drop fix_install_location_of_pyodbc.pyi.patch (upstream)

OBS-URL: https://build.opensuse.org/request/show/1079995
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyodbc?expand=0&rev=11
This commit is contained in:
Dominique Leuenberger 2023-04-20 14:49:01 +00:00 committed by Git OBS Bridge
commit 682fee31cb
5 changed files with 22 additions and 24 deletions

View File

@ -1,17 +0,0 @@
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:c9d5ef7fbcc0028735416d28b7be38d75b9a18df1780c79692fa8edc85e92a26
size 285827

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

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

View File

@ -1,3 +1,21 @@
-------------------------------------------------------------------
Mon Apr 17 19:00:59 UTC 2023 - Dirk Müller <dmueller@suse.com>
- update to 4.0.39:
* Version 4.0.38 had a serious bug in Row.__repr__ which could
cause crashes (#1196 ).
* Version 5.0 is on its way and will drop support for Python 2.
This release is a (hopefully final) bug fix release for
the 4.x line.
* added typing for Connection, Cursor, and connect parameters.
* corrected the install location of the pyi file.
* fixed Unicode errors in repr(row)
* fixed more typing related issues by removing TypeAlias
* arturxedex128 opened a security advisory for a buffer
overflow if selecting a decimal more
* than 100 digits long. Fixed by Michael Kleehammer.
- drop fix_install_location_of_pyodbc.pyi.patch (upstream)
-------------------------------------------------------------------
Tue Feb 7 20:20:18 UTC 2023 - Dirk Hartmann <2monex@gmx.net>

View File

@ -17,15 +17,13 @@
Name: python-pyodbc
Version: 4.0.35
Version: 4.0.39
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++
@ -44,7 +42,6 @@ even more.
%prep
%setup -q -n pyodbc-%{version}
%patch1 -p1
%build
export CFLAGS="%{optflags}"