1
0
forked from pool/python-pyodbc

Compare commits

4 Commits

Author SHA256 Message Date
11ab27c5c7 Accepting request 1284641 from devel:languages:python
- Switch to pyproject macros.

OBS-URL: https://build.opensuse.org/request/show/1284641
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyodbc?expand=0&rev=15
2025-06-11 14:25:58 +00:00
7d61ec4ba1 - Switch to pyproject macros.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyodbc?expand=0&rev=35
2025-06-11 06:20:23 +00:00
f6c5aff03f Accepting request 1218966 from devel:languages:python
- update to 5.2.0:
  * Thanks to @keitherskine there are now wheels for 3.13.  There
    are aiso a few bug fixes that were ready to go.

- Changes from version 4.0.34
- Updated spec file for compatibility with different python3
- Update to version 4.0.27:
  * Use int instead of bigint when possible (based on size of data)
  * Support SQL Server datetime2 precision. Previously more data
  * Correct encoding error on big-endian machines for connection
  * Issue #506 uncovered a potentially serious error where
- Use python single spec.
-Update to version 4.0.13
- updated to version 3.0.10
 * Row objects can now be pickled.
 * Fixed building on Python 2.5. Other versions are not affected.
 * Fixed "function sequence" errors caused by prepared SQL not being cleared ("unprepared")
 * Added Cursor.commit() and Cursor.rollback(). It is now possible to use only a cursor in
 * Added readonly keyword to connect. If set to True, SQLSetConnectAttr
   SQL_ATTR_ACCESS_MODE is set to SQL_MODE_READ_ONLY.
*  Fixed an error reading SQL Server XML data types longer than 4K.
- removed unneded requires
- initial version

OBS-URL: https://build.opensuse.org/request/show/1218966
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyodbc?expand=0&rev=14
2024-10-29 13:36:39 +00:00
e56992a8cd - update to 5.2.0:
* Thanks to @keitherskine there are now wheels for 3.13.  There
    are aiso a few bug fixes that were ready to go.
- Changes from version 4.0.34
- Updated spec file for compatibility with different python3
- Update to version 4.0.27:
  * Use int instead of bigint when possible (based on size of data)
  * Support SQL Server datetime2 precision. Previously more data
  * Correct encoding error on big-endian machines for connection
  * Issue #506 uncovered a potentially serious error where
- Use python single spec.
-Update to version 4.0.13
- updated to version 3.0.10
 * Row objects can now be pickled.
 * Fixed building on Python 2.5. Other versions are not affected.
 * Fixed "function sequence" errors caused by prepared SQL not being cleared ("unprepared")
 * Added Cursor.commit() and Cursor.rollback(). It is now possible to use only a cursor in
 * Added readonly keyword to connect. If set to True, SQLSetConnectAttr
   SQL_ATTR_ACCESS_MODE is set to SQL_MODE_READ_ONLY.
*  Fixed an error reading SQL Server XML data types longer than 4K.
- removed unneded requires
- initial version

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyodbc?expand=0&rev=33
2024-10-29 08:38:58 +00:00
4 changed files with 42 additions and 29 deletions

View File

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

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

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

View File

