diff --git a/.python-sqlalchemy-utils.metadata b/.python-sqlalchemy-utils.metadata new file mode 100644 index 0000000..e142fb9 --- /dev/null +++ b/.python-sqlalchemy-utils.metadata @@ -0,0 +1 @@ +0af6518af4ae1de0a73382afb45119c322ca0c55 SOURCES/SQLAlchemy-Utils-0.41.1.tar.gz diff --git a/SOURCES/CHANGELOG.yml b/SOURCES/CHANGELOG.yml new file mode 100644 index 0000000..a213b29 --- /dev/null +++ b/SOURCES/CHANGELOG.yml @@ -0,0 +1,3 @@ +- nevr: python-sqlalchemy-utils-0.32.12-1 + changelog: Update to 0.32.12 + update_type: enhancement diff --git a/SOURCES/no-psycopg2cffi.patch b/SOURCES/no-psycopg2cffi.patch new file mode 100644 index 0000000..c5de8ad --- /dev/null +++ b/SOURCES/no-psycopg2cffi.patch @@ -0,0 +1,32 @@ +diff -rupN --no-dereference SQLAlchemy-Utils-0.41.1/setup.py SQLAlchemy-Utils-0.41.1-new/setup.py +--- SQLAlchemy-Utils-0.41.1/setup.py 2023-04-27 09:33:40.000000000 +0200 ++++ SQLAlchemy-Utils-0.41.1-new/setup.py 2023-05-01 13:02:07.484205561 +0200 +@@ -29,7 +29,7 @@ extras_require = { + 'flexmock>=0.9.7', + 'psycopg>=3.1.8', + 'psycopg2>=2.5.1', +- 'psycopg2cffi>=2.8.1', ++ #'psycopg2cffi>=2.8.1', + 'pg8000>=1.12.4', + 'pytz>=2014.2', + 'python-dateutil>=2.6', +diff -rupN --no-dereference SQLAlchemy-Utils-0.41.1/tests/functions/test_database.py SQLAlchemy-Utils-0.41.1-new/tests/functions/test_database.py +--- SQLAlchemy-Utils-0.41.1/tests/functions/test_database.py 2023-04-27 09:33:40.000000000 +0200 ++++ SQLAlchemy-Utils-0.41.1-new/tests/functions/test_database.py 2023-05-01 13:02:07.485205573 +0200 +@@ -90,6 +90,7 @@ class TestDatabasePostgresPg8000(Databas + ) + + ++""" + class TestDatabasePostgresPsycoPG2CFFI(DatabaseTest): + + @pytest.fixture +@@ -99,7 +100,7 @@ class TestDatabasePostgresPsycoPG2CFFI(D + postgresql_db_password, + 'db_to_test_create_and_drop_via_psycopg2cffi_driver' + ) +- ++""" + + @pytest.mark.skipif('sqlalchemy_version < (2, 0, 0)') + class TestDatabasePostgresPsycoPG3(DatabaseTest): diff --git a/SPECS/python-sqlalchemy-utils.spec b/SPECS/python-sqlalchemy-utils.spec new file mode 100644 index 0000000..399bd39 --- /dev/null +++ b/SPECS/python-sqlalchemy-utils.spec @@ -0,0 +1,174 @@ +%global modname SQLAlchemy-Utils + +Name: python-sqlalchemy-utils +Version: 0.41.1 +Release: 1%{?dist} +Summary: Various utility functions for SQLAlchemy + +License: BSD +URL: http://pypi.python.org/pypi/SQLAlchemy-Utils +Source0: %{pypi_source SQLAlchemy-Utils} +# Omit test on unpackaged python-psycopg2cffi +Patch0: no-psycopg2cffi.patch + +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: pyproject-rpm-macros +BuildRequires: python3-pytest + +# those packages are non-available in repo, so tests are not run +# For tests +# BuildRequires: python3-colour +# BuildRequires: python3-phonenumbers + + +%description +Various utility functions and custom data types for SQLAlchemy. + + +%package -n python3-sqlalchemy-utils +Summary: Various utility functions for SQLAlchemy + +%description -n python3-sqlalchemy-utils +Various utility functions and custom data types for SQLAlchemy. + + +%generate_buildrequires +%pyproject_buildrequires -x test + + +%prep +%autosetup -p1 -n %{modname}-%{version} +# remove missing deps needed for testing +sed -i '/psycopg>=*/d' setup.py +sed -i '/pg8000>=*/d' setup.py + + +# Remove bundled egg-info in case it exists +rm -rf %{modname}.egg-info + + +%build +%pyproject_wheel + + +%install +%pyproject_install +%pyproject_save_files sqlalchemy_utils + + +%files -n python3-sqlalchemy-utils -f %{pyproject_files} +%doc README.rst +%license LICENSE + + +%changelog +* Mon May 01 2023 Sandro Mani - 0.41.1-1 +- Update to 0.41.1 + +* Tue Feb 07 2023 Sandro Mani - 0.39.0-1 +- Update to 0.39.0 + +* Fri Jan 20 2023 Fedora Release Engineering - 0.37.8-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Fri Jul 22 2022 Fedora Release Engineering - 0.37.8-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Wed Jun 15 2022 Python Maint - 0.37.8-3 +- Rebuilt for Python 3.11 + +* Fri Jan 21 2022 Fedora Release Engineering - 0.37.8-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Tue Aug 03 2021 Joel Capitao - 0.37.8-1 +- Update to 0.37.8 + +* Fri Jul 23 2021 Fedora Release Engineering - 0.34.2-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Fri Jun 04 2021 Python Maint - 0.34.2-7 +- Rebuilt for Python 3.10 + +* Wed Jan 27 2021 Fedora Release Engineering - 0.34.2-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Wed Jul 29 2020 Fedora Release Engineering - 0.34.2-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Tue May 26 2020 Miro Hrončok - 0.34.2-4 +- Rebuilt for Python 3.9 + +* Thu Jan 30 2020 Fedora Release Engineering - 0.34.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Thu Oct 03 2019 Miro Hrončok - 0.34.2-2 +- Rebuilt for Python 3.8.0rc1 (#1748018) + +* Tue Aug 20 2019 Pierre-Yves Chibon - 0.34.2-1 +- Update to 0.34.2 + +* Mon Aug 19 2019 Miro Hrončok - 0.32.12-12 +- Rebuilt for Python 3.8 + +* Fri Jul 26 2019 Fedora Release Engineering - 0.32.12-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Sun May 05 2019 Miro Hrončok - 0.32.12-10 +- Subpackage python2-sqlalchemy-utils has been removed + See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal + +* Sat Feb 02 2019 Fedora Release Engineering - 0.32.12-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Sat Jul 14 2018 Fedora Release Engineering - 0.32.12-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Tue Jun 19 2018 Miro Hrončok - 0.32.12-7 +- Rebuilt for Python 3.7 + +* Mon Feb 12 2018 Iryna Shcherbina - 0.32.12-6 +- Update Python 2 dependency declarations to new packaging standards + (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) + +* Fri Feb 09 2018 Fedora Release Engineering - 0.32.12-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Sun Dec 17 2017 Zbigniew Jędrzejewski-Szmek - 0.32.12-4 +- Python 2 binary package renamed to python2-sqlalchemy-utils + See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3 + +* Thu Jul 27 2017 Fedora Release Engineering - 0.32.12-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Sat Feb 11 2017 Fedora Release Engineering - 0.32.12-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Fri Jan 20 2017 Pierre-Yves Chibon - 0.32.12-1 +- Update to 0.32.12 + +* Mon Dec 19 2016 Miro Hrončok - 0.31.3-3 +- Rebuild for Python 3.6 + +* Thu Feb 04 2016 Fedora Release Engineering - 0.31.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Fri Nov 20 2015 Pierre-Yves Chibon - 0.31.3-1 +- Update to 0.31.3 + +* Tue Nov 10 2015 Fedora Release Engineering - 0.30.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5 + +* Thu Jun 18 2015 Fedora Release Engineering - 0.30.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Sun Apr 26 2015 Pierre-Yves Chibon - 0.30.0-1 +- Update to 0.30.0 + +* Mon Sep 01 2014 Pierre-Yves Chibon - 0.26.13-2 +- Clean python macro at the top +- Add python3 subpackage + +* Tue Aug 26 2014 Pierre-Yves Chibon - 0.26.13-1 +- initial package for Fedora