Compare commits
No commits in common. "c9-beta" and "c10s" have entirely different histories.
7
.build-0.7.6-1.fc23.log
Normal file
7
.build-0.7.6-1.fc23.log
Normal file
@ -0,0 +1,7 @@
|
||||
error: Failed build dependencies:
|
||||
help2man is needed by python-alembic-0.7.6-1.fc23.noarch
|
||||
python-mock is needed by python-alembic-0.7.6-1.fc23.noarch
|
||||
python3-mock is needed by python-alembic-0.7.6-1.fc23.noarch
|
||||
python3-sqlalchemy >= 0.7.4 is needed by python-alembic-0.7.6-1.fc23.noarch
|
||||
|
||||
|
1
.fmf/version
Normal file
1
.fmf/version
Normal file
@ -0,0 +1 @@
|
||||
1
|
54
.gitignore
vendored
54
.gitignore
vendored
@ -1 +1,53 @@
|
||||
SOURCES/alembic-1.7.5.tar.gz
|
||||
/alembic-0.3.4.tar.gz
|
||||
/alembic-0.4.2.tar.gz
|
||||
/alembic-0.5.0.tar.gz
|
||||
/alembic-0.6.2.tar.gz
|
||||
/alembic-0.6.3.tar.gz
|
||||
/alembic-0.6.5.tar.gz
|
||||
/alembic-0.6.6.tar.gz
|
||||
/alembic-0.7.4.tar.gz
|
||||
/alembic-0.7.6.tar.gz
|
||||
/alembic-0.8.2.tar.gz
|
||||
/alembic-0.8.3.tar.gz
|
||||
/alembic-0.8.5.tar.gz
|
||||
/alembic-0.8.6.tar.gz
|
||||
/alembic-0.8.7.tar.gz
|
||||
/alembic-0.8.8.tar.gz
|
||||
/alembic-0.8.9.tar.gz
|
||||
/alembic-0.8.10.tar.gz
|
||||
/alembic-0.9.0.tar.gz
|
||||
/alembic-0.9.1.tar.gz
|
||||
/alembic-0.9.7.tar.gz
|
||||
/alembic-1.0.0.tar.gz
|
||||
/alembic-1.0.7.tar.gz
|
||||
/alembic-1.0.8.tar.gz
|
||||
/alembic-1.0.10.tar.gz
|
||||
/alembic-1.0.11.tar.gz
|
||||
/alembic-1.1.0.tar.gz
|
||||
/alembic-1.2.1.tar.gz
|
||||
/alembic-1.3.1.tar.gz
|
||||
/alembic-1.4.0.tar.gz
|
||||
/alembic-1.4.2.tar.gz
|
||||
/alembic-1.4.3.tar.gz
|
||||
/alembic-1.5.0.tar.gz
|
||||
/alembic-1.5.3.tar.gz
|
||||
/alembic-1.5.5.tar.gz
|
||||
/alembic-1.5.8.tar.gz
|
||||
/alembic-1.6.0.tar.gz
|
||||
/alembic-1.6.3.tar.gz
|
||||
/alembic-1.6.5.tar.gz
|
||||
/alembic-1.7.1.tar.gz
|
||||
/alembic-1.7.3.tar.gz
|
||||
/alembic-1.7.4.tar.gz
|
||||
/alembic-1.7.5.tar.gz
|
||||
/alembic-1.7.7.tar.gz
|
||||
/alembic-1.8.1.tar.gz
|
||||
/alembic-1.9.3.tar.gz
|
||||
/alembic-1.10.4.tar.gz
|
||||
/alembic-1.11.1.tar.gz
|
||||
/alembic-1.11.2.tar.gz
|
||||
/alembic-1.11.3.tar.gz
|
||||
/alembic-1.12.0.tar.gz
|
||||
/alembic-1.12.1.tar.gz
|
||||
/alembic-1.13.0.tar.gz
|
||||
/alembic-1.13.1.tar.gz
|
||||
|
@ -1 +0,0 @@
|
||||
a105945f1e3181fc3b29ca1e302442646e9339ab SOURCES/alembic-1.7.5.tar.gz
|
@ -1,31 +0,0 @@
|
||||
From 1a4a106bf202fbd90371087260af2bbc0ef097c3 Mon Sep 17 00:00:00 2001
|
||||
From: Tomas Hrnciar <thrnciar@redhat.com>
|
||||
Date: Thu, 3 Jun 2021 15:20:04 +0200
|
||||
Subject: [PATCH] filter out DeprecationWarnings
|
||||
|
||||
---
|
||||
alembic/testing/warnings.py | 11 +++++++++++
|
||||
1 file changed, 11 insertions(+)
|
||||
|
||||
diff --git a/alembic/testing/warnings.py b/alembic/testing/warnings.py
|
||||
index d809dfe..ae8bcec 100644
|
||||
--- a/alembic/testing/warnings.py
|
||||
+++ b/alembic/testing/warnings.py
|
||||
@@ -30,3 +30,14 @@ def setup_filters():
|
||||
warnings.filterwarnings(
|
||||
"once", category=pytest.PytestDeprecationWarning
|
||||
)
|
||||
+ warnings.filterwarnings(
|
||||
+ "ignore",
|
||||
+ category=DeprecationWarning,
|
||||
+ message="SelectableGroups dict interface is deprecated. Use select.",
|
||||
+ )
|
||||
+ warnings.filterwarnings(
|
||||
+ "ignore",
|
||||
+ category=DeprecationWarning,
|
||||
+ message="The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives",
|
||||
+ )
|
||||
+
|
||||
--
|
||||
2.31.1
|
||||
|
@ -1,108 +1,37 @@
|
||||
%global modname alembic
|
||||
* Tue May 23 2023 Yaakov Selkowitz <yselkowi@redhat.com> - 1.10.4-2
|
||||
- Convert from tox to pytest, avoid xdist on RHEL
|
||||
|
||||
Name: python-alembic
|
||||
Version: 1.7.5
|
||||
Release: 3%{?dist}
|
||||
Summary: Database migration tool for SQLAlchemy
|
||||
* Tue May 09 2023 Frantisek Zatloukal <fzatlouk@redhat.com> - 1.10.4-1
|
||||
- Update to 1.10.4 (closes RHBZ#2170561 )
|
||||
|
||||
License: MIT
|
||||
URL: https://pypi.io/project/alembic
|
||||
Source0: %pypi_source alembic
|
||||
* Fri Feb 10 2023 Benjamin A. Beasley <code@musicinmybrain.net> - 1.9.3-1
|
||||
- Update to 1.9.3 (close RHBZ#2153880)
|
||||
|
||||
# Alembic fails with Python 3.10.0b2 due to DeprecationWarnings treated as an error.
|
||||
# Downstream report: https://bugzilla.redhat.com/show_bug.cgi?id=1958159
|
||||
Patch1: 0001-filter-out-DeprecationWarnings.patch
|
||||
* Sat Feb 04 2023 Benjamin A. Beasley <code@musicinmybrain.net> - 1.8.1-3
|
||||
- Drop conditionals for EPEL8 (which has setuptools too old for this version
|
||||
anyway)
|
||||
- Drop obsolete spec file macros, and use appropriate newer ones
|
||||
- Drop HTML documentation due to bundled/pre-minified JavaScript
|
||||
- Confirm License is SPDX MIT
|
||||
- Add metapackage for “tz” extra
|
||||
- Port to pyproject-rpm-macros
|
||||
- Stricter patterns to avoid listing man pages twice
|
||||
- Update description text from upstream
|
||||
|
||||
BuildArch: noarch
|
||||
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.1-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||
|
||||
BuildRequires: help2man
|
||||
* Mon Aug 29 2022 Kevin Fenzi <kevin@scrye.com> - 1.8.1-1
|
||||
- Update to 1.8.1. Fixes rhbz#2092126
|
||||
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-sqlalchemy >= 1.1
|
||||
BuildRequires: python3-mako
|
||||
BuildRequires: python3-setuptools
|
||||
BuildRequires: python3-dateutil
|
||||
BuildRequires: python3-pytest
|
||||
%if 0%{?rhel} == 8
|
||||
BuildRequires: python3-importlib-resources
|
||||
%endif
|
||||
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.7-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||
|
||||
* Tue Jun 14 2022 Python Maint <python-maint@redhat.com> - 1.7.7-2
|
||||
- Rebuilt for Python 3.11
|
||||
|
||||
%global _description\
|
||||
Alembic is a new 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.\
|
||||
\
|
||||
Documentation and status of Alembic is at http://readthedocs.org/docs/alembic/
|
||||
|
||||
%description %_description
|
||||
|
||||
|
||||
%package -n python3-alembic
|
||||
Summary: %summary
|
||||
|
||||
%if 0%{?rhel} == 8
|
||||
Requires: python3-importlib-resources
|
||||
%endif
|
||||
%{?python_provide:%python_provide python3-alembic}
|
||||
|
||||
|
||||
%description -n python3-alembic %_description
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n %{modname}-%{version}
|
||||
|
||||
|
||||
%build
|
||||
%py3_build
|
||||
|
||||
%{__mkdir_p} bin
|
||||
echo 'python3 -c "import alembic.config; alembic.config.main()" $*' > bin/alembic
|
||||
chmod 0755 bin/alembic
|
||||
help2man --version-string %{version} --no-info -s 1 bin/alembic > alembic.1
|
||||
|
||||
|
||||
%install
|
||||
|
||||
install -d -m 0755 %{buildroot}%{_mandir}/man1
|
||||
|
||||
%py3_install
|
||||
mv %{buildroot}/%{_bindir}/%{modname} %{buildroot}/%{_bindir}/%{modname}-3
|
||||
ln -s %{modname}-3 %{buildroot}/%{_bindir}/%{modname}-%{python3_version}
|
||||
install -m 0644 alembic.1 %{buildroot}%{_mandir}/man1/alembic-3.1
|
||||
ln -s alembic-3.1 %{buildroot}%{_mandir}/man1/alembic-%{python3_version}.1
|
||||
|
||||
ln -s %{modname}-%{python3_version} %{buildroot}/%{_bindir}/%{modname}
|
||||
ln -s alembic-%{python3_version}.1 %{buildroot}%{_mandir}/man1/alembic.1
|
||||
|
||||
|
||||
%check
|
||||
py.test-3
|
||||
|
||||
|
||||
%files -n python3-%{modname}
|
||||
%doc LICENSE README.rst CHANGES docs
|
||||
%{python3_sitelib}/%{modname}/
|
||||
%{python3_sitelib}/%{modname}-%{version}-*
|
||||
%{_bindir}/%{modname}
|
||||
%{_mandir}/man1/alembic.1*
|
||||
%{_bindir}/%{modname}-3
|
||||
%{_bindir}/%{modname}-%{python3_version}
|
||||
%{_mandir}/man1/alembic-3.1*
|
||||
%{_mandir}/man1/alembic-%{python3_version}.1*
|
||||
|
||||
|
||||
%changelog
|
||||
* Fri Jun 17 2022 Sergio Correia <scorreia@redhat.com> - 1.7.5-3
|
||||
- Add python-alembic to RHEL-9
|
||||
Resolves: rhbz#2084557
|
||||
* Sun May 29 2022 Kevin Fenzi <kevin@scrye.com> - 1.7.7-1
|
||||
- Update to 1.7.7. Fixes rhbz#2049145
|
||||
|
||||
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.5-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
5
ci.fmf
Normal file
5
ci.fmf
Normal file
@ -0,0 +1,5 @@
|
||||
/keylime-e2e:
|
||||
plan:
|
||||
import:
|
||||
url: https://github.com/RedHat-SP-Security/keylime-plans.git
|
||||
name: /generic/minimal-e2e
|
6
gating.yaml
Normal file
6
gating.yaml
Normal file
@ -0,0 +1,6 @@
|
||||
--- !Policy
|
||||
product_versions:
|
||||
- rhel-10
|
||||
decision_context: osci_compose_gate
|
||||
rules:
|
||||
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}
|
98
python-alembic.spec
Normal file
98
python-alembic.spec
Normal file
@ -0,0 +1,98 @@
|
||||
Name: python-alembic
|
||||
Version: 1.13.1
|
||||
Release: %autorelease
|
||||
Summary: Database migration tool for SQLAlchemy
|
||||
|
||||
# SPDX
|
||||
License: MIT
|
||||
URL: https://pypi.io/project/alembic
|
||||
Source0: %{pypi_source alembic}
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
BuildRequires: help2man
|
||||
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-pytest
|
||||
%if %{undefined rhel}
|
||||
BuildRequires: python3-pytest-xdist
|
||||
%endif
|
||||
|
||||
%global _description %{expand:
|
||||
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.
|
||||
|
||||
Documentation and status of Alembic is at https://alembic.sqlalchemy.org/}
|
||||
|
||||
%description %_description
|
||||
|
||||
|
||||
%package -n python3-alembic
|
||||
Summary: %summary
|
||||
|
||||
%description -n python3-alembic %_description
|
||||
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n alembic-%{version}
|
||||
# HTML documentation has bundled and pre-compiled/pre-minified JavaScript; see
|
||||
# https://docs.fedoraproject.org/en-US/packaging-guidelines/JavaScript/.
|
||||
rm -rvf docs/_static
|
||||
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_linters
|
||||
sed -r -i 's/^([[:blank:]]*(black|zimports))\b/# &/' tox.ini
|
||||
# Don't treat DeprecationWarnings as errros in tests
|
||||
sed -i '/"error", category=DeprecationWarning/d' alembic/testing/warnings.py
|
||||
|
||||
|
||||
%generate_buildrequires
|
||||
%pyproject_buildrequires
|
||||
|
||||
|
||||
%build
|
||||
%pyproject_wheel
|
||||
|
||||
mkdir -p bin
|
||||
echo '%{python3} -c "import alembic.config; alembic.config.main()" $*' > bin/alembic
|
||||
chmod 0755 bin/alembic
|
||||
help2man --version-string %{version} --no-info -s 1 bin/alembic > alembic.1
|
||||
|
||||
|
||||
%install
|
||||
install -d -m 0755 %{buildroot}%{_mandir}/man1
|
||||
|
||||
%pyproject_install
|
||||
%pyproject_save_files alembic
|
||||
mv %{buildroot}/%{_bindir}/alembic %{buildroot}/%{_bindir}/alembic-3
|
||||
ln -s alembic-3 %{buildroot}/%{_bindir}/alembic-%{python3_version}
|
||||
install -m 0644 alembic.1 %{buildroot}%{_mandir}/man1/alembic-3.1
|
||||
ln -s alembic-3.1 %{buildroot}%{_mandir}/man1/alembic-%{python3_version}.1
|
||||
|
||||
ln -s alembic-%{python3_version} %{buildroot}/%{_bindir}/alembic
|
||||
ln -s alembic-%{python3_version}.1 %{buildroot}%{_mandir}/man1/alembic.1
|
||||
|
||||
|
||||
%check
|
||||
%pytest %{?!rhel:-n auto}
|
||||
|
||||
|
||||
%files -n python3-alembic -f %{pyproject_files}
|
||||
# pyproject_files handles LICENSE; verify with rpm -qL -p ...
|
||||
%doc README.rst CHANGES
|
||||
%{_bindir}/alembic
|
||||
%{_mandir}/man1/alembic.1{,.*}
|
||||
%{_bindir}/alembic-3
|
||||
%{_mandir}/man1/alembic-3.1{,.*}
|
||||
%{_bindir}/alembic-%{python3_version}
|
||||
%{_mandir}/man1/alembic-%{python3_version}.1{,.*}
|
||||
|
||||
|
||||
%changelog
|
||||
%autochangelog
|
Loading…
Reference in New Issue
Block a user