From fe510230eee48dcffccb1f5db8c8fc5f80c4a587 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Sat, 10 Jan 2026 08:18:10 +0100 Subject: [PATCH] dev-python/alembic: Bump to 1.18.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- dev-python/alembic/Manifest | 1 + dev-python/alembic/alembic-1.18.0.ebuild | 57 ++++++++++++++++++++++++ 2 files changed, 58 insertions(+) create mode 100644 dev-python/alembic/alembic-1.18.0.ebuild diff --git a/dev-python/alembic/Manifest b/dev-python/alembic/Manifest index 1f837ddec46c7..f7741a993c678 100644 --- a/dev-python/alembic/Manifest +++ b/dev-python/alembic/Manifest @@ -1 +1,2 @@ DIST alembic-1.17.2.tar.gz 1988064 BLAKE2B 7ad3212322d900b464de8fb7c2fd341dacbb73698fbc471d99f353ebca0da98035c7032a550b7c78dcbdfb85058d456791602a05ac1caa3f34b201e319b8d9a2 SHA512 39ac83508b505fb81c26afdbe28edc3b9aeffd536d63f0ba8e8015fde4a815b899d269417a18aa4325a08a97cb74b6c52057960ecec6839fe3dc070a6752b9c5 +DIST alembic-1.18.0.tar.gz 2043788 BLAKE2B 1e32e82be3d148b437d2648368e1d4f918a50201516939f1c6d3a2d9f283b6df1e331c43661c4783ba15b9acd11684b075b869af138600a247e3ad49783a4f46 SHA512 77f9d9e3a1c7179e655176ffb630e8f6c90fc646e6d74172f52e41858ba7ca150eb088e54a57fbe08bcec9109ed61e3bfe10b017ecc42cde9a9adbd82c273d45 diff --git a/dev-python/alembic/alembic-1.18.0.ebuild b/dev-python/alembic/alembic-1.18.0.ebuild new file mode 100644 index 0000000000000..564476ad57c0a --- /dev/null +++ b/dev-python/alembic/alembic-1.18.0.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( pypy3_11 python3_{11..14} ) + +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.4.0[${PYTHON_USEDEP}] + dev-python/mako[${PYTHON_USEDEP}] + >=dev-python/typing-extensions-4.12[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + sys-libs/timezone-data + ) +" + +EPYTEST_PLUGINS=() +EPYTEST_XDIST=1 +distutils_enable_tests pytest + +python_test() { + local EPYTEST_DESELECT=() + + if ! has_version "dev-python/black[${PYTHON_USEDEP}]"; then + EPYTEST_DESELECT+=( + tests/test_post_write.py::RunHookTest::test_module + tests/test_post_write.py::RunHookTest::test_module_black_with_cwd + tests/test_post_write.py::RunHookTest::test_module_filename_interpolation + tests/test_post_write.py::RunHookTest::test_module_path_in_config + ) + fi + + # 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 +}