pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/textproc/py27-tinycss2 py27-tinycss2: exclude pytest-f...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b79f6ade2896
branches:  trunk
changeset: 389084:b79f6ade2896
user:      adam <adam%pkgsrc.org@localhost>
date:      Wed Nov 30 09:33:05 2022 +0000

description:
py27-tinycss2: exclude pytest-flake8 and pytest-isort from testing

diffstat:

 textproc/py27-tinycss2/Makefile                |  12 +++++-------
 textproc/py27-tinycss2/distinfo                |   4 +++-
 textproc/py27-tinycss2/patches/patch-setup.cfg |  15 +++++++++++++++
 textproc/py27-tinycss2/patches/patch-setup.py  |  17 +++++++++++++++++
 4 files changed, 40 insertions(+), 8 deletions(-)

diffs (81 lines):

diff -r 92f2188d0330 -r b79f6ade2896 textproc/py27-tinycss2/Makefile
--- a/textproc/py27-tinycss2/Makefile   Wed Nov 30 09:31:49 2022 +0000
+++ b/textproc/py27-tinycss2/Makefile   Wed Nov 30 09:33:05 2022 +0000
@@ -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 @@
 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 -r 92f2188d0330 -r b79f6ade2896 textproc/py27-tinycss2/distinfo
--- a/textproc/py27-tinycss2/distinfo   Wed Nov 30 09:31:49 2022 +0000
+++ b/textproc/py27-tinycss2/distinfo   Wed Nov 30 09:33:05 2022 +0000
@@ -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 -r 92f2188d0330 -r b79f6ade2896 textproc/py27-tinycss2/patches/patch-setup.cfg
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/py27-tinycss2/patches/patch-setup.cfg    Wed Nov 30 09:33:05 2022 +0000
@@ -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 -r 92f2188d0330 -r b79f6ade2896 textproc/py27-tinycss2/patches/patch-setup.py
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/py27-tinycss2/patches/patch-setup.py     Wed Nov 30 09:33:05 2022 +0000
@@ -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']},
+ )



Home | Main Index | Thread Index | Old Index