head	1.48;
access;
symbols
	pkgsrc-2026Q1:1.48.0.2
	pkgsrc-2026Q1-base:1.48
	pkgsrc-2025Q4:1.47.0.2
	pkgsrc-2025Q4-base:1.47
	pkgsrc-2025Q3:1.46.0.2
	pkgsrc-2025Q3-base:1.46
	pkgsrc-2025Q2:1.44.0.2
	pkgsrc-2025Q2-base:1.44
	pkgsrc-2025Q1:1.43.0.2
	pkgsrc-2025Q1-base:1.43
	pkgsrc-2024Q4:1.40.0.2
	pkgsrc-2024Q4-base:1.40
	pkgsrc-2024Q3:1.39.0.4
	pkgsrc-2024Q3-base:1.39
	pkgsrc-2024Q2:1.39.0.2
	pkgsrc-2024Q2-base:1.39
	pkgsrc-2024Q1:1.37.0.2
	pkgsrc-2024Q1-base:1.37
	pkgsrc-2023Q4:1.35.0.2
	pkgsrc-2023Q4-base:1.35
	pkgsrc-2023Q3:1.33.0.2
	pkgsrc-2023Q3-base:1.33
	pkgsrc-2023Q2:1.31.0.2
	pkgsrc-2023Q2-base:1.31
	pkgsrc-2023Q1:1.29.0.8
	pkgsrc-2023Q1-base:1.29
	pkgsrc-2022Q4:1.29.0.6
	pkgsrc-2022Q4-base:1.29
	pkgsrc-2022Q3:1.29.0.4
	pkgsrc-2022Q3-base:1.29
	pkgsrc-2022Q2:1.29.0.2
	pkgsrc-2022Q2-base:1.29
	pkgsrc-2022Q1:1.28.0.2
	pkgsrc-2022Q1-base:1.28
	pkgsrc-2021Q4:1.25.0.2
	pkgsrc-2021Q4-base:1.25
	pkgsrc-2021Q3:1.23.0.2
	pkgsrc-2021Q3-base:1.23
	pkgsrc-2021Q2:1.21.0.2
	pkgsrc-2021Q2-base:1.21
	pkgsrc-2021Q1:1.19.0.2
	pkgsrc-2021Q1-base:1.19
	pkgsrc-2020Q4:1.18.0.2
	pkgsrc-2020Q4-base:1.18
	pkgsrc-2020Q3:1.16.0.2
	pkgsrc-2020Q3-base:1.16
	pkgsrc-2020Q2:1.15.0.2
	pkgsrc-2020Q2-base:1.15
	pkgsrc-2020Q1:1.12.0.2
	pkgsrc-2020Q1-base:1.12
	pkgsrc-2019Q4:1.9.0.4
	pkgsrc-2019Q4-base:1.9
	pkgsrc-2019Q3:1.7.0.6
	pkgsrc-2019Q3-base:1.7
	pkgsrc-2019Q2:1.7.0.4
	pkgsrc-2019Q2-base:1.7
	pkgsrc-2019Q1:1.7.0.2
	pkgsrc-2019Q1-base:1.7
	pkgsrc-2018Q4:1.6.0.2
	pkgsrc-2018Q4-base:1.6
	pkgsrc-2018Q3:1.2.0.4
	pkgsrc-2018Q3-base:1.2
	pkgsrc-2018Q2:1.2.0.2
	pkgsrc-2018Q2-base:1.2
	pkgsrc-2018Q1:1.1.0.4
	pkgsrc-2018Q1-base:1.1
	pkgsrc-2017Q4:1.1.0.2
	pkgsrc-2017Q4-base:1.1;
locks; strict;
comment	@# @;


1.48
date	2026.02.24.12.34.46;	author adam;	state Exp;
branches;
next	1.47;
commitid	lOzI9Odz0SYtYCvG;

1.47
date	2025.10.09.07.57.53;	author wiz;	state Exp;
branches;
next	1.46;
commitid	t4nMY0Dt3rBjSRdG;

1.46
date	2025.08.13.05.39.56;	author adam;	state Exp;
branches;
next	1.45;
commitid	iptjMNtMgfeMWw6G;

1.45
date	2025.07.05.11.44.20;	author wiz;	state Exp;
branches;
next	1.44;
commitid	B2KLCDAZOmgedy1G;

1.44
date	2025.04.15.09.51.03;	author adam;	state Exp;
branches;
next	1.43;
commitid	PcEoutbHaGw8c8RF;

1.43
date	2025.03.12.13.50.42;	author adam;	state Exp;
branches;
next	1.42;
commitid	ygpwRCXNuiP0CMMF;

1.42
date	2025.01.14.06.39.12;	author adam;	state Exp;
branches;
next	1.41;
commitid	IoTbfbAH4ChC3qFF;

1.41
date	2025.01.12.14.42.55;	author adam;	state Exp;
branches;
next	1.40;
commitid	gGwESkyqR7YvNcFF;

