* [gentoo-commits] repo/gentoo:master commit in: dev-python/wstools/files/, dev-python/wstools/
@ 2017-11-27 7:00 Tim Harder
0 siblings, 0 replies; 3+ messages in thread
From: Tim Harder @ 2017-11-27 7:00 UTC (permalink / raw
To: gentoo-commits
commit: 2ca17dda3c13e863fb5047753c4a58890ef65579
Author: Tim Harder <radhermit <AT> gentoo <DOT> org>
AuthorDate: Mon Nov 27 06:47:12 2017 +0000
Commit: Tim Harder <radhermit <AT> gentoo <DOT> org>
CommitDate: Mon Nov 27 07:00:21 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2ca17dda
dev-python/wstools: add py36 support, fix deps, and enable test phase
Also, re-add all the dropped keywords due to the previously added,
unnecessary deps.
dev-python/wstools/files/wstools-0.4.5-setup.patch | 46 ++++++++++++++++++++++
dev-python/wstools/wstools-0.4.5-r1.ebuild | 34 ++++++++++++++++
2 files changed, 80 insertions(+)
diff --git a/dev-python/wstools/files/wstools-0.4.5-setup.patch b/dev-python/wstools/files/wstools-0.4.5-setup.patch
new file mode 100644
index 00000000000..9de7c159c97
--- /dev/null
+++ b/dev-python/wstools/files/wstools-0.4.5-setup.patch
@@ -0,0 +1,46 @@
+Avoid pulling in a lot of unnecessary test and setup deps.
+
+--- wstools-0.4.5/setup.py
++++ wstools-0.4.5/setup.py
+@@ -9,7 +9,7 @@
+
+ from setuptools import setup, find_packages, Command
+ from setuptools.command.test import test as TestCommand
+-from pip.req import parse_requirements
++#from pip.req import parse_requirements
+
+ NAME = "wstools"
+ url = "https://github.com/pycontribs/wstools.git"
+@@ -55,13 +55,13 @@
+
+ def run_tests(self):
+ # before running tests we need to run autopep8
+- try:
+- subprocess.check_call(
+- "python -m autopep8 -r --in-place wstools/ tests/",
+- shell=True)
+- except subprocess.CalledProcessError:
+- logging.getLogger().warn('autopep8 is not installed so '
+- 'it will not be run')
++ # try:
++ # subprocess.check_call(
++ # "python -m autopep8 -r --in-place wstools/ tests/",
++ # shell=True)
++ # except subprocess.CalledProcessError:
++ # logging.getLogger().warn('autopep8 is not installed so '
++ # 'it will not be run')
+ # import here, cause outside the eggs aren't loaded
+ import pytest # noqa
+ errno = pytest.main(self.pytest_args)
+@@ -136,9 +136,9 @@
+ cmdclass={'test': PyTest, 'release': Release, 'prerelease': PreRelease},
+ packages=find_packages(exclude=['tests']),
+ include_package_data=True,
+- tests_require=get_requirements(base_path, 'requirements-dev.txt'),
++ #tests_require=get_requirements(base_path, 'requirements-dev.txt'),
+ setup_requires=['setuptools'],
+- install_requires=get_requirements(base_path, 'requirements.txt'),
++ install_requires=['six'],
+
+ license='BSD',
+ description="WSDL parsing services package for Web Services for Python. see" + url,
diff --git a/dev-python/wstools/wstools-0.4.5-r1.ebuild b/dev-python/wstools/wstools-0.4.5-r1.ebuild
new file mode 100644
index 00000000000..9a3d508f201
--- /dev/null
+++ b/dev-python/wstools/wstools-0.4.5-r1.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} pypy )
+PYTHON_REQ_USE="xml(+)"
+
+inherit distutils-r1
+
+DESCRIPTION="WSDL parsing services package for Web Services for Python"
+HOMEPAGE="https://github.com/kiorky/wstools https://pypi.python.org/pypi/wstools"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x64-macos ~x86-macos"
+IUSE="test"
+
+RDEPEND="
+ dev-python/six[${PYTHON_USEDEP}]
+"
+DEPEND="
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ test? (
+ ${RDEPEND}
+ dev-python/pytest[${PYTHON_USEDEP}]
+ )"
+
+PATCHES=( "${FILESDIR}"/${P}-setup.patch )
+
+python_test() {
+ esetup.py test
+}
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-python/wstools/files/, dev-python/wstools/
@ 2020-04-06 11:09 Sebastian Pipping
0 siblings, 0 replies; 3+ messages in thread
From: Sebastian Pipping @ 2020-04-06 11:09 UTC (permalink / raw
To: gentoo-commits
commit: f8540d198d53fdcab9f90dd632f122be30804286
Author: Sebastian Pipping <sping <AT> gentoo <DOT> org>
AuthorDate: Mon Apr 6 11:07:05 2020 +0000
Commit: Sebastian Pipping <sping <AT> gentoo <DOT> org>
CommitDate: Mon Apr 6 11:07:05 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f8540d19
dev-python/wstools: 0.4.8 + EAPI 7 + py38
Signed-off-by: Sebastian Pipping <sping <AT> gentoo.org>
Package-Manager: Portage-2.3.92, Repoman-2.3.20
dev-python/wstools/Manifest | 1 +
dev-python/wstools/files/wstools-0.4.8-setup.patch | 25 +++++++++++++++++
dev-python/wstools/metadata.xml | 2 +-
dev-python/wstools/wstools-0.4.8.ebuild | 31 ++++++++++++++++++++++
4 files changed, 58 insertions(+), 1 deletion(-)
diff --git a/dev-python/wstools/Manifest b/dev-python/wstools/Manifest
index 0c38a50cce8..57722218cc9 100644
--- a/dev-python/wstools/Manifest
+++ b/dev-python/wstools/Manifest
@@ -1 +1,2 @@
DIST wstools-0.4.5.tar.gz 201047 BLAKE2B 34c8d2c52ce9d1d67749ef6d0e1d5684a60718ef613688466d0992306f446b153d681b802fb142d1594bccaf37390495fb59e765f662e7550432d8866e038110 SHA512 24779bc2c2f3e32a515bc5690038e3f8e487fd45c1b7822d587e1bfd0bda660b837e3d5cbf8248459e06d7606e6d1c404dcee4de35b1f0d353bd5213e197d83a
+DIST wstools-0.4.8.tar.gz 199688 BLAKE2B 3b5137dd135ec8f0e6d69f94275d45367e609adb9763624fcabb899f84c6215c2df26485dcf32d44d6683bd97cd00e2d283cf9096b6f58414f2eacd9e8b93a4a SHA512 0f86e91a2de7333aaf5a58558a715edd6a0cf97150f6d0cae4ecf8e0702648a98e610aa6d3295444079bd616656efcb2823ae7c02c5c3ffcb4789548ac40cd0a
diff --git a/dev-python/wstools/files/wstools-0.4.8-setup.patch b/dev-python/wstools/files/wstools-0.4.8-setup.patch
new file mode 100644
index 00000000000..3d8c168037a
--- /dev/null
+++ b/dev-python/wstools/files/wstools-0.4.8-setup.patch
@@ -0,0 +1,25 @@
+From eb57ef5ad6abeaf8d9daf4914f95bcd86670340a Mon Sep 17 00:00:00 2001
+From: Sebastian Pipping <sebastian@pipping.org>
+Date: Mon, 6 Apr 2020 13:00:31 +0200
+Subject: [PATCH] Drop dependency on pytest-runner
+
+---
+ setup.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/setup.py b/setup.py
+index d9887a8..8a63a13 100644
+--- a/setup.py
++++ b/setup.py
+@@ -29,7 +29,7 @@ class PyTest(TestCommand):
+
+
+ setuptools.setup(
+- setup_requires=['pbr>=1.10', 'setuptools>=17.1', 'pytest-runner'],
++ setup_requires=['pbr>=1.10', 'setuptools>=17.1'],
+ pbr=True,
+ cmdclass={'test': PyTest},
+ test_suite='tests')
+--
+2.24.1
+
diff --git a/dev-python/wstools/metadata.xml b/dev-python/wstools/metadata.xml
index deddbf3b3cd..59b345f0b6c 100644
--- a/dev-python/wstools/metadata.xml
+++ b/dev-python/wstools/metadata.xml
@@ -8,6 +8,6 @@
<stabilize-allarches/>
<upstream>
<remote-id type="pypi">wstools</remote-id>
- <remote-id type="github">kiorky/wstools</remote-id>
+ <remote-id type="github">pycontribs/wstools</remote-id>
</upstream>
</pkgmetadata>
diff --git a/dev-python/wstools/wstools-0.4.8.ebuild b/dev-python/wstools/wstools-0.4.8.ebuild
new file mode 100644
index 00000000000..857203dfd07
--- /dev/null
+++ b/dev-python/wstools/wstools-0.4.8.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python{2_7,3_{6,7,8}} )
+PYTHON_REQ_USE="xml(+)"
+
+inherit distutils-r1
+
+DESCRIPTION="WSDL parsing services package for Web Services for Python"
+HOMEPAGE="https://github.com/pycontribs/wstools https://pypi.org/project/wstools/"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+ dev-python/six[${PYTHON_USEDEP}]
+"
+DEPEND="
+ ${RDEPEND}
+ dev-python/pbr[${PYTHON_USEDEP}]
+"
+
+PATCHES=( "${FILESDIR}"/${PN}-0.4.8-setup.patch )
+
+distutils_enable_tests pytest
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-python/wstools/files/, dev-python/wstools/
@ 2021-08-19 19:38 Arthur Zamarin
0 siblings, 0 replies; 3+ messages in thread
From: Arthur Zamarin @ 2021-08-19 19:38 UTC (permalink / raw
To: gentoo-commits
commit: 792a27ab770d6dfc9c6fd95f1c3c0f71daf43233
Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Thu Aug 19 19:33:29 2021 +0000
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Thu Aug 19 19:33:53 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=792a27ab
dev-python/wstools: enable py3.{9,10}
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
.../wstools/files/wstools-0.4.8-fix-py3.10.patch | 29 ++++++++++++++++++++++
dev-python/wstools/wstools-0.4.8.ebuild | 17 ++++++-------
2 files changed, 37 insertions(+), 9 deletions(-)
diff --git a/dev-python/wstools/files/wstools-0.4.8-fix-py3.10.patch b/dev-python/wstools/files/wstools-0.4.8-fix-py3.10.patch
new file mode 100644
index 00000000000..4baf12faf57
--- /dev/null
+++ b/dev-python/wstools/files/wstools-0.4.8-fix-py3.10.patch
@@ -0,0 +1,29 @@
+From c0aa811a845e78c27ef949b4dbc82dfcd9c3da68 Mon Sep 17 00:00:00 2001
+From: Arthur Zamarin <arthurzam@gentoo.org>
+Date: Thu, 19 Aug 2021 22:27:48 +0300
+Subject: [PATCH] Fix import collections.abc for python 3.10
+
+Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
+---
+ wstools/Utility.py | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+diff --git a/wstools/Utility.py b/wstools/Utility.py
+index c1ccd65..f5f1453 100644
+--- a/wstools/Utility.py
++++ b/wstools/Utility.py
+@@ -33,7 +33,10 @@ try:
+ from UserDict import DictMixin # noqa
+ except ImportError:
+ from collections import UserDict
+- from collections import MutableMapping as DictMixin # noqa
++ try:
++ from collections.abc import MutableMapping as DictMixin # noqa
++ except ImportError:
++ from collections import MutableMapping as DictMixin # noqa
+
+ from .TimeoutSocket import TimeoutSocket, TimeoutError # noqa
+
+--
+2.33.0
+
diff --git a/dev-python/wstools/wstools-0.4.8.ebuild b/dev-python/wstools/wstools-0.4.8.ebuild
index edd464ea865..93c978f8bab 100644
--- a/dev-python/wstools/wstools-0.4.8.ebuild
+++ b/dev-python/wstools/wstools-0.4.8.ebuild
@@ -3,7 +3,7 @@
EAPI=7
-PYTHON_COMPAT=( python3_{7,8} )
+PYTHON_COMPAT=( python3_{8..10} )
PYTHON_REQ_USE="xml(+)"
inherit distutils-r1
@@ -15,17 +15,16 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ppc ppc64 ~s390 sparc x86 ~amd64-linux ~x86-linux ~x64-macos"
-IUSE="test"
-RESTRICT="!test? ( test )"
-RDEPEND="
- dev-python/six[${PYTHON_USEDEP}]
-"
-DEPEND="
- ${RDEPEND}
+RDEPEND="dev-python/six[${PYTHON_USEDEP}]"
+BDEPEND="
dev-python/pbr[${PYTHON_USEDEP}]
+ test? ( dev-python/pytest-timeout[${PYTHON_USEDEP}] )
"
-PATCHES=( "${FILESDIR}"/${PN}-0.4.8-setup.patch )
+PATCHES=(
+ "${FILESDIR}/${P}-setup.patch"
+ "${FILESDIR}/${P}-fix-py3.10.patch"
+)
distutils_enable_tests pytest
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-08-19 19:38 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-08-19 19:38 [gentoo-commits] repo/gentoo:master commit in: dev-python/wstools/files/, dev-python/wstools/ Arthur Zamarin
-- strict thread matches above, loose matches on Subject: below --
2020-04-06 11:09 Sebastian Pipping
2017-11-27 7:00 Tim Harder
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox