dev-python/python-jsonrpc-server: Version bump 0.3.4
authorAndrew Ammerlaan <andrewammerlaan@riseup.net>
Sun, 26 Jan 2020 18:54:51 +0000 (19:54 +0100)
committerMatt Turner <mattst88@gentoo.org>
Sat, 15 Feb 2020 20:37:59 +0000 (12:37 -0800)
Bug fix, github release tarball does not contain
correct version info

Bug: https://bugs.gentoo.org/706420
Package-Manager: Portage-2.3.85, Repoman-2.3.20
Signed-off-by: Andrew Ammerlaan <andrewammerlaan@riseup.net>
Signed-off-by: Matt Turner <mattst88@gentoo.org>
dev-python/python-jsonrpc-server/Manifest
dev-python/python-jsonrpc-server/files/python-jsonrpc-server-0.3.4-remove-pytest-cov-dep.patch [new file with mode: 0644]
dev-python/python-jsonrpc-server/python-jsonrpc-server-0.3.4.ebuild [moved from dev-python/python-jsonrpc-server/python-jsonrpc-server-0.3.2.ebuild with 52% similarity]

index 97268a633401391a417194dd677bbe81e660162f..31efd0bc424085cdca0a50eed200467869a332c5 100644 (file)
@@ -1 +1 @@
-DIST python-jsonrpc-server-0.3.2.tar.gz 32493 BLAKE2B b1e89c798e247b3b039645b99ca25898fa846676c646e58d8fabfdbd772e3efa1ad895dfa7b31931f1e7d91252c4327a324b929cd861b16bc2be32a64e064db1 SHA512 1d29858b8f6850a017c8e7e94196a972c985e72e9f57956afa2964feb109d9b5cfa33d534d279d817bd5a1454dfcde7d32cd13149c9a53fe1f9e6e0a5899f15c
+DIST python-jsonrpc-server-0.3.4.tar.gz 26123 BLAKE2B 5d3c7b910cc91999f7f03a70a1f954decd11801b4dad39cb940625a3456fb69a8e6a146c128d29d347f1513a9f27208f1f39208d3449443be8278e0d175e6598 SHA512 a00af318baf89fe38ececc2080d7b3af8c2476280f9eb89670e5b0d3ceac046573be964bc2882c1b1894edc8ab4cb5fd69366980abe17bb1df857181821bcbd0
diff --git a/dev-python/python-jsonrpc-server/files/python-jsonrpc-server-0.3.4-remove-pytest-cov-dep.patch b/dev-python/python-jsonrpc-server/files/python-jsonrpc-server-0.3.4-remove-pytest-cov-dep.patch
new file mode 100644 (file)
index 0000000..a81919e
--- /dev/null
@@ -0,0 +1,15 @@
+pytest-cov is a deprecated dep
+diff --git a/setup.cfg b/setup.cfg
+index 03b63df..165c746 100644
+--- a/setup.cfg
++++ b/setup.cfg
+@@ -13,9 +13,6 @@ exclude = test/plugins/.ropeproject,test/.ropeproject
+ [tool:pytest]
+ testpaths = test
+-addopts = 
+-      --cov-report html --cov-report term --junitxml=pytest.xml
+-      --cov pyls --cov test
+ [egg_info]
+ tag_build = 
similarity index 52%
rename from dev-python/python-jsonrpc-server/python-jsonrpc-server-0.3.2.ebuild
rename to dev-python/python-jsonrpc-server/python-jsonrpc-server-0.3.4.ebuild
index c3430e9a8277d93288d39311c75b2fea5c4a357a..8881d6a78bb46c9fafc2712dc2e924f46d40a32e 100644 (file)
@@ -9,23 +9,22 @@ inherit distutils-r1
 
 DESCRIPTION="A Python 2 and 3 asynchronous JSON RPC server"
 HOMEPAGE="https://github.com/palantir/python-jsonrpc-server"
-SRC_URI="https://github.com/palantir/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
 
 LICENSE="MIT"
 SLOT="0"
 KEYWORDS="~amd64 ~x86"
 
-IUSE="examples"
-
 BDEPEND="dev-python/versioneer[${PYTHON_USEDEP}]"
 
-RDEPEND="dev-python/future[${PYTHON_USEDEP}]
-       dev-python/ujson[${PYTHON_USEDEP}]"
+RDEPEND="dev-python/ujson[${PYTHON_USEDEP}]"
+
+DEPEND="test? (
+       dev-python/mock[${PYTHON_USEDEP}]
+       dev-python/pycodestyle[${PYTHON_USEDEP}]
+       dev-python/pyflakes[${PYTHON_USEDEP}]
+       dev-python/pylint[${PYTHON_USEDEP}] )"
+
+PATCHES=( "${FILESDIR}/${P}-remove-pytest-cov-dep.patch" )
 
-python_install_all() {
-       if use examples; then
-               insinto /usr/share/${PN}
-               doins -r examples
-       fi
-       distutils-r1_python_install_all
-}
+distutils_enable_tests pytest