1.40
date	2024.11.11.07.28.50;	author wiz;	state Exp;
branches;
next	1.39;
commitid	1fBDq3LwS98NncxF;

1.39
date	2024.06.14.18.55.59;	author adam;	state Exp;
branches;
next	1.38;
commitid	Zdl9YZxmOi0R0ZdF;

1.38
date	2024.06.07.05.29.12;	author adam;	state Exp;
branches;
next	1.37;
commitid	qnxLRyGnIlzZL0dF;

1.37
date	2024.02.16.17.54.55;	author adam;	state Exp;
branches;
next	1.36;
commitid	ktEUbM1HHSx7vGYE;

1.36
date	2024.02.16.17.54.27;	author adam;	state Exp;
branches;
next	1.35;
commitid	wN2PETyUMreLuGYE;

1.35
date	2023.11.15.08.26.11;	author adam;	state Exp;
branches;
next	1.34;
commitid	ZAwZwEcv2ocilGME;

1.34
date	2023.11.09.08.55.25;	author adam;	state Exp;
branches;
next	1.33;
commitid	7CzPOzSJpCReHULE;

1.33
date	2023.08.04.08.07.45;	author adam;	state Exp;
branches;
next	1.32;
commitid	JvhtXPTkHsX1yrzE;

1.32
date	2023.07.27.06.53.53;	author adam;	state Exp;
branches;
next	1.31;
commitid	UfqXNmvPEwJLopyE;

1.31
date	2023.05.17.07.15.04;	author adam;	state Exp;
branches;
next	1.30;
commitid	PYIybrCnx2vFNhpE;

1.30
date	2023.05.08.07.15.56;	author adam;	state Exp;
branches;
next	1.29;
commitid	6lxSW0IM6sZt58oE;

1.29
date	2022.04.29.23.17.52;	author wiz;	state Exp;
branches;
next	1.28;
commitid	ZIiQ2a0okB6br9CD;

1.28
date	2022.01.29.08.48.41;	author wiz;	state Exp;
branches;
next	1.27;
commitid	lsUWM4b4ZtOlwvqD;

1.27
date	2022.01.24.18.24.47;	author adam;	state Exp;
branches;
next	1.26;
commitid	j3X3dvqLqwHURUpD;

1.26
date	2022.01.04.20.54.32;	author wiz;	state Exp;
branches;
next	1.25;
commitid	CYyhdK9qtoffkmnD;

1.25
date	2021.11.22.09.17.31;	author adam;	state Exp;
branches;
next	1.24;
commitid	trTWUFHBpfuLRLhD;

1.24
date	2021.11.02.10.17.06;	author adam;	state Exp;
branches;
next	1.23;
commitid	BwhQzrS8lTF3QcfD;

1.23
date	2021.09.19.10.45.51;	author adam;	state Exp;
branches;
next	1.22;
commitid	GOpTJ0IV0BfApy9D;

1.22
date	2021.08.11.09.48.41;	author adam;	state Exp;
branches;
next	1.21;
commitid	eIK0gzIM8XmJlx4D;

1.21
date	2021.04.28.09.58.03;	author adam;	state Exp;
branches;
next	1.20;
commitid	5RBujY7oGwFcM2RC;

1.20
date	2021.04.01.06.15.50;	author adam;	state Exp;
branches;
next	1.19;
commitid	EfvOujFXSzHMpyNC;

1.19
date	2021.03.18.07.29.31;	author adam;	state Exp;
branches;
next	1.18;
commitid	XZeYqhiEzubTgLLC;

1.18
date	2020.11.27.19.30.31;	author adam;	state Exp;
branches;
next	1.17;
commitid	xCzQYjecXxbvPyxC;

1.17
date	2020.10.06.05.43.30;	author adam;	state Exp;
branches;
next	1.16;
commitid	DcnJTNN4HAhqVNqC;

1.16
date	2020.08.11.06.36.08;	author adam;	state Exp;
branches;
next	1.15;
commitid	pf5cyFjY8sqY0CjC;

1.15
date	2020.06.17.06.47.21;	author adam;	state Exp;
branches;
next	1.14;
commitid	4TYZcAHObgixQxcC;

1.14
date	2020.05.16.18.00.31;	author adam;	state Exp;
branches;
next	1.13;
commitid	jzW3le9AWvajBu8C;

1.13
date	2020.04.22.20.21.15;	author adam;	state Exp;
branches;
next	1.12;
commitid	QgXIG8LFjcBh9q5C;

1.12
date	2020.03.03.05.59.30;	author adam;	state Exp;
branches;
next	1.11;
commitid	1YYHrdY7HwDnZUYB;

1.11
date	2020.02.25.09.06.23;	author adam;	state Exp;
branches;
next	1.10;
commitid	iv74ytCTfkDof2YB;

