forked from pool/python-alembic
- Update to 1.15.2
* Fixed issue where the "modified_name" of :class:`.AlterColumnOp` would not
be considered when rendering op directives for autogenerate. While
autogenerate cannot detect changes in column name, this would nonetheless
impact approaches that made use of this attribute in rewriter recipes. Pull
request courtesy lenvk.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-alembic?expand=0&rev=172
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@@ -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
|
||||
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.osc
|
||||
3
alembic-1.13.1.tar.gz
Normal file
3
alembic-1.13.1.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:4932c8558bf68f2ee92b9bbcb8218671c627064d5b08939437af6d77dc05e595
|
||||
size 1213288
|
||||
3
alembic-1.13.2.tar.gz
Normal file
3
alembic-1.13.2.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:1ff0ae32975f4fd96028c39ed9bb3c867fe3af956bd7bb37343b54c9fe7445ef
|
||||
size 1206463
|
||||
BIN
alembic-1.13.3.tar.gz
LFS
Normal file
BIN
alembic-1.13.3.tar.gz
LFS
Normal file
Binary file not shown.
3
alembic-1.14.0.tar.gz
Normal file
3
alembic-1.14.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:b00892b53b3642d0b8dbedba234dbf1924b69be83a9a769d5a624b01094e304b
|
||||
size 1916172
|
||||
3
alembic-1.14.1.tar.gz
Normal file
3
alembic-1.14.1.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:496e888245a53adf1498fcab31713a469c65836f8de76e01399aa1c3e90dd213
|
||||
size 1918219
|
||||
3
alembic-1.15.1.tar.gz
Normal file
3
alembic-1.15.1.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:e1a1c738577bca1f27e68728c910cd389b9a92152ff91d902da649c192e30c49
|
||||
size 1924789
|
||||
BIN
alembic-1.15.2.tar.gz
LFS
Normal file
BIN
alembic-1.15.2.tar.gz
LFS
Normal file
Binary file not shown.
65
pytest8.patch
Normal file
65
pytest8.patch
Normal file
@@ -0,0 +1,65 @@
|
||||
From 6bdb9043868d4bd04ebe3fe8a4991735d5f87ed3 Mon Sep 17 00:00:00 2001
|
||||
From: Mike Bayer <mike_mp@zzzcomputing.com>
|
||||
Date: Sun, 3 Mar 2024 23:11:50 -0500
|
||||
Subject: [PATCH] use SQLAlchemy's xdist methods
|
||||
|
||||
Fixes to support pytest 8.1 for the test suite.
|
||||
|
||||
the use of teardown() was based on pytest's nose
|
||||
compat, which is removed. their xdist style tests use the name
|
||||
"setup_method()" and "teardown_method()" now.
|
||||
|
||||
We have SQLAlchemy's pytestplugin in use which uses pytest fixtures
|
||||
to invoke our own xdist style setUp and tearDown methods, which we
|
||||
are already using here, so use those for this one test.
|
||||
|
||||
Fixes: #1435
|
||||
Change-Id: I4c49e81fca6bfa957594714009531fe12691ace5
|
||||
---
|
||||
docs/build/unreleased/1435.rst | 5 +++++
|
||||
tests/test_command.py | 15 +++++++--------
|
||||
tox.ini | 2 +-
|
||||
3 files changed, 13 insertions(+), 9 deletions(-)
|
||||
create mode 100644 docs/build/unreleased/1435.rst
|
||||
|
||||
diff --git a/tests/test_command.py b/tests/test_command.py
|
||||
index c665f955..04a624ad 100644
|
||||
--- a/tests/test_command.py
|
||||
+++ b/tests/test_command.py
|
||||
@@ -64,7 +64,7 @@ def setup_class(cls):
|
||||
def teardown_class(cls):
|
||||
clear_staging_env()
|
||||
|
||||
- def teardown(self):
|
||||
+ def tearDown(self):
|
||||
self.cfg.set_main_option("revision_environment", "false")
|
||||
|
||||
@classmethod
|
||||
@@ -206,13 +206,12 @@ def test_history_indicate_current(self):
|
||||
|
||||
|
||||
class RevisionEnvironmentTest(_BufMixin, TestBase):
|
||||
- @classmethod
|
||||
- def setup(cls):
|
||||
- cls.env = staging_env()
|
||||
- cls.cfg = _sqlite_testing_config()
|
||||
- cls._setup_env_file()
|
||||
+ def setUp(self):
|
||||
+ self.env = staging_env()
|
||||
+ self.cfg = _sqlite_testing_config()
|
||||
+ self._setup_env_file()
|
||||
|
||||
- def teardown(self):
|
||||
+ def tearDown(self):
|
||||
self.cfg.set_main_option("revision_environment", "false")
|
||||
clear_staging_env()
|
||||
|
||||
@@ -1144,7 +1143,7 @@ def setup_class(cls):
|
||||
cls.cfg = _sqlite_testing_config()
|
||||
cls.a, cls.b, cls.c = three_rev_fixture(cls.cfg)
|
||||
|
||||
- def teardown(self):
|
||||
+ def tearDown(self):
|
||||
os.environ.pop("ALEMBIC_CONFIG", None)
|
||||
|
||||
@classmethod
|
||||
2228
python-alembic.changes
Normal file
2228
python-alembic.changes
Normal file
File diff suppressed because it is too large
Load Diff
93
python-alembic.spec
Normal file
93
python-alembic.spec
Normal file
@@ -0,0 +1,93 @@
|
||||
#
|
||||
# spec file for package python-alembic
|
||||
#
|
||||
# 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
|
||||
# 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/
|
||||
#
|
||||
|
||||
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-alembic
|
||||
Version: 1.15.2
|
||||
Release: 0
|
||||
Summary: A database migration tool for SQLAlchemy
|
||||
License: MIT
|
||||
URL: https://github.com/sqlalchemy/alembic
|
||||
Source0: https://files.pythonhosted.org/packages/source/a/alembic/alembic-%{version}.tar.gz
|
||||
BuildRequires: %{python_module Mako}
|
||||
BuildRequires: %{python_module SQLAlchemy >= 2.0.0}
|
||||
BuildRequires: %{python_module backports.zoneinfo if %python-base < 3.9}
|
||||
BuildRequires: %{python_module importlib-metadata if %python-base < 3.9}
|
||||
BuildRequires: %{python_module importlib-resources if %python-base < 3.9}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module pytest-xdist}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module pytzdata}
|
||||
BuildRequires: %{python_module typing-extensions >= 4}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: %{pythons}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-Mako
|
||||
Requires: python-SQLAlchemy >= 2.0.0
|
||||
Requires: python-typing-extensions >= 4
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
BuildArch: noarch
|
||||
%if 0%{?python_version_nodots} < 39
|
||||
Requires: python-importlib-metadata
|
||||
Requires: python-importlib-resources
|
||||
%endif
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
Alembic is a new database migrations tool, written by the author
|
||||
of SQLAlchemy <http://www.sqlalchemy.org>. 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.
|
||||
|
||||
%prep
|
||||
%setup -q -n alembic-%{version}
|
||||
|
||||
%build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%pyproject_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
%python_clone -a %{buildroot}%{_bindir}/alembic
|
||||
|
||||
%check
|
||||
%pytest -n auto
|
||||
|
||||
%post
|
||||
%python_install_alternative alembic
|
||||
|
||||
%postun
|
||||
%python_uninstall_alternative alembic
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE
|
||||
%doc CHANGES README.rst
|
||||
%python_alternative %{_bindir}/alembic
|
||||
%{python_sitelib}/alembic
|
||||
%{python_sitelib}/alembic-%{version}*-info
|
||||
|
||||
%changelog
|
||||
Reference in New Issue
Block a user