Sync from SUSE:SLFO:Main python-PyMySQL revision e74c10c655647fa8349787f1b6e83257
This commit is contained in:
parent
e64c96d9ad
commit
b0e1afee89
BIN
PyMySQL-1.0.3.tar.gz
(Stored with Git LFS)
BIN
PyMySQL-1.0.3.tar.gz
(Stored with Git LFS)
Binary file not shown.
BIN
PyMySQL-1.1.1.tar.gz
(Stored with Git LFS)
Normal file
BIN
PyMySQL-1.1.1.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
@ -1,3 +1,46 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu May 23 11:34:26 UTC 2024 - Daniel Garcia <daniel.garcia@suse.com>
|
||||
|
||||
- Update to 1.1.1 (bsc#1225070):
|
||||
* Prohibit dict parameter for Cursor.execute(). It didn't produce
|
||||
valid SQL and might cause SQL injection. (CVE-2024-36039)
|
||||
* Added ssl_key_password param by @svaskov in #1145
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Aug 16 14:43:37 UTC 2023 - ecsos <ecsos@opensuse.org>
|
||||
|
||||
- Add %{?sle15_python_module_pythons}
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Aug 2 11:42:46 UTC 2023 - Daniel Garcia <daniel.garcia@suse.com>
|
||||
|
||||
- disable test_json broken with latest mariadb (11.0)
|
||||
- update to 1.1.0:
|
||||
* Remove redundant wheel dep from pyproject.toml by @mgorny in #1099
|
||||
* ci: Fix black options by @methane in #1109
|
||||
* Remove unused function by @methane in #1108
|
||||
* Expose Cursor.warning_count by @Nothing4You in #1056
|
||||
* Add constants and tests related to query timeouts by @Nothing4You in #1033
|
||||
* Fix SSCursor raising query timeout error on wrong query on MySQL DB by @Nothing4You in #1035
|
||||
* Make Cursor an iterator by @sanchezg in #995
|
||||
* ci: Update CodeQL workflow by @methane in #1110
|
||||
* Use Ruff instead of flake8 by @methane in #1112
|
||||
* Use Codecov instead of coveralls. by @methane in #1113
|
||||
* optionfile: Replace _ with - by @methane in #1114
|
||||
* Cursor.fetchall() always return list. by @methane in #1115
|
||||
* Fix LOAD DATA LOCAL INFILE write EOF packet on closed connection. by @methane in #1116
|
||||
* Deprecate Cursor.Error access by @methane in #1117
|
||||
* Run pyupgrade by @methane in #1118
|
||||
* Add collation option and set_character_set() to Connection by @methane in #1119
|
||||
* CI: Run Django test by @methane in #1121
|
||||
* Release v1.1.0rc1 by @methane in #1122
|
||||
* Bump mariadb version by @grooverdan in #1123
|
||||
* Configure Renovate by @renovate in #1124
|
||||
* Make charset="utf8" use utf8mb4. by @methane in #1127
|
||||
* Add codecov.yml by @methane in #1128
|
||||
* Release v1.1.0rc2 by @methane in #1129
|
||||
* Release v1.1.0 by @methane in #1130
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed May 3 08:35:39 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-PyMySQL
|
||||
#
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -23,10 +23,9 @@
|
||||
%bcond_with tests
|
||||
%endif
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%global skip_python2 1
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-PyMySQL
|
||||
Version: 1.0.3
|
||||
Version: 1.1.1
|
||||
Release: 0
|
||||
Summary: Pure Python MySQL Driver
|
||||
License: MIT
|
||||
@ -59,7 +58,7 @@ by simply changing the import statements in the Django MySQL backend and running
|
||||
its unit tests as well as running it against the MySQLdb and myconnpy unit tests.
|
||||
|
||||
%prep
|
||||
%setup -q -n PyMySQL-%{version}
|
||||
%autosetup -p1 -n PyMySQL-%{version}
|
||||
# remove unwanted shebang
|
||||
sed -i '1 { /^#!/ d }' pymysql/tests/thirdparty/test_MySQLdb/*.py
|
||||
|
||||
@ -78,7 +77,7 @@ dbuserpw='db_user_secret'
|
||||
dbname1='test1'
|
||||
dbname2='test2'
|
||||
# Needs mysql server
|
||||
#%%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_bin_suffix} -v
|
||||
#%%python_expand PYTHONPATH=%%{buildroot}%%{$python_sitelib} py.test-%%{$python_bin_suffix} -v
|
||||
cconf=abuild-myclient.cnf
|
||||
#
|
||||
# start the mariadb server
|
||||
@ -97,7 +96,8 @@ EOF
|
||||
#
|
||||
export USER="$dbuser"
|
||||
export PASSWORD="$dbuserpw"
|
||||
%pytest pymysql/tests -k 'not test_stored_procedures' || exit_code=1
|
||||
# test_json is broken for mariadb 11.0.2
|
||||
%pytest pymysql/tests -k 'not (test_stored_procedures or test_json)' || exit_code=1
|
||||
#
|
||||
# stopping mariadb
|
||||
#
|
||||
@ -108,6 +108,7 @@ exit $exit_code
|
||||
%files %{python_files}
|
||||
%license LICENSE
|
||||
%doc CHANGELOG.md README.md
|
||||
%{python_sitelib}/*
|
||||
%{python_sitelib}/pymysql
|
||||
%{python_sitelib}/PyMySQL-%{version}*-info
|
||||
|
||||
%changelog
|
||||
|
Loading…
Reference in New Issue
Block a user