1.10
date	2019.12.30.17.51.49;	author adam;	state Exp;
branches;
next	1.9;
commitid	GXHZxt87rO8dZKQB;

1.9
date	2019.12.15.14.52.07;	author adam;	state Exp;
branches;
next	1.8;
commitid	ftYJyn9AQ5pwtOOB;

1.8
date	2019.12.03.17.08.40;	author adam;	state Exp;
branches;
next	1.7;
commitid	fe20rrez1OdhChNB;

1.7
date	2019.03.18.13.01.48;	author adam;	state Exp;
branches;
next	1.6;
commitid	SdjunEXlFyYHBQfB;

1.6
date	2018.12.18.10.03.05;	author adam;	state Exp;
branches;
next	1.5;
commitid	m5Ykezkc6RNLvg4B;

1.5
date	2018.11.23.11.35.28;	author adam;	state Exp;
branches;
next	1.4;
commitid	es72FkC8tJ5cP31B;

1.4
date	2018.11.09.10.46.56;	author adam;	state Exp;
branches;
next	1.3;
commitid	ZfAOsiMRH5Dy0gZA;

1.3
date	2018.11.04.22.26.04;	author adam;	state Exp;
branches;
next	1.2;
commitid	8KCxzHMv1ANb2GYA;

1.2
date	2018.04.11.19.56.28;	author adam;	state Exp;
branches;
next	1.1;
commitid	XHetOi54PftwR3yA;

1.1
date	2017.10.28.06.52.56;	author adam;	state Exp;
branches;
next	;
commitid	QnVJBacmxb4zPMcA;


desc
@@


1.48
log
@py-responses: updated to 0.26.0

0.26.0

* When using `assert_all_requests_are_fired=True`, assertions about
  unfired requests are now raised even when an exception occurs in the context manager or
  decorated function. Previously, these assertions were suppressed when exceptions occurred.
  This new behavior provides valuable debugging context about which mocked requests were
  or weren't called.
* Consider the `Retry-After` header when handling retries
@
text
@# $NetBSD: Makefile,v 1.47 2025/10/09 07:57:53 wiz Exp $

DISTNAME=	responses-0.26.0
PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
CATEGORIES=	net python
MASTER_SITES=	${MASTER_SITE_PYPI:=r/responses/}

MAINTAINER=	pkgsrc-users@@NetBSD.org
HOMEPAGE=	https://github.com/getsentry/responses
COMMENT=	Utility library for mocking out the requests Python library
LICENSE=	apache-2.0

TOOL_DEPENDS+=	${PYPKGPREFIX}-setuptools>=78:../../devel/py-setuptools
DEPENDS+=	${PYPKGPREFIX}-requests>=2.30.0:../../devel/py-requests
DEPENDS+=	${PYPKGPREFIX}-urllib3>=2.0.0:../../www/py-urllib3
DEPENDS+=	${PYPKGPREFIX}-yaml-[0-9]*:../../textproc/py-yaml
TEST_DEPENDS+=	${PYPKGPREFIX}-coverage>=6.0.0:../../devel/py-coverage
TEST_DEPENDS+=	${PYPKGPREFIX}-flake8-[0-9]*:../../devel/py-flake8
TEST_DEPENDS+=	${PYPKGPREFIX}-test-asyncio-[0-9]*:../../devel/py-test-asyncio
TEST_DEPENDS+=	${PYPKGPREFIX}-test-cov-[0-9]*:../../devel/py-test-cov
TEST_DEPENDS+=	${PYPKGPREFIX}-test-httpserver-[0-9]*:../../devel/py-test-httpserver
TEST_DEPENDS+=	${PYPKGPREFIX}-tomli_w-[0-9]*:../../textproc/py-tomli_w
TEST_DEPENDS+=	${PYPKGPREFIX}-types-yaml-[0-9]*:../../textproc/py-types-yaml

USE_LANGUAGES=	# none

PYTHON_VERSIONS_INCOMPATIBLE=	310

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


1.47
log
@*: remove reference to (removed) Python 3.9
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.46 2025/08/13 05:39:56 adam Exp $
d3 1
a3 1
DISTNAME=	responses-0.25.8
@


1.46
log
@py-responses: updated to 0.25.8

0.25.8
* Fix bug where the content type is always recorded as either text/plain or application/json.
* Allow asserts on add_callback() matches.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.45 2025/07/05 11:44:20 wiz Exp $
d27 1
a27 1
PYTHON_VERSIONS_INCOMPATIBLE=	39 310
@


1.45
log
@*: some more recursive Python restrictions on Python 3.11+

Reported in SmartOS bulk build
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.44 2025/04/15 09:51:03 adam Exp $
d3 1
a3 1
DISTNAME=	responses-0.25.7
a4 1
PKGREVISION=	1
@


1.44
log
@Fix PLIST after py-setuptools update; bump depends and revision
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.43 2025/03/12 13:50:42 adam Exp $
d28 2
@


