head	1.14;
access;
symbols
	pkgsrc-2026Q2:1.14.0.4
	pkgsrc-2026Q2-base:1.14
	pkgsrc-2026Q1:1.14.0.2
	pkgsrc-2026Q1-base:1.14
	pkgsrc-2025Q4:1.12.0.2
	pkgsrc-2025Q4-base:1.12
	pkgsrc-2025Q3:1.11.0.4
	pkgsrc-2025Q3-base:1.11
	pkgsrc-2025Q2:1.11.0.2
	pkgsrc-2025Q2-base:1.11
	pkgsrc-2025Q1:1.10.0.2
	pkgsrc-2025Q1-base:1.10
	pkgsrc-2024Q4:1.8.0.4
	pkgsrc-2024Q4-base:1.8
	pkgsrc-2024Q3:1.8.0.2
	pkgsrc-2024Q3-base:1.8
	pkgsrc-2024Q2:1.5.0.4
	pkgsrc-2024Q2-base:1.5
	pkgsrc-2024Q1:1.5.0.2
	pkgsrc-2024Q1-base:1.5
	pkgsrc-2023Q4:1.3.0.6
	pkgsrc-2023Q4-base:1.3
	pkgsrc-2023Q3:1.3.0.4
	pkgsrc-2023Q3-base:1.3
	pkgsrc-2023Q2:1.3.0.2
	pkgsrc-2023Q2-base:1.3
	pkgsrc-2023Q1:1.1.0.4
	pkgsrc-2023Q1-base:1.1
	pkgsrc-2022Q4:1.1.0.2
	pkgsrc-2022Q4-base:1.1;
locks; strict;
comment	@# @;


1.14
date	2026.02.15.13.23.58;	author adam;	state Exp;
branches;
next	1.13;
commitid	YbU4oDyqK56hxtuG;

1.13
date	2026.02.12.11.11.03;	author adam;	state Exp;
branches;
next	1.12;
commitid	rDLx4elCyZoDT4uG;

1.12
date	2025.09.28.19.40.17;	author wiz;	state Exp;
branches;
next	1.11;
commitid	W2LzvZragNsr7wcG;

1.11
date	2025.04.20.12.14.18;	author adam;	state Exp;
branches;
next	1.10;
commitid	boOaeFJb4VgfPMRF;

1.10
date	2025.02.25.13.08.30;	author adam;	state Exp;
branches;
next	1.9;
commitid	8eaoESKAdRfsRQKF;

1.9
date	2025.01.22.08.24.51;	author adam;	state Exp;
branches;
next	1.8;
commitid	6xUWdNz328aVnsGF;

1.8
date	2024.08.20.13.20.42;	author adam;	state Exp;
branches;
next	1.7;
commitid	vVSE7cSsXZQh0zmF;

1.7
date	2024.07.22.04.08.39;	author adam;	state Exp;
branches;
next	1.6;
commitid	Y3IGv9JfelEHSMiF;

1.6
date	2024.07.20.06.09.39;	author adam;	state Exp;
branches;
next	1.5;
commitid	XccHcl39BRtcCxiF;

1.5
date	2024.02.28.10.31.01;	author adam;	state Exp;
branches;
next	1.4;
commitid	L26OhXCLTP6QEb0F;

1.4
date	2024.02.14.16.26.07;	author adam;	state Exp;
branches;
next	1.3;
commitid	MDrJlOG7CeQx4qYE;

1.3
date	2023.05.29.12.27.52;	author adam;	state Exp;
branches;
next	1.2;
commitid	ZT2rNw4rlS0Y8RqE;

1.2
date	2023.05.18.08.46.37;	author adam;	state Exp;
branches;
next	1.1;
commitid	8eRFoRKqEuAVgqpE;

1.1
date	2022.12.06.20.34.05;	author wiz;	state Exp;
branches;
next	;
commitid	FRAUOir7LXOCqx4E;


desc
@@


1.14
log
@py-test-httpserver: updated to 1.1.5

1.1.5

New Features

- Add ``bake()`` method to ``HTTPServer`` for creating pre-configured
  request expectation proxies (``BakedHTTPServer``). This allows sharing
  common keyword arguments (e.g. ``method``, ``headers``) across multiple
  ``expect_request()`` calls with last-wins merging semantics.
@
text
@# $NetBSD: Makefile,v 1.13 2026/02/12 11:11:03 adam Exp $

