pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/print/py-weasyprint0 py-weasyprint0: exclude pytest-fl...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/379f57c43330
branches:  trunk
changeset: 389080:379f57c43330
user:      adam <adam%pkgsrc.org@localhost>
date:      Wed Nov 30 09:24:13 2022 +0000

description:
py-weasyprint0: exclude pytest-flake8 and pytest-isort from testing

diffstat:

 print/py-weasyprint0/Makefile                |   4 +---
 print/py-weasyprint0/distinfo                |   5 +++--
 print/py-weasyprint0/patches/patch-setup.cfg |  15 +++++++++++++++
 print/py-weasyprint0/patches/patch-setup.py  |  19 ++++++++++++++++---
 4 files changed, 35 insertions(+), 8 deletions(-)

diffs (80 lines):

diff -r bf054c5468b3 -r 379f57c43330 print/py-weasyprint0/Makefile
--- a/print/py-weasyprint0/Makefile     Wed Nov 30 09:03:08 2022 +0000
+++ b/print/py-weasyprint0/Makefile     Wed Nov 30 09:24:13 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.11 2022/08/24 08:41:08 wiz Exp $
+# $NetBSD: Makefile,v 1.12 2022/11/30 09:24:13 adam Exp $
 
 DISTNAME=      WeasyPrint-0.42.3
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME:tl}
@@ -21,8 +21,6 @@
 DEPENDS+=      ${PYPKGPREFIX}-pyphen>=0.8:../../textproc/py27-pyphen
 DEPENDS+=      ${PYPKGPREFIX}-tinycss2>=0.5:../../textproc/py27-tinycss2
 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
 
 PYTHON_VERSIONS_ACCEPTED=      27
diff -r bf054c5468b3 -r 379f57c43330 print/py-weasyprint0/distinfo
--- a/print/py-weasyprint0/distinfo     Wed Nov 30 09:03:08 2022 +0000
+++ b/print/py-weasyprint0/distinfo     Wed Nov 30 09:24:13 2022 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.5 2021/10/26 11:12:16 nia Exp $
+$NetBSD: distinfo,v 1.6 2022/11/30 09:24:13 adam Exp $
 
 BLAKE2s (WeasyPrint-0.42.3.tar.gz) = 2cc65ae04d91c2ca8b90ee54a43750c7de1cad7d986401cd7f77efdc4d0d8554
 SHA512 (WeasyPrint-0.42.3.tar.gz) = d6007934c301904308bd4821626d6a7bb504268c5c71a31f7486faebb3dd649fad18774737cab39eb13a0916635bb58eba2c8432c72cc5a461cea2a5d874b1ee
 Size (WeasyPrint-0.42.3.tar.gz) = 399972 bytes
-SHA1 (patch-setup.py) = a7657e79ac611f3122a81d7f2c6c195e52ba9399
+SHA1 (patch-setup.cfg) = b5aa0edebaefc2ae2c9c7748ffadb89c4e5d1828
+SHA1 (patch-setup.py) = 4bfa57670448b87b7713dd05a2651729b0935ac2
diff -r bf054c5468b3 -r 379f57c43330 print/py-weasyprint0/patches/patch-setup.cfg
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/print/py-weasyprint0/patches/patch-setup.cfg      Wed Nov 30 09:24:13 2022 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-setup.cfg,v 1.1 2022/11/30 09:24:13 adam Exp $
+
+Do not use flake8 and isort for tests.
+
+--- setup.cfg.orig     2022-11-30 08:28:48.000000000 +0000
++++ setup.cfg
+@@ -6,7 +6,7 @@ build-dir = docs/_build
+ test = pytest
+ 
+ [tool:pytest]
+-addopts = --cov=weasyprint --flake8 --isort
++addopts = --cov=weasyprint
+ norecursedirs = dist .cache .git build *.egg-info .eggs venv
+ 
+ [egg_info]
diff -r bf054c5468b3 -r 379f57c43330 print/py-weasyprint0/patches/patch-setup.py
--- a/print/py-weasyprint0/patches/patch-setup.py       Wed Nov 30 09:03:08 2022 +0000
+++ b/print/py-weasyprint0/patches/patch-setup.py       Wed Nov 30 09:24:13 2022 +0000
@@ -1,10 +1,23 @@
-$NetBSD: patch-setup.py,v 1.3 2021/04/29 13:15:32 joerg Exp $
+$NetBSD: patch-setup.py,v 1.4 2022/11/30 09:24:13 adam Exp $
 
 Adjust script path to allow multiple Python version installs.
 
---- setup.py.orig      2017-12-22 23:26:45.000000000 +0000
+Do not require pytest-flake8 and pytest-isort as PkgSrc does have Python 2.7
+versions anymore.
+
+--- setup.py.orig      2018-03-27 20:48:21.000000000 +0000
 +++ setup.py
-@@ -83,7 +83,7 @@ setup(
+@@ -75,15 +75,15 @@ setup(
+     setup_requires=pytest_runner,
+     test_suite='weasyprint.tests',
+     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'],
+         ':python_version < "3.0"': ['CairoSVG >= 1.0.20, < 2.0.0'],
          ':python_version >= "3.0"': ['CairoSVG >= 1.0.20']},
      entry_points={
          'console_scripts': [



Home | Main Index | Thread Index | Old Index