1.43
log
@py-responses: updated to 0.25.7

0.25.7
* Added support for python 3.13
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.42 2025/01/14 06:39:12 adam Exp $
d5 1
d14 1
a14 1
TOOL_DEPENDS+=	${PYPKGPREFIX}-setuptools-[0-9]*:../../devel/py-setuptools
@


1.42
log
@py-responses: updated to 0.25.6

0.25.5

* Fix readme issue that prevented 0.25.4 from being published to pypi.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.41 2025/01/12 14:42:55 adam Exp $
d3 1
a3 1
DISTNAME=	responses-0.25.6
@


1.41
log
@py-responses: updated to 0.25.5

0.25.4

* Responses can now match requests that use `data` with file-like objects.
  Files will be read as bytes and stored in the request mock.
* `RequestsMock.matchers` was added. This property is an alias to `responses.matchers`.
* Removed tests from packaged wheels.
* Improved recorder API to ease use in REPL environments.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.40 2024/11/11 07:28:50 wiz Exp $
d3 1
a3 1
DISTNAME=	responses-0.25.5
@


1.40
log
@py-*: remove unused tool dependency

py-setuptools includes the py-wheel functionality nowadays
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.39 2024/06/14 18:55:59 adam Exp $
d3 1
a3 1
DISTNAME=	responses-0.25.3
a26 2
PYTHON_VERSIONS_INCOMPATIBLE=	27

@


1.39
log
@py-responses: updated to 0.25.3

0.25.3
* Fixed `recorder` not saving and loading response headers with yaml files.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.38 2024/06/07 05:29:12 adam Exp $
a13 1
TOOL_DEPENDS+=	${PYPKGPREFIX}-wheel-[0-9]*:../../devel/py-wheel
@


1.38
log
@py-responses: updated to 0.25.2

0.25.2
------

* Mulligan on 0.25.1 to run release pipeline correctly.
* Added `matchers.body_matcher` for matching string request bodies.

0.25.1
------

* Fixed tests failures during RPM package builds.
* Fix mocked HEAD responses that have `Content-Length` set.
* Fixed error messages when matches fail: inputs are not sorted or reformatted.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.37 2024/02/16 17:54:55 adam Exp $
d3 1
a3 1
DISTNAME=	responses-0.25.2
@


1.37
log
@py-responses: remove do-test target
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.36 2024/02/16 17:54:27 adam Exp $
d3 1
a3 1
DISTNAME=	responses-0.25.0
@


1.36
log
@py-responses: updated to 0.25.0

0.25.0

* Added support for Python 3.12
* Fixed `matchers.header_matcher` not failing when a matched header is missing from the request.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.35 2023/11/15 08:26:11 adam Exp $
a29 3
zz-do-test:
	cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX} responses/tests

@


1.35
log
@py-responses: updated to 0.24.1

0.24.1

* Reverted overloads removal
* Added typing to `Call` attributes.
* Fix socket issues
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.34 2023/11/09 08:55:25 adam Exp $
d3 1
a3 1
DISTNAME=	responses-0.24.1
d13 2
a19 1
TEST_DEPENDS+=	${PYPKGPREFIX}-test>=7.0.0:../../devel/py-test
d30 1
a30 1
do-test:
d33 1
a33 1
.include "../../lang/python/egg.mk"
@


1.34
log
@py-responses: updated to 0.24.0

0.24.0

* Added `BaseResponse.calls` to access calls data of a separate mocked request.
* Added `real_adapter_send` parameter to `RequestsMock` that will allow users to set
  through which function they would like to send real requests
* Added support for re.Pattern based header matching.
* Added support for gzipped response bodies to `json_params_matcher`.
* Fix `Content-Type` headers issue when the header was duplicated.
* Moved types-pyyaml dependency to `tests_requires`
* Removed Python3.7 support
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.33 2023/08/04 08:07:45 adam Exp $
d3 1
a3 1
DISTNAME=	responses-0.24.0
@


1.33
log
@py-responses: updated to 0.23.3

0.23.3
 * Allow urllib3>=1.25.10
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.32 2023/07/27 06:53:53 adam Exp $
d3 1
a3 1
DISTNAME=	responses-0.23.3
a14 1
DEPENDS+=	${PYPKGPREFIX}-types-yaml-[0-9]*:../../textproc/py-types-yaml
d23 1
@


1.32
log
@py-responses: updated to 0.23.2

0.23.2
------
> This release is the last to support Python 3.7

* Updated dependency to urllib3>=2 and requests>=2.30.0.
* Fixed issue when custom adapters were sending only positional args.
* Expose `unbound_on_send` method in `RequestsMock` class. This method returns new function
  that is called by `RequestsMock` instead of original `send` method defined by any adapter.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.31 2023/05/17 07:15:04 adam Exp $
d3 1
a3 1
DISTNAME=	responses-0.23.2
@


