[packages/python-alembic] Rel 4; drop python3 (see python3-alembic.spec)
arekm
arekm at pld-linux.org
Sun May 4 14:19:29 CEST 2025
commit f22a856671467548028a75b35cd69de9a6a1e760
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Sun May 4 13:32:30 2025 +0200
Rel 4; drop python3 (see python3-alembic.spec)
python-alembic.spec | 80 +----------------------------------------------------
1 file changed, 1 insertion(+), 79 deletions(-)
---
diff --git a/python-alembic.spec b/python-alembic.spec
index 3a04277..024a257 100644
--- a/python-alembic.spec
+++ b/python-alembic.spec
@@ -2,15 +2,13 @@
# Conditional build:
%bcond_without doc # Sphinx documentation
%bcond_without tests # unit tests
-%bcond_without python2 # CPython 2.x module
-%bcond_without python3 # CPython 3.x module
Summary: Database migration tool for SQLAlchemy
Summary(pl.UTF-8): Narzędzie do migracji baz danych dla SQLAlchemy
Name: python-alembic
# keep 1.6.x here for python2 support
Version: 1.6.5
-Release: 3
+Release: 4
License: MIT
Group: Libraries/Python
#Source0Download: https://pypi.org/simple/alembic/
@@ -18,7 +16,6 @@ Source0: https://files.pythonhosted.org/packages/source/a/alembic/alembic-%{vers
# Source0-md5: 23bbfcafb44739dc678556e6d08807ed
Patch0: %{name}-sqlalchemy.patch
URL: https://pypi.org/project/alembic/
-%if %{with python2}
BuildRequires: python-modules >= 1:2.7
BuildRequires: python-setuptools
%if %{with tests}
@@ -31,20 +28,6 @@ BuildRequires: python-mock
BuildRequires: python-pytest >= 4.6
BuildRequires: python-sqlalchemy >= 1.3.0
%endif
-%endif
-%if %{with python3}
-BuildRequires: python3-modules >= 1:3.6
-BuildRequires: python3-setuptools
-%if %{with tests}
-BuildRequires: python3-Mako
-BuildRequires: python3-dateutil
-# tests with lowercase zone names and fake zone name rely on dateutil zoneinfo implementation
-BuildRequires: python3-dateutil-zoneinfo
-BuildRequires: python3-editor >= 0.3
-BuildRequires: python3-pytest >= 4.6
-BuildRequires: python3-sqlalchemy >= 1.3.0
-%endif
-%endif
BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 1.714
# when using /usr/bin/env or other in-place substitutions
@@ -80,35 +63,6 @@ SQLAlchemy. Narzędzie oferuje następującą funkcjonalność:
sekwencję kroków do "cofnięcia" bazy;
- pozwala na wykonywanie skryptów w pewien sekwencyjny sposób.
-%package -n python3-alembic
-Summary: Database migration tool for SQLAlchemy
-Summary(pl.UTF-8): Narzędzie do migracji baz danych dla SQLAlchemy
-Group: Libraries/Python
-Requires: python3-modules >= 1:3.2
-
-%description -n python3-alembic
-Alembic is a database migrations tool written by the author of
-SQLAlchemy. A migrations tool offers the following functionality:
-- Can emit ALTER statements to a database in order to change the
- structure of tables and other constructs.
-- Provides a system whereby "migration scripts" may be constructed;
- each script indicates a particular series of steps that can
- "upgrade" a target database to a new version, and optionally a
- series of steps that can "downgrade" similarly, doing the same steps
- in reverse.
-- Allows the scripts to execute in some sequential manner.
-
-%description -n python3-alembic -l pl.UTF-8
-Alembic to narzędzie do migracji baz danych, napisane przez autora
-SQLAlchemy. Narzędzie oferuje następującą funkcjonalność:
-- może tworzyć instrukcje ALTER do zmiany struktury tabel i innych
- elementów bazy danych;
-- zapewnia system tworzenia "skryptów migracyjnych", gdzie każdy
- skrypt określa konkretną sekwencję kroków do "uaktualnienia"
- docelowej bazy do nowej wersji oraz opcjonalnie analogiczną
- sekwencję kroków do "cofnięcia" bazy;
-- pozwala na wykonywanie skryptów w pewien sekwencyjny sposób.
-
%package apidocs
Summary: API documentation for Python alembic module
Summary(pl.UTF-8): Dokumentacja API modułu Pythona alembic
@@ -125,23 +79,12 @@ Dokumentacja API modułu Pythona alembic.
%patch -P 0 -p1
%build
-%if %{with python2}
%py_build
%if %{with tests}
PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
%{__python} -m pytest tests
%endif
-%endif
-
-%if %{with python3}
-%py3_build
-
-%if %{with tests}
-PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
-%{__python3} -m pytest tests
-%endif
-%endif
# sdist contains prebuilt doc, no need to regenerate currently
%if 0 && %{with doc}
@@ -152,42 +95,21 @@ PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
%install
rm -rf $RPM_BUILD_ROOT
-%if %{with python2}
%py_install
%py_postclean
%{__mv} $RPM_BUILD_ROOT%{_bindir}/alembic{,-2}
-%endif
-
-%if %{with python3}
-%py3_install
-
-%{__mv} $RPM_BUILD_ROOT%{_bindir}/alembic{,-3}
-ln -sf alembic-3 $RPM_BUILD_ROOT%{_bindir}/alembic
-%endif
%clean
rm -rf $RPM_BUILD_ROOT
-%if %{with python2}
%files
%defattr(644,root,root,755)
%doc CHANGES LICENSE README.rst
%attr(755,root,root) %{_bindir}/alembic-2
%{py_sitescriptdir}/alembic
%{py_sitescriptdir}/alembic-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-alembic
-%defattr(644,root,root,755)
-%doc CHANGES LICENSE README.rst
-%attr(755,root,root) %{_bindir}/alembic
-%attr(755,root,root) %{_bindir}/alembic-3
-%{py3_sitescriptdir}/alembic
-%{py3_sitescriptdir}/alembic-%{version}-py*.egg-info
-%endif
%if %{with doc}
%files apidocs
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-alembic.git/commitdiff/f22a856671467548028a75b35cd69de9a6a1e760
More information about the pld-cvs-commit
mailing list