@@ -1,3 +1,15 @@
-------------------------------------------------------------------
Wed Jun 11 05:49:30 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Switch to pyproject macros.
-------------------------------------------------------------------
Tue Oct 29 08:38:28 UTC 2024 - Dirk Müller <dmueller@suse.com>
- update to 5.2.0:
* Thanks to @keitherskine there are now wheels for 3.13. There
are aiso a few bug fixes that were ready to go.
-------------------------------------------------------------------
Tue May 7 11:16:53 UTC 2024 - Markéta Machová <mmachova@suse.com>
@@ -42,7 +54,7 @@ Tue Feb 7 20:20:18 UTC 2023 - Dirk Hartmann <2monex@gmx.net>
* 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
- 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
@@ -56,7 +68,7 @@ Tue Feb 7 20:20:18 UTC 2023 - Dirk Hartmann <2monex@gmx.net>
-------------------------------------------------------------------
Wed Jan 20 20:12:59 UTC 2021 - Dirk Hartmann <2monex@gmx.net>
- Updated spec file for compatibility with different python3
- Updated spec file for compatibility with different python3
flavours.
-------------------------------------------------------------------
@@ -83,13 +95,13 @@ Sat Sep 14 15:34:06 UTC 2019 - John Vandenberg <jayvdb@gmail.com>
-------------------------------------------------------------------
Mon Aug 5 18:35:48 UTC 2019 - Dirk Hartmann <monex@liquid-co.de>
- Update to version 4.0.27:
* Use int instead of bigint when possible (based on size of data)
- Update to version 4.0.27:
* Use int instead of bigint when possible (based on size of data)
to work with drivers that don't support bigint at all.
* Support SQL Server datetime2 precision. Previously more data
* Support SQL Server datetime2 precision. Previously more data
was passed than the column precision causing an error.
* Make Informix unit tests work again.
* Correct encoding error on big-endian machines for connection
* Correct encoding error on big-endian machines for connection
errors. Default to native UTF16 instead of UTF16-LE.
* Fix MySQL unit tests.
@@ -97,10 +109,10 @@ Mon Aug 5 18:35:48 UTC 2019 - Dirk Hartmann <monex@liquid-co.de>
Sun Mar 10 16:04:24 UTC 2019 - Dirk Hartmann <monex@liquid-co.de>
- Update to version 4.0.26:
* Issue #506 uncovered a potentially serious error where
* Issue #506 uncovered a potentially serious error where
Unicode strings may not get a NULL terminator when being converted.
* Issue #504 was a double decref in the error return path of executemany.
-------------------------------------------------------------------
Wed Jan 30 19:32:36 UTC 2019 - Dirk Hartmann <monex@liquid-co.de>
@@ -170,12 +182,12 @@ Fri Aug 3 09:52:50 UTC 2018 - nrochard@gmail.com
-------------------------------------------------------------------
Thu Jun 28 18:18:40 UTC 2018 - monex@liquid-co.de
- Use python single spec.
- Use python single spec.
-------------------------------------------------------------------
Mon Feb 27 19:45:51 UTC 2017 - monex@liquid-co.de
-Update to version 4.0.13
-Update to version 4.0.13
-------------------------------------------------------------------
Sat May 2 18:50:07 UTC 2015 - monex@liquid-co.de
@@ -185,7 +197,7 @@ Sat May 2 18:50:07 UTC 2015 - monex@liquid-co.de
-------------------------------------------------------------------
Sat May 2 18:46:44 UTC 2015 - monex@liquid-co.de
- updated to version 3.0.10
- updated to version 3.0.10
-------------------------------------------------------------------
Sun Aug 4 19:28:00 UTC 2013 - monex@liquid-co.de
@@ -196,7 +208,7 @@ Sun Aug 4 19:28:00 UTC 2013 - monex@liquid-co.de
* Cursor.executemany now accepts an iterator or generator.
* Compilation improvements for FreeBSD, Cygwin, and OS/X
* Use SQL_DATA_AT_EXEC instead of SQL_DATA_LEN_AT_EXEC when possible for driver compatibility.
* Row objects can now be pickled.
* Row objects can now be pickled.
-------------------------------------------------------------------
Fri Nov 16 21:07:43 UTC 2012 - 2monex@gmx.net
@@ -207,23 +219,23 @@ Fri Nov 16 21:07:43 UTC 2012 - 2monex@gmx.net
Fri Nov 16 20:58:42 UTC 2012 - 2monex@gmx.net
- updated to version 3.0.6
* Fixed building on Python 2.5. Other versions are not affected.
* Fixed "function sequence" errors caused by prepared SQL not being cleared ("unprepared")
* Fixed building on Python 2.5. Other versions are not affected.
* Fixed "function sequence" errors caused by prepared SQL not being cleared ("unprepared")
when a catalog function is executed.
* Added Cursor.commit() and Cursor.rollback(). It is now possible to use only a cursor in
* Added Cursor.commit() and Cursor.rollback(). It is now possible to use only a cursor in
your code instead of keeping track of a connection and a cursor.
* Added readonly keyword to connect. If set to True, SQLSetConnectAttr
SQL_ATTR_ACCESS_MODE is set to SQL_MODE_READ_ONLY.
* Added readonly keyword to connect. If set to True, SQLSetConnectAttr
SQL_ATTR_ACCESS_MODE is set to SQL_MODE_READ_ONLY.
This may provide better locking semantics or speed for some drivers.
* Fixed an error reading SQL Server XML data types longer than 4K.
* Fixed an error reading SQL Server XML data types longer than 4K.
-------------------------------------------------------------------
Mon Jun 4 20:10:47 UTC 2012 - monex@liquid-co.de
- removed unneded requires
- removed unneded requires
-------------------------------------------------------------------
Mon Jun 4 20:04:40 UTC 2012 - monex@liquid-co.de
- initial version
- initial version

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-pyodbc
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,18 +18,19 @@
%{?sle15_python_module_pythons}
Name: python-pyodbc
Version: 5.1.0
Version: 5.2.0
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
Source1: https://raw.githubusercontent.com/mkleehammer/pyodbc/master/tests/old/sqlitetests.py
# testutils is a modified version of https://raw.githubusercontent.com/mkleehammer/pyodbc/44b620d8df1aa71926fb363b140d398bf5f2fc35/tests/testutils.py
Source2: testutils.py
BuildRequires: %{python_module devel}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: gcc-c++
BuildRequires: python-rpm-macros
BuildRequires: sqliteodbc
@@ -50,10 +51,10 @@ cp %{SOURCE1} %{SOURCE2} .
%build
export CFLAGS="%{optflags}"
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%check
export PYTHONDONTWRITEBYTECODE=1
@@ -62,7 +63,7 @@ $python sqlitetests.py -v "Driver=SQLITE3;Database=sqlite.db"
}
%files %{python_files}
%{python_sitearch}/pyodbc*-info
%{python_sitearch}/pyodbc-%{version}.dist-info
%{python_sitearch}/pyodbc.pyi
%{python_sitearch}/pyodbc*.so
%license LICENSE.txt