Files
guru/dev-util/bump-my-version/bump-my-version-1.2.6.ebuild
Anna (cybertailor) Vyalkova d675bf0c27 dev-util/bump-my-version: add 1.2.6, drop 1.2.1
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
2026-01-03 19:28:33 +05:00

65 lines
1.4 KiB
Bash

# Copyright 2023-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=hatchling
PYTHON_COMPAT=( python3_{12..13} )
inherit click-app distutils-r1 pypi
DESCRIPTION="Version bump your Python project"
HOMEPAGE="
https://pypi.org/project/bump-my-version/
https://callowayproject.github.io/bump-my-version/
"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
RDEPEND="
dev-python/click[${PYTHON_USEDEP}]
>=dev-python/httpx-0.28.1[${PYTHON_USEDEP}]
>=dev-python/pydantic-2.0[${PYTHON_USEDEP}]
dev-python/pydantic-settings[${PYTHON_USEDEP}]
dev-python/questionary[${PYTHON_USEDEP}]
dev-python/rich[${PYTHON_USEDEP}]
dev-python/rich-click[${PYTHON_USEDEP}]
dev-python/tomlkit[${PYTHON_USEDEP}]
>=dev-python/wcmatch-8.5.1[${PYTHON_USEDEP}]
"
BDEPEND="
test? (
dev-vcs/git
dev-vcs/mercurial
dev-python/freezegun[${PYTHON_USEDEP}]
)
"
DOCS=( {CHANGELOG,CODE_OF_CONDUCT,CONTRIBUTING,README}.md )
EPYTEST_PLUGINS=(
pytest-localserver
pytest-mock
)
EPYTEST_DESELECT=(
tests/test_cli/test_bump.py::test_detects_bad_or_missing_version_component
)
distutils_enable_tests pytest
click-app_enable_completions bump-my-version
python_test() {
epytest -o "addopts="
}
src_test() {
local -x TZ="UTC"
git config --global user.email "you@example.com" || die
git config --global user.name "Your Name" || die
distutils-r1_src_test
}