pkgsrc-Changes archive

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

CVS commit: pkgsrc/devel/py-test-httpserver



Module Name:    pkgsrc
Committed By:   adam
Date:           Thu May 18 08:46:38 UTC 2023

Modified Files:
        pkgsrc/devel/py-test-httpserver: Makefile distinfo

Log Message:
py-test-httpserver: updated to 1.0.7

1.0.7
=====

Upgrade Notes
-------------
- With werkzeug 2.3.x the headers type has been updated to not allow integers as header values. This restriction followed up in pytest-httpserver.

Deprecation Notes
-----------------
- Python versions earlier than 3.8 have been deprecated in order to support
  the latest werkzeug. Users using 3.7 or earlier python may use
  pytest-httpserver with earlier werkzeug versions but tests are no longer run
  for these python versions.

Bug Fixes
---------
- Type hinting for header_value_matcher has been fixed. From now, specifying a
  callable as ``Callable[[str, Optional[str], str], bool]`` will be accepted
  also. Providing a ``HeaderValueMatcher`` object will be also accepted as
  before, as it provides the same callable signature.

- Fix Werkzeug deprecation warning about ``parse_authorization_header`` call.
  Replace ``parse_authorization_header`` with ``Authorization.from_header`` as
  suggested. This fix should not introduce any functional change for the
  users.

- Fix Werkzeug deprecation warning about ``werkzeug.urls.url_decode`` call. This
  call has been changed to ``urllib.parse.parse_qsl`` in the implementation.
  This fix should not introduce any functional change for the users.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 pkgsrc/devel/py-test-httpserver/Makefile \
    pkgsrc/devel/py-test-httpserver/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/devel/py-test-httpserver/Makefile
diff -u pkgsrc/devel/py-test-httpserver/Makefile:1.1 pkgsrc/devel/py-test-httpserver/Makefile:1.2
--- pkgsrc/devel/py-test-httpserver/Makefile:1.1        Tue Dec  6 20:34:05 2022
+++ pkgsrc/devel/py-test-httpserver/Makefile    Thu May 18 08:46:37 2023
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.1 2022/12/06 20:34:05 wiz Exp $
+# $NetBSD: Makefile,v 1.2 2023/05/18 08:46:37 adam Exp $
 
-DISTNAME=      pytest_httpserver-1.0.6
+DISTNAME=      pytest_httpserver-1.0.7
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME:S/py//:S/_/-/}
 CATEGORIES=    devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=p/pytest_httpserver/}
@@ -10,20 +10,21 @@ HOMEPAGE=   https://github.com/csernazs/py
 COMMENT=       HTTP server for pytest
 LICENSE=       mit
 
-DEPENDS+=              ${PYPKGPREFIX}-werkzeug>=2:../../www/py-werkzeug
-TEST_DEPENDS+=         ${PYPKGPREFIX}-requests-[0-9]*:../../devel/py-requests
-TEST_DEPENDS+=         ${PYPKGPREFIX}-types-toml-[0-9]*:../../devel/py-types-toml
-TEST_DEPENDS+=         ${PYPKGPREFIX}-toml-[0-9]*:../../textproc/py-toml
-TEST_DEPENDS+=         ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
+DEPENDS+=      ${PYPKGPREFIX}-werkzeug>=2.0.0:../../www/py-werkzeug
+TEST_DEPENDS+= ${PYPKGPREFIX}-requests>=2.28.1:../../devel/py-requests
+TEST_DEPENDS+= ${PYPKGPREFIX}-toml>=0.10.2:../../textproc/py-toml
+TEST_DEPENDS+= ${PYPKGPREFIX}-test>=7.1.3:../../devel/py-test
+TEST_DEPENDS+= ${PYPKGPREFIX}-test-cov>=3:../../devel/py-test-cov
+TEST_DEPENDS+= ${PYPKGPREFIX}-types-toml-[0-9]*:../../devel/py-types-toml
 
 PYTHON_VERSIONS_INCOMPATIBLE=  27
 
 USE_LANGUAGES= # none
 
 # needs to be installed for testing
-TEST_ENV+=     PYTHONPATH=${WRKSRC}/build/lib
+#TEST_ENV+=    PYTHONPATH=${WRKSRC}/build/lib
 do-test:
-       cd ${WRKSRC}/tests && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX}
+       cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX} tests
 
 .include "../../lang/python/egg.mk"
 .include "../../mk/bsd.pkg.mk"
Index: pkgsrc/devel/py-test-httpserver/distinfo
diff -u pkgsrc/devel/py-test-httpserver/distinfo:1.1 pkgsrc/devel/py-test-httpserver/distinfo:1.2
--- pkgsrc/devel/py-test-httpserver/distinfo:1.1        Tue Dec  6 20:34:05 2022
+++ pkgsrc/devel/py-test-httpserver/distinfo    Thu May 18 08:46:37 2023
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.1 2022/12/06 20:34:05 wiz Exp $
+$NetBSD: distinfo,v 1.2 2023/05/18 08:46:37 adam Exp $
 
-BLAKE2s (pytest_httpserver-1.0.6.tar.gz) = 9a67556784632fcaaa65b8ae84826ad07b68d2292653461a57a1dbf546fcf53d
-SHA512 (pytest_httpserver-1.0.6.tar.gz) = 629f89e7cbdd8c8f983eaca6c6c8cf2b54ff831aaa3c422c77b32f777bf897280239a027e4c643813eb0d51948b07e2c461980fa618e3fbaf2a95dd9dd689256
-Size (pytest_httpserver-1.0.6.tar.gz) = 57026 bytes
+BLAKE2s (pytest_httpserver-1.0.7.tar.gz) = 51b61c220b134859676f3c4d808d65b7fbea029ec9f9c767382ca5c7ebd9c3f9
+SHA512 (pytest_httpserver-1.0.7.tar.gz) = 21fb81350ad24e0e59322d7530025e0859c59c62ef0eb6248dbd044ce893fd4c5fa0bc691741578a3d7fa6801dc5c80bc56b10baafff2c1abd480d4c994c93c7
+Size (pytest_httpserver-1.0.7.tar.gz) = 60065 bytes



Home | Main Index | Thread Index | Old Index