www/py-gandi.cli: Update to 1.5
Changelog: https://github.com/Gandi/gandi.cli/blob/1.5/CHANGES.rst
This commit is contained in:
@@ -2,8 +2,7 @@
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= gandi.cli
|
||||
PORTVERSION= 1.2
|
||||
PORTREVISION= 1
|
||||
PORTVERSION= 1.5
|
||||
CATEGORIES= www python
|
||||
MASTER_SITES= CHEESESHOP
|
||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
||||
@@ -15,7 +14,7 @@ LICENSE= GPLv3
|
||||
LICENSE_FILE= ${WRKSRC}/LICENSE
|
||||
|
||||
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}yaml>0:devel/py-yaml@${PY_FLAVOR} \
|
||||
${PYTHON_PKGNAMEPREFIX}click>=3.1:devel/py-click@${PY_FLAVOR} \
|
||||
${PYTHON_PKGNAMEPREFIX}click>=7.0:devel/py-click@${PY_FLAVOR} \
|
||||
${PYTHON_PKGNAMEPREFIX}requests>0:www/py-requests@${PY_FLAVOR} \
|
||||
${PYTHON_PKGNAMEPREFIX}ipy>0:net-mgmt/py-ipy@${PY_FLAVOR}
|
||||
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR}
|
||||
@@ -33,6 +32,6 @@ TEST_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}mock>0:devel/py-mock@${PY_FLAVOR}
|
||||
.endif
|
||||
|
||||
do-test:
|
||||
@cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test
|
||||
@cd ${WRKSRC} && ${PYTHON_CMD} -m pytest -v -rs
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
TIMESTAMP = 1533616050
|
||||
SHA256 (gandi.cli-1.2.tar.gz) = 51b5287a285bf665446d7ff47ed9cb447caa79ab8504d29e4212ae825e27086e
|
||||
SIZE (gandi.cli-1.2.tar.gz) = 159352
|
||||
TIMESTAMP = 1558097092
|
||||
SHA256 (gandi.cli-1.5.tar.gz) = a575be04fd373d4798ae16f6cbe03e8ed16255043788fb3de13bebfe7e621c84
|
||||
SIZE (gandi.cli-1.5.tar.gz) = 179987
|
||||
|
||||
12
www/py-gandi.cli/files/patch-setup.cfg
Normal file
12
www/py-gandi.cli/files/patch-setup.cfg
Normal file
@@ -0,0 +1,12 @@
|
||||
--- setup.cfg.orig 2019-05-17 13:01:03 UTC
|
||||
+++ setup.cfg
|
||||
@@ -5,9 +5,6 @@ cover-package = gandi.cli
|
||||
with-coverage = 1
|
||||
cover-erase = 1
|
||||
|
||||
-[tool:pytest]
|
||||
-addopts = --cov=gandi.cli
|
||||
-
|
||||
[egg_info]
|
||||
tag_build =
|
||||
tag_date = 0
|
||||
@@ -1,10 +1,13 @@
|
||||
--- setup.py.orig 2017-09-13 12:32:20 UTC
|
||||
--- setup.py.orig 2019-01-13 14:15:14 UTC
|
||||
+++ setup.py
|
||||
@@ -6,19 +6,19 @@ import os
|
||||
@@ -5,14 +5,15 @@ import re
|
||||
import os
|
||||
import sys
|
||||
|
||||
from setuptools import setup, find_packages
|
||||
+from io import open
|
||||
+
|
||||
from setuptools import setup, find_packages
|
||||
from setuptools.command.test import test as TestCommand
|
||||
|
||||
here = os.path.abspath(os.path.dirname(__file__))
|
||||
-README = open(os.path.join(here, 'README.md')).read()
|
||||
@@ -13,23 +16,27 @@
|
||||
+CHANGES = open(os.path.join(here, 'CHANGES.rst'), encoding='utf-8').read()
|
||||
|
||||
-
|
||||
with open(os.path.join(here, 'gandi', 'cli', '__init__.py')) as v_file:
|
||||
version = re.compile(r".*__version__ = '(.*?)'",
|
||||
re.S).match(v_file.read()).group(1)
|
||||
class PyTest(TestCommand):
|
||||
user_options = [('pytest-args=', 'a', "Arguments to pass into py.test")]
|
||||
|
||||
requires = ['setuptools', 'pyyaml', 'click>=3.1', 'requests', 'IPy']
|
||||
@@ -43,8 +44,10 @@ with open(os.path.join(here, 'gandi', 'cli', '__init__
|
||||
|
||||
-tests_require = ['nose', 'coverage', 'tox']
|
||||
+tests_require = []
|
||||
if sys.version_info < (2, 7):
|
||||
tests_require += ['unittest2', 'importlib']
|
||||
requires = ['setuptools', 'pyyaml', 'click>=7.0', 'requests', 'IPy']
|
||||
|
||||
@@ -55,7 +55,7 @@ setup(name='gandi.cli',
|
||||
zip_safe=False,
|
||||
install_requires=requires,
|
||||
tests_require=tests_require,
|
||||
- test_suite='nose.collector',
|
||||
+ test_suite='gandi.cli.tests',
|
||||
extras_require=extras_require,
|
||||
entry_points={
|
||||
'console_scripts': [
|
||||
-tests_require = ['pytest', 'pytest-cov', 'tox']
|
||||
+tests_require = ['pytest']
|
||||
|
||||
+dev_requires = ['pytest-cov', 'tox']
|
||||
+
|
||||
if sys.version_info < (3, 0):
|
||||
tests_require += ['mock']
|
||||
else:
|
||||
@@ -54,7 +57,7 @@ else:
|
||||
" (sys.version: {})".format(sys.version))
|
||||
|
||||
extras_require = {
|
||||
- 'test': tests_require,
|
||||
+ 'dev': dev_requires,
|
||||
}
|
||||
|
||||
setup(name='gandi.cli',
|
||||
|
||||
Reference in New Issue
Block a user