From 3d40c157c4a0d028f6949ba9a24e2e1ed8e96a6d984534dc894fe404f0693a6c Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Sat, 29 Nov 2025 22:17:40 +0000 Subject: [PATCH] - Update to version 2.3.9 * Fix build with Cython-3.2.0 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pymssql?expand=0&rev=22 --- .gitattributes | 23 ++++++ .gitignore | 1 + pymssql-2.3.7.tar.gz | 3 + pymssql-2.3.8.tar.gz | 3 + pymssql-2.3.9.tar.gz | 3 + python-pymssql.changes | 180 +++++++++++++++++++++++++++++++++++++++++ python-pymssql.spec | 65 +++++++++++++++ 7 files changed, 278 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 pymssql-2.3.7.tar.gz create mode 100644 pymssql-2.3.8.tar.gz create mode 100644 pymssql-2.3.9.tar.gz create mode 100644 python-pymssql.changes create mode 100644 python-pymssql.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/pymssql-2.3.7.tar.gz b/pymssql-2.3.7.tar.gz new file mode 100644 index 0000000..ac9b2d5 --- /dev/null +++ b/pymssql-2.3.7.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5e6d79c7b1cec40aebec4b099c6e445ccaac24519e5e767b49a4e6f48c087e50 +size 184995 diff --git a/pymssql-2.3.8.tar.gz b/pymssql-2.3.8.tar.gz new file mode 100644 index 0000000..18606dc --- /dev/null +++ b/pymssql-2.3.8.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:dafa4887d697503ac890db316470be22d9b4023487e6425ba67aa0a6681babf5 +size 185176 diff --git a/pymssql-2.3.9.tar.gz b/pymssql-2.3.9.tar.gz new file mode 100644 index 0000000..7280735 --- /dev/null +++ b/pymssql-2.3.9.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:00aa861936374f251b8e1e4535f26daed32c2fc365b891fedcd97d7863d7321b +size 185175 diff --git a/python-pymssql.changes b/python-pymssql.changes new file mode 100644 index 0000000..873ddf1 --- /dev/null +++ b/python-pymssql.changes @@ -0,0 +1,180 @@ +------------------------------------------------------------------- +Fri Nov 28 10:32:45 UTC 2025 - John Paul Adrian Glaubitz + +- Update to version 2.3.9 + * Fix build with Cython-3.2.0 + +------------------------------------------------------------------- +Wed Oct 15 19:46:59 UTC 2025 - Martin Hauke + +- Update to version 2.3.8 + * No functional changes + +------------------------------------------------------------------- +Wed Aug 6 13:59:15 UTC 2025 - John Paul Adrian Glaubitz + +- Update to version 2.3.7 + * Allow to specify openssl dependency on macos +- from version 2.3.6 + * Build manylinux wheels using manylinux2014 image +- Use Python 3.11 on SLE-15 by default + +------------------------------------------------------------------- +Thu Jun 26 12:16:12 UTC 2025 - Martin Hauke + +- Update to version 2.3.5 + * Make mssql cython 3.1.0 compatible + * Fix sqlalchemy.orm.exc.MappedAnnotationError in tests. + * Add py.typed which marks pymssql as suporting typechecks. + +------------------------------------------------------------------- +Sat Nov 23 12:40:00 UTC 2024 - Martin Hauke + +- Update to version 2.3.2 + * Update FreeTDS to 1.4.23. + * Workaround setuptools-74.0 changes. + +------------------------------------------------------------------- +Sat Aug 31 11:42:42 UTC 2024 - Dirk Müller + +- update to 2.3.1: + * Fix SP returning NULL (closes #441). + * Update FreeTDS to 1.4.22 (closes #895). + * Require Cython>3.0.10. + * Add python 3.13 Linux wheels (closes #900). + +------------------------------------------------------------------- +Sun Apr 7 16:23:46 UTC 2024 - Martin Hauke + +- Update to version 2.3.0 + General + * Add python 3.12 support. + * Add read_only parameter for connection. + * Add encryption parameter to connect. + * Add use_datetime2 parameter to connect. + * Use utf-8 for connection properties. + * Implement batching in executemany based on optional batch_size + parameter. with default equal arraysize cursor attribute. + * Fix DBAPI-2.0 compliance - DataError must be a subclass of + DatabaseError. + * Fix DBAPI-2.0 compliance: rename batchsize cursor attribute to + arraysize. + * Implement DATETIMEOFFSET handling for stored procedures. + * Implement DATETIMEOFFSET handling for insert and select queries + * Return instance of datetime.datetime on select from + SQLDATETIM4, SQLDATETIME, SQLDATETIME2 columns. + Bug fixes + * Fix SQLDATETIME2 handling in convert_python_value(). + * Use four digits for the year in SP args binding. + * Fix convert_python_value to work with datetime.date. + * Check if C compiler is installed if check for clock_gettime + fails. + * Add missing charset parameter in the _substitute_params method + when calling ensure_bytes. + * Fix empty, zero or None parameter substitution. + Internals + * Add tests for fetchall(), fetchmany(), fetchone() and next() + with SP. + * Require Cython>3.0.7. + * Use Cython 3 for compilation. + * Add SQLTIME and SQLDATETIME2 to convert_python_value. + * Use dbanydatecrack() function instead of dbdatecrack(). + * Replace DEF with cdef enum for buffer array size + * Remove references to tox. + * Add tests for timeout in wait callback. + * Clean up some legacy FreeTDS shims. + * Add tests for tds_version parameter. + * Move check for clock_gettime to dev/ccompiler.py. + * Remove some Python2 remnants. + * Move FreeTDS version from workflow files to pyproject.toml. + * Move exceptions into separate module. + * Use strftime for date & time conversion. + * Simplify parameters quoting. + * Add tests for _quote_simple_value. + +------------------------------------------------------------------- +Thu Dec 14 13:31:54 UTC 2023 - Martin Hauke + +- Update to version 2.2.11 + General + * Add datetime.date to SQLDATE conversion. + * Add encryption parameter to connect. + Bug fixes + * Fix version parsing in development. + * Add missing charset parameter when formatting query. + * Use four digits for the year in SP args binding. + * Fix convert_python_value to work with datetime.date. + +------------------------------------------------------------------- +Mon Oct 30 20:52:41 UTC 2023 - Martin Hauke + +- Update to version 2.2.10 + * Add python 3.12 support. + * Do not try to drop temporary tables in clear_db(). + * test_sqlalchemy: update for compatibility with SQLAlchemy >2.0. +- Update to version 2.2.9 + * Update changelog. + +------------------------------------------------------------------- +Sun Aug 13 19:43:00 UTC 2023 - Dirk Müller + +- update to 2.2.8: + * Compatibility with Cython. + * Fix build on Alpine Linux (fix #762). + * Fill in result description in cursor.callproc (fix #772). + * Add explicit link to krb5 (fix #776) + * Added bytes and bytearray to support bulk_copy types, thanks + to steve-strickland (#756). + * Fix UnicodeEncodeError for non-ascii database name (#484). + * Fix pymssql.Binary (#504). + * On macOS check for FreeTDS in homebrew prefix when building. + * Some documentation changes. + * Drop support for Python2 and Python3 < 3.6. + * Fixed a deadlock caused by a missing release of GIL (#540), + * Prevents memory leak on login failure. Thanks to caogtaa and + Simon.StJG (PR-690). + * Fix check for TDS version (#652 and #669). + +------------------------------------------------------------------- +Wed Oct 28 21:39:12 UTC 2020 - Martin Hauke + +- Update to version 2.1.5 + * Revert deprecation + * Support Python-3.8. Update tests for Python-3.8 compatibility. + * Use correct language level for building Cython extension. + * Fix FreeTDS version checks. Add check for version 7.4. + * Drop bundled FreeTDS-0.95 binaries. + +------------------------------------------------------------------- +Tue Oct 2 13:05:31 UTC 2018 - mardnh@gmx.de + +- Convert to singlespec +- Update to version 2.1.4 + +------------------------------------------------------------------- +Fri Apr 10 06:50:00 UTC 2015 - hanke@rzg.mpg.de + +- Update to version 2.1.1 + * Buildrequire python-setuptools-git + +------------------------------------------------------------------- +Thu Dec 5 01:17:46 UTC 2013 - termim@gmail.com + +- Update to release version (2.0.0) + +------------------------------------------------------------------- +Thu Oct 24 11:12:09 UTC 2013 - speilicke@suse.com + +- Require python-setuptools instead of distribute (upstreams merged) + +------------------------------------------------------------------- +Wed Jun 19 12:41:25 UTC 2013 - speilicke@suse.com + +- Many spec fixes + +------------------------------------------------------------------- +Wed Jun 12 02:34:06 UTC 2013 - termim@gmail.com + +- Initial checkin + + diff --git a/python-pymssql.spec b/python-pymssql.spec new file mode 100644 index 0000000..ab7597b --- /dev/null +++ b/python-pymssql.spec @@ -0,0 +1,65 @@ +# +# spec file for package python-pymssql +# +# Copyright (c) 2025 SUSE LLC and contributors +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%{?sle15_python_module_pythons} +Name: python-pymssql +Version: 2.3.9 +Release: 0 +Summary: A simple database interface to MS-SQL for Python +License: LGPL-2.1-only +Group: Development/Languages/Python +URL: https://pymssql.org +#Git-Clone: https://github.com/pymssql/pymssql.git +Source: https://files.pythonhosted.org/packages/source/p/pymssql/pymssql-%{version}.tar.gz +BuildRequires: %{python_module Cython >= 3.0.11} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools_scm} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: freetds-devel +BuildRequires: krb5-devel +BuildRequires: openssl-devel +BuildRequires: python-rpm-macros +%python_subpackages + +%description +pymssql is the Python language extension module that provides access to +Microsoft SQL Servers from Python scripts. It is compliant with Python +DB-API 2.0 Specification and works on most popular operating systems. + +%prep +%autosetup -n pymssql-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitearch} + +### Tests need access to a MSSQL-server +#%%check +#%%python_exec setup.py test + +%files %{python_files} +%license LICENSE +%doc ChangeLog.rst README.rst +%{python_sitearch}/pymssql +%{python_sitearch}/pymssql-%{version}*-info + +%changelog