diff options
author | adam <adam@pkgsrc.org> | 2022-11-30 09:33:05 +0000 |
---|---|---|
committer | adam <adam@pkgsrc.org> | 2022-11-30 09:33:05 +0000 |
commit | 71e313a3026b288254792697f3b4bf37241344f5 (patch) | |
tree | fc08f63d39f11d27181bdf52651a5ad33352311c /textproc | |
parent | 7106ecbb38a3d927fd31d49669a05d09df0d4cbd (diff) | |
download | pkgsrc-71e313a3026b288254792697f3b4bf37241344f5.tar.gz |
py27-tinycss2: exclude pytest-flake8 and pytest-isort from testing
Diffstat (limited to 'textproc')
-rw-r--r-- | textproc/py27-tinycss2/Makefile | 12 | ||||
-rw-r--r-- | textproc/py27-tinycss2/distinfo | 4 | ||||
-rw-r--r-- | textproc/py27-tinycss2/patches/patch-setup.cfg | 15 | ||||
-rw-r--r-- | textproc/py27-tinycss2/patches/patch-setup.py | 17 |
4 files changed, 40 insertions, 8 deletions
diff --git a/textproc/py27-tinycss2/Makefile b/textproc/py27-tinycss2/Makefile index 9fdf95fc739..c86c67ea03b 100644 --- a/textproc/py27-tinycss2/Makefile +++ b/textproc/py27-tinycss2/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.5 2022/11/09 13:14:17 joerg Exp $ +# $NetBSD: Makefile,v 1.6 2022/11/30 09:33:05 adam Exp $ DISTNAME= tinycss2-0.6.1 PKGNAME= ${PYPKGPREFIX}-${DISTNAME} @@ -11,15 +11,13 @@ HOMEPAGE= https://pythonhosted.org/tinycss2/ COMMENT= Low-level CSS parser for Python LICENSE= modified-bsd -PYTHON_VERSIONS_ACCEPTED= 27 - -USE_LANGUAGES= # empty - DEPENDS+= ${PYPKGPREFIX}-webencodings>=0.4:../../textproc/py-webencodings TEST_DEPENDS+= ${PYPKGPREFIX}-test-cov-[0-9]*:../../devel/py27-test-cov -TEST_DEPENDS+= ${PYPKGPREFIX}-test-flake8-[0-9]*:../../devel/py-test-flake8 -TEST_DEPENDS+= ${PYPKGPREFIX}-test-isort-[0-9]*:../../devel/py-test-isort TEST_DEPENDS+= ${PYPKGPREFIX}-test-runner-[0-9]*:../../devel/py-test-runner +USE_LANGUAGES= # none + +PYTHON_VERSIONS_ACCEPTED= 27 + .include "../../lang/python/egg.mk" .include "../../mk/bsd.pkg.mk" diff --git a/textproc/py27-tinycss2/distinfo b/textproc/py27-tinycss2/distinfo index ff74c301646..9147dcf7782 100644 --- a/textproc/py27-tinycss2/distinfo +++ b/textproc/py27-tinycss2/distinfo @@ -1,5 +1,7 @@ -$NetBSD: distinfo,v 1.3 2021/10/26 11:23:18 nia Exp $ +$NetBSD: distinfo,v 1.4 2022/11/30 09:33:05 adam Exp $ BLAKE2s (tinycss2-0.6.1.tar.gz) = c7b9195754a48058291b72fd41324d9f1a53b4e168fd97e049ee6b7ec8dcc6ea SHA512 (tinycss2-0.6.1.tar.gz) = fa064bbb06d641a497a3c1eb35118bbf8ca8c4d32fbd3d8c64bb10d6cdab24387e77cd4c3277a957f23de2bd527a407836245f4387d7f880958858bd9cc7ab89 Size (tinycss2-0.6.1.tar.gz) = 59548 bytes +SHA1 (patch-setup.cfg) = 64b02b00fa864704f4a03f4bcd22666875b30ddb +SHA1 (patch-setup.py) = 597ee3cbc981cebdea1c7fadfcbc567dd92b1c1e diff --git a/textproc/py27-tinycss2/patches/patch-setup.cfg b/textproc/py27-tinycss2/patches/patch-setup.cfg new file mode 100644 index 00000000000..ded5f993e9f --- /dev/null +++ b/textproc/py27-tinycss2/patches/patch-setup.cfg @@ -0,0 +1,15 @@ +$NetBSD: patch-setup.cfg,v 1.1 2022/11/30 09:33:05 adam Exp $ + +Do not use flake8 and isort for tests. + +--- setup.cfg.orig 2022-11-30 09:27:24.000000000 +0000 ++++ setup.cfg +@@ -5,7 +5,7 @@ test = pytest + universal = 1 + + [tool:pytest] +-addopts = --cov=tinycss2 --flake8 --isort tinycss2/test.py ++addopts = --cov=tinycss2 tinycss2/test.py + norecursedirs = dist .cache .git build *.egg-info .eggs venv + + [egg_info] diff --git a/textproc/py27-tinycss2/patches/patch-setup.py b/textproc/py27-tinycss2/patches/patch-setup.py new file mode 100644 index 00000000000..741b79c2fc9 --- /dev/null +++ b/textproc/py27-tinycss2/patches/patch-setup.py @@ -0,0 +1,17 @@ +$NetBSD: patch-setup.py,v 1.1 2022/11/30 09:33:05 adam Exp $ + +Do not require pytest-flake8 and pytest-isort as PkgSrc does have Python 2.7 +versions anymore. + +--- setup.py.orig 2022-11-30 09:26:24.000000000 +0000 ++++ setup.py +@@ -49,7 +49,7 @@ setup( + setup_requires=pytest_runner, + test_suite='tinycss2.test', + tests_require=[ +- 'pytest-runner', 'pytest-cov', 'pytest-flake8', 'pytest-isort'], ++ 'pytest-runner', 'pytest-cov'], + extras_require={'test': [ +- 'pytest-runner', 'pytest-cov', 'pytest-flake8', 'pytest-isort']}, ++ 'pytest-runner', 'pytest-cov']}, + ) |