forked from pool/python-sqlite3-to-mysql
- Support libalternatives for 16.0 and newer
- Update to 2.4.0 * add conversion of SQLite custom BOOL data type to MySQL TINYINT(1) * add --mysql-skip-create-tables and --mysql-skip-transfer-data options * fix default parameter parsing * add MySQL 8.4 and MariaDB 11.4 support * fix conversion of SQLite NUMERIC data type with precision and scale to MySQL DECIMAL with precision and scale * fix --mysql-insert-method * modify the existing check_mysql_json_support and check_mysql_fulltext_support to improve detection of MariaDB versions * fix connecting with empty MySQL password OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sqlite3-to-mysql?expand=0&rev=15
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-sqlite3-to-mysql
|
||||
#
|
||||
# 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,35 +18,50 @@
|
||||
|
||||
%define short_name sqlite3-to-mysql
|
||||
%define skip_python2 1
|
||||
%if 0%{?suse_version} > 1500
|
||||
%bcond_without libalternatives
|
||||
%else
|
||||
%bcond_with libalternatives
|
||||
%endif
|
||||
|
||||
Name: python-sqlite3-to-mysql
|
||||
Version: 2.1.7
|
||||
Version: 2.4.0
|
||||
Release: 0
|
||||
Summary: A Python tool to transfer data from SQLite 3 to MySQL
|
||||
License: MIT
|
||||
URL: https://github.com/techouse/sqlite3-to-mysql
|
||||
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 SQLAlchemy-Utils}
|
||||
BuildRequires: %{python_module SQLAlchemy}
|
||||
BuildRequires: %{python_module docker}
|
||||
BuildRequires: %{python_module factory_boy}
|
||||
BuildRequires: %{python_module hatchling}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module pytest-timeout}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: docker
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: libmariadb-devel
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-Unidecode >= 1.3.6
|
||||
Requires: python-click >= 8.1.3
|
||||
Requires: python-mysql-connector-python >= 8.2.0
|
||||
Requires: python-mysql-connector-python >= 9.0.0
|
||||
Requires: python-packaging
|
||||
Requires: python-python-dateutil
|
||||
Requires: python-pytimeparse2
|
||||
Requires: python-simplejson >= 3.19.1
|
||||
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
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module Sphinx}
|
||||
@@ -54,9 +69,12 @@ BuildRequires: %{python_module click >= 7.0}
|
||||
BuildRequires: %{python_module coverage}
|
||||
BuildRequires: %{python_module ddt}
|
||||
BuildRequires: %{python_module flake8}
|
||||
BuildRequires: %{python_module mysql-connector-python >= 8.0.18}
|
||||
BuildRequires: %{python_module mysql-connector-python >= 9.0.0}
|
||||
BuildRequires: %{python_module packaging >= 20.3}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module pytest >= 7.3.1}
|
||||
BuildRequires: %{python_module pytest-cov}
|
||||
BuildRequires: %{python_module pytest-mock}
|
||||
BuildRequires: %{python_module pytest-timeout}
|
||||
BuildRequires: %{python_module pytimeparse >= 1.1.8}
|
||||
BuildRequires: %{python_module simplejson >= 3.16.0}
|
||||
BuildRequires: %{python_module sphinxcontrib-programoutput}
|
||||
@@ -79,6 +97,13 @@ A Python tool to transfer data from SQLite 3 to MySQL
|
||||
%python_clone -a %{buildroot}%{_bindir}/sqlite3mysql
|
||||
%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 sqlite3mysql
|
||||
|
||||
%post
|
||||
%python_install_alternative sqlite3mysql
|
||||
|
||||
|
Reference in New Issue
Block a user