1.31
log
@py-responses: fix DEPENDS; bump revision
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.30 2023/05/08 07:15:56 adam Exp $
d3 1
a3 2
DISTNAME=	responses-0.23.1
PKGREVISION=	1
d13 2
a14 2
DEPENDS+=	${PYPKGPREFIX}-requests>=2.22.0:../../devel/py-requests
DEPENDS+=	${PYPKGPREFIX}-urllib3>=1.25.10:../../www/py-urllib3
d23 1
d27 1
a27 1
PYSETUPTESTTARGET=	pytest
d29 2
a30 1
PYTHON_VERSIONS_INCOMPATIBLE=	27
@


1.30
log
@py-responses: updated to 0.23.1

0.23.1
------

* Remove `tomli` import.

0.23.0
------

* Add Python 3.11 support
* Fix type annotations of `CallList`.
* `request` object is attached to any custom exception provided as `Response` `body` argument.
* Fixed mocked responses leaking between tests when `assert_all_requests_are_fired` and a request was not fired.
* [BETA] Default recorder format was changed to YAML.  Added `responses.RequestsMock._parse_response_file` and
  `responses._recorder.Recorder.dump_to_file` methods that allow users to override default parser to eg toml, json

0.22.0
------

* Update `requests` dependency to the version of 2.22.0 or higher.
* [BETA] Added possibility to record responses to TOML files via `@@_recorder.record(file_path="out.toml")` decorator.
* [BETA] Added possibility to replay responses (populate registry) from TOML files
  via `responses._add_from_file(file_path="out.toml")` method.
* Fix type for the `mock`'s patcher object.
* Fix type annotation for `CallList`
* Add `passthrough` argument to `BaseResponse` object.
* Fix `registries` leak.
* `OriginalResponseShim` is removed.
* Add support for the `loose` version of `json_params_matcher` via named argument `strict_match`.
* Add lists support as JSON objects in `json_params_matcher`.
* Added project links to pypi listing.
* `delete`, `get`, `head`, `options`, `patch`, `post`, `put` shortcuts are now implemented using `functools.partialmethod`.
* Fix `MaxRetryError` exception. Replace exception by `RetryError` according to `requests` implementation.
* Adjust error message when `Retry` is exhausted.

0.21.0
------

* Add `threading.Lock()` to allow `responses` working with `threading` module.
* Add `urllib3` `Retry` mechanism.
* Removed internal `_cookies_from_headers` function
* Now `add`, `upsert`, `replace` methods return registered response.
  `remove` method returns list of removed responses.
* Added null value support in `urlencoded_params_matcher` via `allow_blank` keyword argument
* Added strict version of decorator. Now you can apply `@@responses.activate(assert_all_requests_are_fired=True)`
  to your function to validate that all requests were executed in the wrapped function.


0.20.0
------

* Deprecate `responses.assert_all_requests_are_fired`, `responses.passthru_prefixes`, `responses.target`
  since they are not actual properties of the class instance.
  Use `responses.mock.assert_all_requests_are_fired`,
  `responses.mock.passthru_prefixes`, `responses.mock.target` instead.
* Fixed the issue when `reset()` method was called in not stopped mock.

0.19.0
------

* Added a registry that provides more strict ordering based on the invocation index.
  See `responses.registries.OrderedRegistry`.
* Added shortcuts for each request method: delete, get, head, options, patch, post, put.
  For example, to add response for POST request you can use `responses.post()` instead
  of `responses.add(responses.POST)`.
* Prevent `responses.activate` decorator to leak, if wrapped function called from within another
  wrapped function. Also, allow calling of above mentioned chain.
* Expose `get_registry()` method of `RequestsMock` object. Replaces internal `_get_registry()`.
* `query_param_matcher` can now accept dictionaries with `int` and `float` values.
* Add support for the `loose` version of `query_param_matcher` via named argument `strict_match`.
* Added support for `async/await` functions.
* `response_callback` is no longer executed on exceptions raised by failed `Response`s
* Change logic of `_get_url_and_path` to comply with RFC 3986. Now URL match occurs by matching
  schema, authority and path, where path is terminated by the first question mark ("?") or
  number sign ("#") character, or by the end of the URI.
* An error is now raised when both `content_type` and `headers[content-type]` are provided as parameters.
* When a request isn't matched the passthru prefixes are now included in error messages.


0.18.0
------

* Dropped support of Python 2.7, 3.5, 3.6
* Fixed issue with type annotation for `responses.activate` decorator.
* Removed internal `_is_string` and `_ensure_str` functions
* Removed internal `_quote` from `test_responses.py`
* Removed internal `_matches` attribute of `RequestsMock` object.
* Generated decorator wrapper now uses stdlib features instead of strings and exec
* Fix issue when Deprecation Warning was raised with default arguments
  in `responses.add_callback` due to `match_querystring`.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.29 2022/04/29 23:17:52 wiz Exp $
