diff --git a/_service b/_service index 0b6e864..0cc5c2b 100644 --- a/_service +++ b/_service @@ -2,8 +2,8 @@ https://github.com/techouse/mysql-to-sqlite3.git git - v2.1.6 - v2.1.6 + v2.4.1 + v2.4.1 enable v(.*) diff --git a/_servicedata b/_servicedata index 9c1c681..5e0c47d 100644 --- a/_servicedata +++ b/_servicedata @@ -1,4 +1,4 @@ https://github.com/techouse/mysql-to-sqlite3.git - a4c15807b4014cd75203fa93d5319b1d032269e0 \ No newline at end of file + cdee3dad0c8f725820c3fd291397ad5da059e21e \ No newline at end of file diff --git a/mysql-to-sqlite3-2.1.6.obscpio b/mysql-to-sqlite3-2.1.6.obscpio deleted file mode 100644 index 6696150..0000000 --- a/mysql-to-sqlite3-2.1.6.obscpio +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0b71b85f2fc8d264ab010d46ffde860a478f238e57083219d80e8313a102ab36 -size 222731 diff --git a/mysql-to-sqlite3-2.4.1.obscpio b/mysql-to-sqlite3-2.4.1.obscpio new file mode 100644 index 0000000..e4dfcb9 --- /dev/null +++ b/mysql-to-sqlite3-2.4.1.obscpio @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bc72449bc1793569f849b1805eb415b9d93a4d5bec121a8ee4999c82b1462514 +size 296459 diff --git a/mysql-to-sqlite3.obsinfo b/mysql-to-sqlite3.obsinfo index 2330a7c..eeb4ec9 100644 --- a/mysql-to-sqlite3.obsinfo +++ b/mysql-to-sqlite3.obsinfo @@ -1,4 +1,4 @@ name: mysql-to-sqlite3 -version: 2.1.6 -mtime: 1702207839 -commit: a4c15807b4014cd75203fa93d5319b1d032269e0 +version: 2.4.1 +mtime: 1747867841 +commit: cdee3dad0c8f725820c3fd291397ad5da059e21e diff --git a/python-mysql-to-sqlite3.changes b/python-mysql-to-sqlite3.changes index 3546a07..ac75f6e 100644 --- a/python-mysql-to-sqlite3.changes +++ b/python-mysql-to-sqlite3.changes @@ -1,3 +1,16 @@ +------------------------------------------------------------------- +Sat Jun 28 14:05:13 UTC 2025 - Enno Gotthold + +- Support libalternatives for 16.0 and newer +- Update to version 2.4.1 + * use more precise foreign key constraints + * ensure index names do not collide with table names + * add support for AUTOINCREMENT + * add --without-tables option + * Fix transferring composite primary keys when AUTOINCREMENT present + * add MySQL 8.4 and MariaDB 11.4 support + * fix passwordless login + ------------------------------------------------------------------- Thu Aug 29 09:04:05 UTC 2024 - pgajdos@suse.com diff --git a/python-mysql-to-sqlite3.spec b/python-mysql-to-sqlite3.spec index d03c3ea..46eab40 100644 --- a/python-mysql-to-sqlite3.spec +++ b/python-mysql-to-sqlite3.spec @@ -1,7 +1,7 @@ # # spec file for package python-mysql-to-sqlite3 # -# 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,43 +18,58 @@ %define short_name mysql-to-sqlite3 %define skip_python2 1 +%if 0%{?suse_version} > 1500 +%bcond_without libalternatives +%else +%bcond_with libalternatives +%endif + Name: python-mysql-to-sqlite3 -Version: 2.1.6 +Version: 2.4.1 Release: 0 Summary: A simple Python tool to transfer data from MySQL to SQLite 3 License: MIT URL: https://github.com/techouse/mysql-to-sqlite3 Source: %{short_name}-%{version}.tar.gz +# libalternative +%if %{with libalternatives} +Requires: alts +BuildRequires: alts +%else +Requires(post): update-alternatives +Requires(postun): update-alternatives +%endif +# Package Requirements BuildRequires: %{python_module hatchling} +BuildRequires: %{python_module SQLAlchemy-Utils} +BuildRequires: %{python_module SQLAlchemy} +BuildRequires: %{python_module docker} +BuildRequires: %{python_module factory_boy} BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: docker BuildRequires: python-rpm-macros -BuildRequires: python3-SQLAlchemy -BuildRequires: python3-SQLAlchemy-Utils -BuildRequires: python3-docker -BuildRequires: python3-factory_boy # SECTION test requirements BuildRequires: %{python_module click >= 8.1.3} -BuildRequires: %{python_module mysql-connector-python >= 8.2.0} +BuildRequires: %{python_module mysql-connector-python >= 9.0.0} BuildRequires: %{python_module python-slugify >= 7.0.0} BuildRequires: %{python_module pytimeparse >= 1.1.8} BuildRequires: %{python_module simplejson >= 3.19.0} BuildRequires: %{python_module tabulate} -BuildRequires: %{python_module tqdm >= 4.35.0} +BuildRequires: %{python_module tqdm >= 4.65.0} # /SECTION BuildRequires: fdupes Requires: python-click >= 8.1.3 -Requires: python-mysql-connector-python >= 8.2.0 +Requires: python-mysql-connector-python >= 9.0.0 +Requires: python-python-dateutil Requires: python-python-slugify >= 7.0.0 Requires: python-pytimeparse2 Requires: python-simplejson >= 3.19.0 Requires: python-tabulate Requires: python-tqdm >= 4.65.0 +Requires: python-types-python-dateutil Requires: python-typing_extensions -Requires(post): update-alternatives -Requires(postun):update-alternatives BuildArch: noarch %python_subpackages @@ -72,6 +87,13 @@ A simple Python tool to transfer data from MySQL to SQLite 3 %python_clone -a %{buildroot}%{_bindir}/mysql2sqlite %python_expand %fdupes %{buildroot}%{$python_sitelib} +# We cannot execute the tests here due to python-mysql-connector-python missing +# the C-extension. + +%pre +# removing old update-alternatives entries +%python_libalternatives_reset_alternative mysql2sqlite + %post %python_install_alternative mysql2sqlite