1 |
commit: 2ca17dda3c13e863fb5047753c4a58890ef65579 |
2 |
Author: Tim Harder <radhermit <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Nov 27 06:47:12 2017 +0000 |
4 |
Commit: Tim Harder <radhermit <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Nov 27 07:00:21 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2ca17dda |
7 |
|
8 |
dev-python/wstools: add py36 support, fix deps, and enable test phase |
9 |
|
10 |
Also, re-add all the dropped keywords due to the previously added, |
11 |
unnecessary deps. |
12 |
|
13 |
dev-python/wstools/files/wstools-0.4.5-setup.patch | 46 ++++++++++++++++++++++ |
14 |
dev-python/wstools/wstools-0.4.5-r1.ebuild | 34 ++++++++++++++++ |
15 |
2 files changed, 80 insertions(+) |
16 |
|
17 |
diff --git a/dev-python/wstools/files/wstools-0.4.5-setup.patch b/dev-python/wstools/files/wstools-0.4.5-setup.patch |
18 |
new file mode 100644 |
19 |
index 00000000000..9de7c159c97 |
20 |
--- /dev/null |
21 |
+++ b/dev-python/wstools/files/wstools-0.4.5-setup.patch |
22 |
@@ -0,0 +1,46 @@ |
23 |
+Avoid pulling in a lot of unnecessary test and setup deps. |
24 |
+ |
25 |
+--- wstools-0.4.5/setup.py |
26 |
++++ wstools-0.4.5/setup.py |
27 |
+@@ -9,7 +9,7 @@ |
28 |
+ |
29 |
+ from setuptools import setup, find_packages, Command |
30 |
+ from setuptools.command.test import test as TestCommand |
31 |
+-from pip.req import parse_requirements |
32 |
++#from pip.req import parse_requirements |
33 |
+ |
34 |
+ NAME = "wstools" |
35 |
+ url = "https://github.com/pycontribs/wstools.git" |
36 |
+@@ -55,13 +55,13 @@ |
37 |
+ |
38 |
+ def run_tests(self): |
39 |
+ # before running tests we need to run autopep8 |
40 |
+- try: |
41 |
+- subprocess.check_call( |
42 |
+- "python -m autopep8 -r --in-place wstools/ tests/", |
43 |
+- shell=True) |
44 |
+- except subprocess.CalledProcessError: |
45 |
+- logging.getLogger().warn('autopep8 is not installed so ' |
46 |
+- 'it will not be run') |
47 |
++ # try: |
48 |
++ # subprocess.check_call( |
49 |
++ # "python -m autopep8 -r --in-place wstools/ tests/", |
50 |
++ # shell=True) |
51 |
++ # except subprocess.CalledProcessError: |
52 |
++ # logging.getLogger().warn('autopep8 is not installed so ' |
53 |
++ # 'it will not be run') |
54 |
+ # import here, cause outside the eggs aren't loaded |
55 |
+ import pytest # noqa |
56 |
+ errno = pytest.main(self.pytest_args) |
57 |
+@@ -136,9 +136,9 @@ |
58 |
+ cmdclass={'test': PyTest, 'release': Release, 'prerelease': PreRelease}, |
59 |
+ packages=find_packages(exclude=['tests']), |
60 |
+ include_package_data=True, |
61 |
+- tests_require=get_requirements(base_path, 'requirements-dev.txt'), |
62 |
++ #tests_require=get_requirements(base_path, 'requirements-dev.txt'), |
63 |
+ setup_requires=['setuptools'], |
64 |
+- install_requires=get_requirements(base_path, 'requirements.txt'), |
65 |
++ install_requires=['six'], |
66 |
+ |
67 |
+ license='BSD', |
68 |
+ description="WSDL parsing services package for Web Services for Python. see" + url, |
69 |
|
70 |
diff --git a/dev-python/wstools/wstools-0.4.5-r1.ebuild b/dev-python/wstools/wstools-0.4.5-r1.ebuild |
71 |
new file mode 100644 |
72 |
index 00000000000..9a3d508f201 |
73 |
--- /dev/null |
74 |
+++ b/dev-python/wstools/wstools-0.4.5-r1.ebuild |
75 |
@@ -0,0 +1,34 @@ |
76 |
+# Copyright 1999-2017 Gentoo Foundation |
77 |
+# Distributed under the terms of the GNU General Public License v2 |
78 |
+ |
79 |
+EAPI=6 |
80 |
+ |
81 |
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} pypy ) |
82 |
+PYTHON_REQ_USE="xml(+)" |
83 |
+ |
84 |
+inherit distutils-r1 |
85 |
+ |
86 |
+DESCRIPTION="WSDL parsing services package for Web Services for Python" |
87 |
+HOMEPAGE="https://github.com/kiorky/wstools https://pypi.python.org/pypi/wstools" |
88 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
89 |
+ |
90 |
+LICENSE="BSD" |
91 |
+SLOT="0" |
92 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x64-macos ~x86-macos" |
93 |
+IUSE="test" |
94 |
+ |
95 |
+RDEPEND=" |
96 |
+ dev-python/six[${PYTHON_USEDEP}] |
97 |
+" |
98 |
+DEPEND=" |
99 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
100 |
+ test? ( |
101 |
+ ${RDEPEND} |
102 |
+ dev-python/pytest[${PYTHON_USEDEP}] |
103 |
+ )" |
104 |
+ |
105 |
+PATCHES=( "${FILESDIR}"/${P}-setup.patch ) |
106 |
+ |
107 |
+python_test() { |
108 |
+ esetup.py test |
109 |
+} |