d4 1
d14 1
a14 2
DEPENDS+=	${PYPKGPREFIX}-requests>=2.0:../../devel/py-requests
DEPENDS+=	${PYPKGPREFIX}-six-[0-9]*:../../lang/py-six
d16 3
a18 2

TEST_DEPENDS+=	${PYPKGPREFIX}-coverage>=3.7.1:../../devel/py-coverage
d20 2
a21 1
TEST_DEPENDS+=	${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
d23 1
a23 3
TEST_DEPENDS+=	${PYPKGPREFIX}-test-localserver-[0-9]*:../../devel/py-test-localserver

PYTHON_VERSIONS_INCOMPATIBLE=	27
d29 2
@


1.29
log
@*: mark dependencies of py-test-localserver as not-for-python-2.x
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.28 2022/01/29 08:48:41 wiz Exp $
d3 1
a3 1
DISTNAME=	responses-0.17.0
@


1.28
log
@*: convert py-flake8 users to versioned_dependencies
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.27 2022/01/24 18:24:47 adam Exp $
a16 6
.include "../../lang/python/pyversion.mk"
.if ${_PYTHON_VERSION} == 27
DEPENDS+=	${PYPKGPREFIX}-cookies-[0-9]*:../../www/py-cookies
DEPENDS+=	${PYPKGPREFIX}-mock-[0-9]*:../../devel/py-mock
.endif

d18 2
d23 1
a23 2
PYTHON_VERSIONED_DEPENDENCIES+=	flake8:test
PYTHON_VERSIONED_DEPENDENCIES+=	test:test
a29 1
.include "../../lang/python/versioned_dependencies.mk"
@


1.27
log
@py-responses: updated to 0.17.0

0.17.0
------
* This release is the last to support Python 2.7.
* Fixed issue when `response.iter_content` when `chunk_size=None` entered infinite loop
* Fixed issue when `passthru_prefixes` persisted across tests.
  Now `add_passthru` is valid only within a context manager or for a single function and
  cleared on exit
* Deprecate `match_querystring` argument in `Response` and `CallbackResponse`.
  Use `responses.matchers.query_param_matcher` or `responses.matchers.query_string_matcher`
* Added support for non-UTF-8 bytes in `responses.matchers.multipart_matcher`
* Added `responses.registries`. Now user can create custom registries to
  manipulate the order of responses in the match algorithm
  `responses.activate(registry=CustomRegistry)`
* Fixed issue with response match when requests were performed between adding responses with
  same URL.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.26 2022/01/04 20:54:32 wiz Exp $
a23 1
TEST_DEPENDS+=	${PYPKGPREFIX}-flake8-[0-9]*:../../devel/py-flake8
d27 2
a28 1
PYTHON_VERSIONED_DEPENDENCIES=	test:test
@


1.26
log
@*: bump PKGREVISION for egg.mk users

They now have a tool dependency on py-setuptools instead of a DEPENDS
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.25 2021/11/22 09:17:31 adam Exp $
d3 1
a3 1
DISTNAME=	responses-0.16.0
a4 1
PKGREVISION=	1
@


1.25
log
@py-responses: updated to 0.16.0

0.16.0
------
* Fixed regression with `stream` parameter deprecation, requests.session() and cookie handling.
* Replaced adhoc URL parsing with `urllib.parse`.
* Added ``match`` parameter to ``add_callback`` method
* Added `responses.matchers.fragment_identifier_matcher`. This matcher allows you
  to match request URL fragment identifier.
* Improved test coverage.
* Fixed failing test in python 2.7 when `python-future` is also installed.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.24 2021/11/02 10:17:06 adam Exp $
d5 1
@


1.24
log
@py-responses: updated to 0.15.0

0.15.0
------

* Added `responses.PassthroughResponse` and
  `reponses.BaseResponse.passthrough`. These features make building passthrough
  responses more compatible with dynamcially generated response objects.
* Removed the unused ``_is_redirect()`` function from responses internals.
* Added `responses.matchers.request_kwargs_matcher`. This matcher allows you
  to match additional request arguments like `stream`.
* Added `responses.matchers.multipart_matcher`. This matcher allows you
  to match request body and headers for ``multipart/form-data`` data
* Added `responses.matchers.query_string_matcher`. This matcher allows you
  to match request query string, similar to `responses.matchers.query_param_matcher`.
* Added `responses.matchers.header_matcher()`. This matcher allows you to match
  request headers. By default only headers supplied to `header_matcher()` are checked.
  You can make header matching exhaustive by passing `strict_match=True` to `header_matcher()`.
* Changed all matchers output message in case of mismatch. Now message is aligned
  between Python2 and Python3 versions
* Deprecate ``stream`` argument in ``Response`` and ``CallbackResponse``
* Added Python 3.10 support
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.23 2021/09/19 10:45:51 adam Exp $
d3 1
a3 1
DISTNAME=	responses-0.15.0
@


1.23
log
@py-responses: updated to 0.14.0

0.14.0
------
* Added `responses.matchers`.
* Moved `responses.json_params_matcher` to `responses.matchers.json_params_matcher`
* Moved `responses.urlencoded_params_matcher` to
  `responses.matchers.urlencoded_params_matcher`
* Added `responses.matchers.query_param_matcher`. This matcher allows you
  to match query strings with a dictionary.
* Added `auto_calculate_content_length` option to `responses.add()`. When
  enabled, this option will generate a `Content-Length` header
  based on the number of bytes in the response body.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.22 2021/08/11 09:48:41 adam Exp $
d3 1
a3 1
DISTNAME=	responses-0.14.0
@


1.22
log
@py-responses: updated to 0.13.4

0.13.4
* Improve typing support
* Use URLs with normalized hostnames when comparing URLs.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.21 2021/04/28 09:58:03 adam Exp $
d3 1
a3 1
DISTNAME=	responses-0.13.4
@


1.21
log
@py-responses: updated to 0.13.3

0.13.3
* Switch from Travis to GHA for deployment.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.20 2021/04/01 06:15:50 adam Exp $
d3 1
a3 1
DISTNAME=	responses-0.13.3
@


1.20
log
@py-responses: updated to 0.13.2

0.13.2
* Fixed incorrect type stubs for `add_callback`
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.19 2021/03/18 07:29:31 adam Exp $
d3 1
a3 1
DISTNAME=	responses-0.13.2
@


1.19
log
@py-responses: updated to 0.13.1

0.13.1
* Fixed packages not containing type stubs.

0.13.0
* `responses.upsert()` was added. This method will `add()` a response if one
  has not already been registered for a URL, or `replace()` an existing
  response.
* `responses.registered()` was added. The method allows you to get a list of
  the currently registered responses. This formalizes the previously private
  `responses.mock._matches` method.
* A more useful `__repr__` has been added to `Response`.
* Error messages have been improved.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.18 2020/11/27 19:30:31 adam Exp $
d3 1
a3 1
DISTNAME=	responses-0.13.1
@


1.18
log
@py-responses: updated to 0.12.1

0.12.1
* `responses.urlencoded_params_matcher` and `responses.json_params_matcher` now
  accept None to match empty requests.
* Fixed imports to work with new `urllib3` versions.
* `request.params` now allows parameters to have multiple values for the same key.
* Improved ConnectionError messages.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.17 2020/10/06 05:43:30 adam Exp $
d3 1
a3 1
DISTNAME=	responses-0.12.1
d13 1
a14 1
DEPENDS+=	${PYPKGPREFIX}-requests>=2.0:../../devel/py-requests
d32 2
@


1.17
log
@py-responses: updated to 0.12.0

0.12.0
- Remove support for Python 3.4.

0.11.0
- Added the `match` parameter to `add()`.
- Added `responses.urlencoded_params_matcher()` and `responses.json_params_matcher()`.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.16 2020/08/11 06:36:08 adam Exp $
d3 1
a3 1
DISTNAME=	responses-0.12.0
@


1.16
log
@py-responses: updated to 0.10.16

0.10.16
- Add a requirements pin to urllib3. This helps prevent broken install states where
  cookie usage fails.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.15 2020/06/17 06:47:21 adam Exp $
d3 1
a3 1
DISTNAME=	responses-0.10.16
d15 1
@


1.15
log
@py-responses: updated to 0.10.15

0.10.15
- Added `assert_call_count` to improve ergonomics around ensuring a mock was called.
- Fix incorrect handling of paths with query strings.
- Add Python 3.9 support to CI matrix.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.14 2020/05/16 18:00:31 adam Exp $
d3 1
a3 1
DISTNAME=	responses-0.10.15
@


1.14
log
@pytest from versioned depends
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.13 2020/04/22 20:21:15 adam Exp $
d3 1
a3 1
DISTNAME=	responses-0.10.14
@


1.13
log
@py-responses: updated to 0.10.14

Responses 0.10.14
Version bump to align tags with setup.py

Responses 0.10.13
Improved README examples.
Improved handling of unicode bodies. The inferred content-type for unicode bodies is now text/plain; charset=utf-8.
Streamlined querysting matching code.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.12 2020/03/03 05:59:30 adam Exp $
a23 1
TEST_DEPENDS+=	${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
d27 2
d32 1
@


1.12
log
@py-responses: updated to 0.10.12

0.10.12
- Fixed incorrect content-type in `add_callback()` when headers are provided as a list of tuples.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.11 2020/02/25 09:06:23 adam Exp $
d3 1
a3 1
DISTNAME=	responses-0.10.12
@


1.11
log
@py-responses: updated to 0.10.11

0.10.11
- Fixed invalid README formatted.
- Fixed string formatting in error message.

0.10.10
- Added Python 3.8 support
- Remove Python 3.4 from test suite matrix.
- The `response.request` object now has a `params` attribute that contains the query string parameters from the request that was captured.
- `add_passthru` now supports `re` pattern objects to match URLs.
- ConnectionErrors raised by responses now include more details on the request that was attempted and the mocks registered.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.10 2019/12/30 17:51:49 adam Exp $
d3 1
a3 1
DISTNAME=	responses-0.10.11
@


1.10
log
@py-responses: updated to 0.10.9

0.10.9
- Fixed regression with `add_callback()` and content-type header.
- Fixed implicit dependency on urllib3>1.23.0
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.9 2019/12/15 14:52:07 adam Exp $
d3 1
a3 1
DISTNAME=	responses-0.10.9
@


1.9
log
@py-responses: updated to 0.10.8

0.10.8
- Fixed cookie parsing and enabled multiple cookies to be set by using a list of
  tuple values.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.8 2019/12/03 17:08:40 adam Exp $
d3 1
a3 1
DISTNAME=	responses-0.10.8
@


1.8
log
@py-responses: updated to 0.10.7

Responses 0.10.7
Improved formatting of project description in pypi.
Unicode cookie values are now normalized to URL quoted encoding.
Module exports are statically defined improving code completion and IDE navigation.
Improved compatibility with pytest 5
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.7 2019/03/18 13:01:48 adam Exp $
d3 1
a3 1
DISTNAME=	responses-0.10.7
@


1.7
log
@py-responses: updated to 0.10.6

0.10.6
- Improved documentation.
- Improved installation requirements for py3
- ConnectionError's raised by responses now indicate which request
  path/method failed to match a mock.
- test_responses.py is no longer part of the installation targets.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.6 2018/12/18 10:03:05 adam Exp $
d3 1
a3 1
DISTNAME=	responses-0.10.6
@


1.6
log
@py-responses: updated to 0.10.5

Responses 0.10.5
Fix callback exception mocking.
Improve test coverage
Improve build configuration.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.5 2018/11/23 11:35:28 adam Exp $
d3 1
a3 1
DISTNAME=	responses-0.10.5
@


1.5
log
@py-responses: updated to 0.10.4

0.10.4
- Fixed generated wrapper when using @@responses.activate in Python 3.6+
  when decorated functions use parameter and/or return annotations.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.4 2018/11/09 10:46:56 adam Exp $
d3 1
a3 1
DISTNAME=	responses-0.10.4
@


1.4
log
@py-responses: updated to 0.10.3

0.10.3:
- Fixed deprecation warnings in python 3.7 for inspect module usage.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.3 2018/11/04 22:26:04 adam Exp $
d3 1
a3 1
DISTNAME=	responses-0.10.3
@


1.3
log
@py-responses: updated to 0.10.2

0.10.2
- Fixed build setup to use undeprecated pytest bin stub.
- Updated tox configuration.
- Added example of using responses with pytest.fixture
- Removed dependency on biscuits in py3. Instead http.cookies is being used.

0.10.1
- Packaging fix to distribute wheel

0.10.0
- Fix passing through extra settings
- Fix collections.abc warning on Python 3.7
- Use 'biscuits' library instead of 'cookies' on Python 3.4+
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.2 2018/04/11 19:56:28 adam Exp $
d3 1
a3 1
DISTNAME=	responses-0.10.2
@


1.2
log
@py-responses: updated to 0.9.0

0.9.0
- Support for Python 3.7
- Support streaming responses for BaseResponse
- Support custom patch targets for mock
- Fix unicode support for passthru urls
- Fix support for unicode in domain names and tlds
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.1 2017/10/28 06:52:56 adam Exp $
d3 1
a3 1
DISTNAME=	responses-0.9.0
a12 1
DEPENDS+=	${PYPKGPREFIX}-cookies-[0-9]*:../../www/py-cookies
d17 2
a18 2

.if "${PYPKGPREFIX}" == "py27"
@


1.1
log
@py-responses: added version 0.8.1

A utility library for mocking out the requests Python library.
@
text
@d1 1
a1 1
# $NetBSD$
d3 1
a3 1
DISTNAME=	responses-0.8.1
d23 5
a27 5
BUILD_DEPENDS+=	${PYPKGPREFIX}-coverage>=3.7.1:../../devel/py-coverage
BUILD_DEPENDS+=	${PYPKGPREFIX}-flake8-[0-9]*:../../devel/py-flake8
BUILD_DEPENDS+=	${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
BUILD_DEPENDS+=	${PYPKGPREFIX}-test-cov-[0-9]*:../../devel/py-test-cov
BUILD_DEPENDS+=	${PYPKGPREFIX}-test-localserver-[0-9]*:../../devel/py-test-localserver
a30 3
#post-install:
#	cd ${DESTDIR}${PREFIX}/bin && ${MV} tldextract tldextract${PYVERSSUFFIX} || ${TRUE}

@

