# Copyright 2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

DISTUTILS_USE_PEP517=poetry
PYTHON_COMPAT=( python3_{9..11} )
inherit distutils-r1 pypi

DESCRIPTION="Library and command line tool for producing version strings"
HOMEPAGE="
	https://github.com/mtkennerly/dunamai
	https://pypi.org/project/dunamai/
"

LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"

RDEPEND="
	>=dev-python/packaging-20.9[${PYTHON_USEDEP}]
	$(python_gen_cond_dep '>=dev-python/importlib_metadata-1.6.0[${PYTHON_USEDEP}]' python3_{7,8})
"
BDEPEND="${RDEPEND}"

#TODO enable test
#distutils_enable_tests pytest