DISTNAME=	pytest_httpserver-1.1.5
PKGNAME=	${PYPKGPREFIX}-${DISTNAME:S/py//:S/_/-/}
CATEGORIES=	devel python
MASTER_SITES=	${MASTER_SITE_PYPI:=p/pytest_httpserver/}

MAINTAINER=	pkgsrc-users@@NetBSD.org
HOMEPAGE=	https://github.com/csernazs/pytest-httpserver
COMMENT=	HTTP server for pytest
LICENSE=	mit

TOOL_DEPENDS+=	${PYPKGPREFIX}-poetry-core>=2.2.1:../../devel/py-poetry-core
DEPENDS+=	${PYPKGPREFIX}-werkzeug>=2.0.0:../../www/py-werkzeug
TEST_DEPENDS+=	${PYPKGPREFIX}-mypy>=0.971:../../lang/py-mypy
TEST_DEPENDS+=	${PYPKGPREFIX}-requests>=2.28.1:../../devel/py-requests
TEST_DEPENDS+=	${PYPKGPREFIX}-test-cov>=3:../../devel/py-test-cov
TEST_DEPENDS+=	${PYPKGPREFIX}-toml>=0.10.2:../../textproc/py-toml
TEST_DEPENDS+=	${PYPKGPREFIX}-types-toml-[0-9]*:../../devel/py-types-toml

USE_LANGUAGES=	# none

.include "../../lang/python/wheel.mk"
.include "../../mk/bsd.pkg.mk"
@


1.13
log
@py-test-httpserver: updated to 1.1.4

1.1.4

New Features

- More robust server startup by checking server readiness (disabled by
  default).
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.12 2025/09/28 19:40:17 wiz Exp $
d3 1
a3 1
DISTNAME=	pytest_httpserver-1.1.4
@


1.12
log
@py-test-httpserver: fix for latest poetry-core

Bump PKGREVISION.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.11 2025/04/20 12:14:18 adam Exp $
d3 1
a3 1
DISTNAME=	pytest_httpserver-1.1.3
a4 1
PKGREVISION=	1
@


1.11
log
@py-test-httpserver: updated to 1.1.3

1.1.3

Bug Fixes
- Run server threads with daemon flag, preventing shutdown issues.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.10 2025/02/25 13:08:30 adam Exp $
d5 1
d14 1
a14 1
TOOL_DEPENDS+=	${PYPKGPREFIX}-poetry-core>=1.0.0:../../devel/py-poetry-core
@


1.10
log
@py-test-httpserver: updated to 1.1.2

1.1.2

Deprecation Notes

- Python versions earlier than 3.9 have been deprecated in order to make the
  code more type safe. Python 3.8 has reached EOL on 2024-10-07.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.9 2025/01/22 08:24:51 adam Exp $
d3 1
a3 1
DISTNAME=	pytest_httpserver-1.1.2
@


1.9
log
@py-test-httpserver: updated to 1.1.1

1.1.1

New Features

- Add a new ``expect`` method to the ``HTTPServer`` object which allows
  developers to provide their own request matcher object.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.8 2024/08/20 13:20:42 adam Exp $
d3 1
a3 1
DISTNAME=	pytest_httpserver-1.1.1
@


1.8
log
@py-test-httpserver: updated to 1.1.0

1.1.0

Bug Fixes

- Fixed an issue related to the leak of httpserver state between the tests
  when httpserver is destructed before the other fixtures.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.7 2024/07/22 04:08:39 adam Exp $
d3 1
a3 1
DISTNAME=	pytest_httpserver-1.1.0
@


1.7
log
@py-test-httpserver: updated to 1.0.12

1.0.12

Bug Fixes

- Fix pytest-httpserver's own tests related to log querying. No functional
  changes in pytest-httpserver code itself.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.6 2024/07/20 06:09:39 adam Exp $
d3 1
a3 1
DISTNAME=	pytest_httpserver-1.0.12
d17 1
a18 1
TEST_DEPENDS+=	${PYPKGPREFIX}-test-cov>=3:../../devel/py-test-cov
a22 2
PYTHON_VERSIONS_INCOMPATIBLE=	27

@


1.6
log
@py-test-httpserver: updated to 1.0.11

1.0.11

New Features

- Hooks API
- New methods added to query for matching requests in the log.
- Threading support to serve requests in parallel
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.5 2024/02/28 10:31:01 adam Exp $
d3 1
a3 1
DISTNAME=	pytest_httpserver-1.0.11
@


1.5
log
@py-test-httpserver: updated to 1.0.10

1.0.10

New Features

- When there's no handler for the request, add more details to the response
  sent by the server about the request to help debugging.

Other Notes

- Use ruff for linting. It includes some source code changes which should not
  introduce functional changes, or API changes.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.4 2024/02/14 16:26:07 adam Exp $
d3 1
a3 1
DISTNAME=	pytest_httpserver-1.0.10
@


1.4
log
@py-test-httpserver: updated to 1.0.9

1.0.9
New Features

- Add ``__repr__`` to ``RequestHandler`` object so when it is compared (eg. with
  the ``log`` attribute of the server) it will show the matcher parameters.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.3 2023/05/29 12:27:52 adam Exp $
d3 1
a3 1
DISTNAME=	pytest_httpserver-1.0.9
@


1.3
log
@py-test-httpserver: updated to 1.0.8

1.0.8

Bug Fixes
- Version 1.0.7 has been released with incorrect dependencies. This is fixed now.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.2 2023/05/18 08:46:37 adam Exp $
d3 1
a3 1
DISTNAME=	pytest_httpserver-1.0.8
d13 1
d15 1
a17 1
TEST_DEPENDS+=	${PYPKGPREFIX}-test>=7.1.3:../../devel/py-test
a20 2
PYTHON_VERSIONS_INCOMPATIBLE=	27

d23 1
a23 4
# needs to be installed for testing
#TEST_ENV+=	PYTHONPATH=${WRKSRC}/build/lib
do-test:
	cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX} tests
d25 1
a25 1
.include "../../lang/python/egg.mk"
@


1.2
log
@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.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.1 2022/12/06 20:34:05 wiz Exp $
d3 1
a3 1
DISTNAME=	pytest_httpserver-1.0.7
@


1.1
log
@devel/py-test-httpserver: import py-test-httpserver-1.0.6

This library is designed to help to test http clients without
contacting the real http server. In other words, it is a fake http
server which is accessible via localhost can be started with the
pre-defined expected http requests and their responses.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.10 2022/10/25 07:06:14 adam Exp $
d3 1
a3 1
DISTNAME=	pytest_httpserver-1.0.6
d13 6
a18 5
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
d25 1
a25 1
TEST_ENV+=	PYTHONPATH=${WRKSRC}/build/lib
d27 1
a27 1
	cd ${WRKSRC}/tests && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX}
@

