summaryrefslogtreecommitdiff
path: root/dev-util/bump-my-version/bump-my-version-1.2.6.ebuild
blob: d276b8e511b2d8daf139c1ef7215a9c641eb0eab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# 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_{13..14} )
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
}