Install this version:
emerge -a =dev-python/twine-7.0.0
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =dev-python/twine-7.0.0
Or alternatively:
emerge --autounmask-write -a =dev-python/twine-7.0.0
| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 7.0.0 | 8 | ~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 | 0 |
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{12..14} )
inherit distutils-r1
DESCRIPTION="Collection of utilities for publishing packages on PyPI"
HOMEPAGE="
https://twine.readthedocs.io/
https://github.com/pypa/twine/
https://pypi.org/project/twine/
"
SRC_URI="
https://github.com/pypa/twine/archive/${PV}.tar.gz
-> ${P}.gh.tar.gz
"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
RDEPEND="
>=dev-python/colorama-0.4.3[${PYTHON_USEDEP}]
dev-python/id[${PYTHON_USEDEP}]
>=dev-python/keyring-21.2.0[${PYTHON_USEDEP}]
>=dev-python/packaging-26.1[${PYTHON_USEDEP}]
>=dev-python/readme-renderer-35.0[${PYTHON_USEDEP}]
>=dev-python/requests-2.20.0[${PYTHON_USEDEP}]
>=dev-python/requests-toolbelt-0.8.0[${PYTHON_USEDEP}]
>=dev-python/rfc3986-1.4.0[${PYTHON_USEDEP}]
>=dev-python/rich-14.3.3[${PYTHON_USEDEP}]
>=dev-python/urllib3-1.26.0[${PYTHON_USEDEP}]
"
BDEPEND="
dev-python/setuptools-scm[${PYTHON_USEDEP}]
test? (
dev-python/build[${PYTHON_USEDEP}]
dev-python/jaraco-envs[${PYTHON_USEDEP}]
dev-python/jaraco-functools[${PYTHON_USEDEP}]
dev-python/munch[${PYTHON_USEDEP}]
dev-python/portend[${PYTHON_USEDEP}]
dev-python/pretend[${PYTHON_USEDEP}]
dev-python/pypiserver[${PYTHON_USEDEP}]
)
"
EPYTEST_PLUGINS=()
distutils_enable_tests pytest
python_prepare_all() {
distutils-r1_python_prepare_all
# pytest-socket dep relevant only to test_integration, and upstream
# disables it anyway
sed -i -e '/--disable-socket/d' pytest.ini || die
export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
}
python_test() {
local EPYTEST_IGNORE=(
# Internet
tests/test_integration.py
)
local EPYTEST_DESELECT=(
# Avoid needing heavy virtualx
tests/test_auth.py::test_warns_for_empty_password
)
local -x COLUMNS=80
epytest
}
>=dev-python/colorama-0.4.3[] dev-python/id[] >=dev-python/keyring-21.2.0[] >=dev-python/packaging-26.1[] >=dev-python/readme-renderer-35.0[] >=dev-python/requests-2.20.0[] >=dev-python/requests-toolbelt-0.8.0[] >=dev-python/rfc3986-1.4.0[] >=dev-python/rich-14.3.3[] >=dev-python/urllib3-1.26.0[]
dev-python/setuptools-scm[] test? ( dev-python/build[] dev-python/jaraco-envs[] dev-python/jaraco-functools[] dev-python/munch[] dev-python/portend[] dev-python/pretend[] dev-python/pypiserver[] )
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | twine-7.0.0.gh.tar.gz | 209937 bytes | https://github.com/pypa/twine/archive/7.0.0.tar.gz |