commit de850bc080404e639255f68aeb1f2659b9dd2b78e6a33ec303e00343d124b9f9 Author: Markéta Machová Date: Tue Jan 5 13:38:37 2021 +0000 Accepting request 860447 from home:SchoolGuy Initial submission as a devel project. Please feel free to add me as a maintainer. OBS-URL: https://build.opensuse.org/request/show/860447 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mysql-to-sqlite3?expand=0&rev=1 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/mysql-to-sqlite3-1.3.6.tar.gz b/mysql-to-sqlite3-1.3.6.tar.gz new file mode 100644 index 0000000..1a46581 --- /dev/null +++ b/mysql-to-sqlite3-1.3.6.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5f902117f178da591fc3cee738f78a126b8dd89b8b1228dfb27e70ca09047035 +size 29364 diff --git a/python-mysql-to-sqlite3.changes b/python-mysql-to-sqlite3.changes new file mode 100644 index 0000000..5eb5a8e --- /dev/null +++ b/python-mysql-to-sqlite3.changes @@ -0,0 +1,9 @@ +------------------------------------------------------------------- +Mon Jan 4 12:34:51 UTC 2021 - Enno Gotthold + +- Update to version 1.3.6 + +------------------------------------------------------------------- +Tue Dec 1 19:14:43 UTC 2020 - Enno Gotthold + +- Initial packaging of the tool (1.3.5) diff --git a/python-mysql-to-sqlite3.spec b/python-mysql-to-sqlite3.spec new file mode 100644 index 0000000..6d3fcd7 --- /dev/null +++ b/python-mysql-to-sqlite3.spec @@ -0,0 +1,82 @@ +# +# spec file for package python-mysql-to-sqlite3 +# +# Copyright (c) 2020 SUSE LLC +# +# 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/ +# + +%define skip_python2 1 +Name: python-mysql-to-sqlite3 +Version: 1.3.6 +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: https://files.pythonhosted.org/packages/source/m/mysql-to-sqlite3/mysql-to-sqlite3-%{version}.tar.gz +BuildRequires: docker +BuildRequires: python-rpm-macros +BuildRequires: python3-pytest +BuildRequires: python3-docker +BuildRequires: python3-SQLAlchemy +BuildRequires: python3-SQLAlchemy-Utils +BuildRequires: python3-factory_boy +BuildRequires: %{python_module setuptools} +# SECTION test requirements +BuildRequires: %{python_module click >= 7.0} +BuildRequires: %{python_module mysql-connector-python >= 8.0.18} +BuildRequires: %{python_module python-slugify >= 3.0.3} +BuildRequires: %{python_module pytimeparse >= 1.1.8} +BuildRequires: %{python_module simplejson >= 3.16.0} +BuildRequires: %{python_module six >= 1.12.0} +BuildRequires: %{python_module tabulate} +BuildRequires: %{python_module tqdm >= 4.35.0} +# /SECTION +BuildRequires: fdupes +Requires: python-Click >= 7.0 +Requires: python-mysql-connector-python >= 8.0.18 +Requires: python-python-slugify >= 3.0.3 +Requires: python-pytimeparse >= 1.1.8 +Requires: python-simplejson >= 3.16.0 +Requires: python-six >= 1.12.0 +Requires: python-tabulate +Requires: python-tqdm >= 4.35.0 +BuildArch: noarch +%python_subpackages + +%description +A simple Python tool to transfer data from MySQL to SQLite 3 + +%prep +%setup -q -n mysql-to-sqlite3-%{version} + +%build +%python_build + +%install +%python_install +%python_clone -a %{buildroot}%{_bindir}/mysql2sqlite +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%post +%python_install_alternative mysql2sqlite + +%postun +%python_uninstall_alternative mysql2sqlite + +%files %{python_files} +%doc README.md +%license LICENSE +%python_alternative %{_bindir}/mysql2sqlite +%{python_sitelib}/* + +%changelog