mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-07-31 10:58:21 -07:00
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.
This commit is contained in:
46
dev-python/wstools/files/wstools-0.4.5-setup.patch
Normal file
46
dev-python/wstools/files/wstools-0.4.5-setup.patch
Normal file
@@ -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,
|
||||
34
dev-python/wstools/wstools-0.4.5-r1.ebuild
Normal file
34
dev-python/wstools/wstools-0.4.5-r1.ebuild
Normal file
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user