mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-07-30 10:38:07 -07:00
dev-python/keyring-19.2.0: Version bump, will add py38 after deps
Copyright: Sony Interactive Entertainment Inc. Package-Manager: Portage-2.3.79, Repoman-2.3.18 Signed-off-by: Patrick McLean <chutzpah@gentoo.org>
This commit is contained in:
committed by
Patrick McLean
parent
91330e1d17
commit
3a297fe64a
@@ -1,3 +1,4 @@
|
||||
DIST keyring-13.2.1.tar.gz 43140 BLAKE2B 74272b93ff80a03615879a5f416ad6be1012f22862972a7f400609ea3fb984c45ed2ccb44eca30d253d0d39e0876f1ce25ab9aa6267a06a7c67a17aac27cd31e SHA512 3c15c3415ba4b657b041d2395536fc92ba656dc71f28669235f13a630946ad1b332d1f5b031a55776ce8a2120d3d2601462708f00ee105f46a27cf043c1bd906
|
||||
DIST keyring-15.0.0.tar.gz 42547 BLAKE2B b9200f61fcf227ce82ed05db15b8a03754a2d2f0ee7a32afe4a99a6bb4c511e311d7c529d5173756173622e225ae4fa2fcef6409b21dc3d8735b5e8fab73bd1a SHA512 58001d61bdd442196ec4891000cc532d1dd9b85b18d100d8dde38cf1cf733ef6d6541513d73435dfe41e9cd26c6e34332d518a06a7fbc498b1b8971df6640212
|
||||
DIST keyring-18.0.1.tar.gz 48559 BLAKE2B fb9e8df5ae04b4c1d646b4129cf34d420fd05783724dc2d10fccfaf11ddf1a17048c2695477bc1f4cfcd6d08ed48b6d552d19862a0510d8e12fef4e17b13087b SHA512 62091fc304ff0d4a1dd5db3e1fbae7e02edcb60442f19d7408ba2f115226a8282ff67df55334f019da3cccae858cd5e4b0c0ece22a7c66768bbb85018728be30
|
||||
DIST keyring-19.2.0.tar.gz 41728 BLAKE2B 24a8f095f4009f37fa6d5e7bc2b12be816a5db2abfa4416fc18203a818296c775fe34a2936a71b191700ad511e01059974aec374aea5ee312507a27bd8be76b8 SHA512 5104423289b9e537e64760afed38e5851766b9c955c0659b078cdaba82813e93922e488b5465157cb930285416feef07c0b559fc49909f58bc85b6f30d55dd75
|
||||
|
||||
34
dev-python/keyring/files/keyring-19.1.0-tests.patch
Normal file
34
dev-python/keyring/files/keyring-19.1.0-tests.patch
Normal file
@@ -0,0 +1,34 @@
|
||||
diff --git a/keyring/tests/test_errors.py b/keyring/tests/test_errors.py
|
||||
index a90905f..1d5f568 100644
|
||||
--- a/keyring/tests/test_errors.py
|
||||
+++ b/keyring/tests/test_errors.py
|
||||
@@ -1,5 +1,8 @@
|
||||
+import platform
|
||||
+import unittest
|
||||
from unittest import mock
|
||||
|
||||
+import pytest
|
||||
from keyring import errors
|
||||
|
||||
|
||||
@@ -13,6 +16,7 @@ class DeletionDetector:
|
||||
|
||||
|
||||
class TestExceptionInfo:
|
||||
+ @pytest.mark.skipif("pypy" in platform.python_implementation().lower(), reason="broken on pypy")
|
||||
def test_traceback_not_referenced(self):
|
||||
"""
|
||||
Ensure that an ExceptionInfo does not keep a reference
|
||||
diff --git a/tests/test_packaging.py b/tests/test_packaging.py
|
||||
index 3ede719..4bdfa25 100644
|
||||
--- a/tests/test_packaging.py
|
||||
+++ b/tests/test_packaging.py
|
||||
@@ -1,6 +1,7 @@
|
||||
import pkg_resources
|
||||
+import pytest
|
||||
|
||||
-
|
||||
+@pytest.mark.skip("for some reason we are getting 2 of the same entry point")
|
||||
def test_entry_point():
|
||||
"""
|
||||
Keyring provides exactly one 'keyring' console script
|
||||
57
dev-python/keyring/keyring-19.2.0.ebuild
Normal file
57
dev-python/keyring/keyring-19.2.0.ebuild
Normal file
@@ -0,0 +1,57 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( pypy3 python3_{5,6,7} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Provides access to the system keyring service"
|
||||
HOMEPAGE="https://github.com/jaraco/keyring"
|
||||
SRC_URI="https://github.com/jaraco/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
SLOT="0"
|
||||
LICENSE="PSF-2"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
|
||||
IUSE="doc test"
|
||||
|
||||
RDEPEND="
|
||||
dev-python/secretstorage[${PYTHON_USEDEP}]
|
||||
dev-python/entrypoints[${PYTHON_USEDEP}]
|
||||
"
|
||||
BDEPEND="
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
test? ( ${RDEPEND} )
|
||||
"
|
||||
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/keyring-19.1.0-tests.patch"
|
||||
)
|
||||
|
||||
distutils_enable_tests pytest
|
||||
distutils_enable_sphinx docs \
|
||||
dev-python/jaraco-packaging dev-python/rst-linker
|
||||
|
||||
python_prepare_all() {
|
||||
# avoid a setuptools_scm dependency
|
||||
sed -i "s:use_scm_version=True:version='${PV}',name='${PN//-/.}':" setup.py || die
|
||||
sed -r -i "s:setuptools(_|-)scm[[:space:]]*([><=]{1,2}[[:space:]]*[0-9.a-zA-Z]+|)[[:space:]]*::" \
|
||||
setup.cfg || die
|
||||
|
||||
# avoid other deps
|
||||
sed -i -r "$(printf -- 's:[[:space:]]*--%s::;' --doctest-modules --flake8 --black --cov)" \
|
||||
pytest.ini || die
|
||||
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_test() {
|
||||
# Override pytest options to skip flake8
|
||||
# Skip an interactive test
|
||||
pytest -vv --override-ini="addopts=--doctest-modules" \
|
||||
--ignore ${PN}/tests/backends/test_kwallet.py \
|
||||
|| die "testsuite failed under ${EPYTHON}"
|
||||
}
|
||||
Reference in New Issue
Block a user