commit:     2d0b34470db346d7c2927f774cac88f3afd763a2
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Jul 13 07:57:01 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Jul 13 08:00:59 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2d0b3447

dev-python/alembic: Remove old

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/alembic/Manifest                        |  1 -
 dev-python/alembic/alembic-1.13.1.ebuild           | 52 -----------------
 .../alembic/files/alembic-1.13.1-pytest-8.patch    | 68 ----------------------
 3 files changed, 121 deletions(-)

diff --git a/dev-python/alembic/Manifest b/dev-python/alembic/Manifest
index 150273b584d7..ee45ec812186 100644
--- a/dev-python/alembic/Manifest
+++ b/dev-python/alembic/Manifest
@@ -1,2 +1 @@
-DIST alembic-1.13.1.tar.gz 1213288 BLAKE2B 
12c01f60a564c3021b3d2ae61f220822a0ca644af5097b72a826f48d04225c441f580204680674410e6e2570b5c7ee24053024863162d7d43bc423a86cddcea6
 SHA512 
2a5826461bec22c2efc244dd8394d34d39ed6e3511a32e8e460057ab34f9e559d28dda4ea7e34ccd30628e889a3cb37cb156596e37dba748c12a0195d78aa678
 DIST alembic-1.13.2.tar.gz 1206463 BLAKE2B 
edff3a244fa37556cd656e60940d94e7df75b6c67aa4199b673851b5b06e84dbf51e53f2ac9781465aa923c0019fcd33a9c3b4da90d64f583956e390ca1f5fa7
 SHA512 
c4952123ba00403bb030606c736dab8d5494b01662d02914fb0d10d0c1d99b27a97cc4a800cdfa32d53870031c46e351f97815e337c71f3a0a824b6403bd75cf

diff --git a/dev-python/alembic/alembic-1.13.1.ebuild 
b/dev-python/alembic/alembic-1.13.1.ebuild
deleted file mode 100644
index 07917423bb4c..000000000000
--- a/dev-python/alembic/alembic-1.13.1.ebuild
+++ /dev/null
@@ -1,52 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( pypy3 python3_{10..13} )
-
-inherit distutils-r1 pypi
-
-DESCRIPTION="Database migrations tool, written by the author of SQLAlchemy"
-HOMEPAGE="
-       https://github.com/sqlalchemy/alembic/
-       https://pypi.org/project/alembic/
-"
-
-LICENSE="MIT"
-SLOT="0"
-KEYWORDS="amd64 arm64 ~riscv x86"
-IUSE="doc"
-
-RDEPEND="
-       >=dev-python/sqlalchemy-1.1.0[${PYTHON_USEDEP}]
-       dev-python/mako[${PYTHON_USEDEP}]
-       >=dev-python/python-editor-0.3[${PYTHON_USEDEP}]
-       >=dev-python/typing-extensions-4[${PYTHON_USEDEP}]
-"
-BDEPEND="
-       test? (
-               sys-libs/timezone-data
-       )
-"
-
-EPYTEST_XDIST=1
-distutils_enable_tests pytest
-
-PATCHES=(
-       # 
https://github.com/sqlalchemy/alembic/commit/6bdb9043868d4bd04ebe3fe8a4991735d5f87ed3
-       "${FILESDIR}/${P}-pytest-8.patch"
-)
-
-python_test() {
-       local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
-       # setup.cfg contains -p no:warnings in addopts which triggers
-       # datetime.utcfromtimestamp() deprecation warning as an error in py3.12
-       epytest -o addopts=
-}
-
-python_install_all() {
-       use doc && local HTML_DOCS=( docs/. )
-       distutils-r1_python_install_all
-}

diff --git a/dev-python/alembic/files/alembic-1.13.1-pytest-8.patch 
b/dev-python/alembic/files/alembic-1.13.1-pytest-8.patch
deleted file mode 100644
index a681645e02ec..000000000000
--- a/dev-python/alembic/files/alembic-1.13.1-pytest-8.patch
+++ /dev/null
@@ -1,68 +0,0 @@
-From 6bdb9043868d4bd04ebe3fe8a4991735d5f87ed3 Mon Sep 17 00:00:00 2001
-From: Mike Bayer <[email protected]>
-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 c665f95..04a624a 100644
---- a/tests/test_command.py
-+++ b/tests/test_command.py
-@@ -64,7 +64,7 @@ class HistoryTest(_BufMixin, TestBase):
-     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 @@ finally:
- 
- 
- 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 @@ class CommandLineTest(TestBase):
-         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
--- 
-2.44.0
-

Reply via email to