./devel/py-requests-mock, Mock out responses from the requests package

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 1.11.0, Package name: py311-requests-mock-1.11.0, Maintainer: pkgsrc-users

requests-mock provides a building block to stub out the HTTP requests portions
of your testing code. You should checkout the docs for more information.


Required to run:
[devel/py-setuptools] [devel/py-requests] [lang/py-six] [lang/python37]

Required to build:
[devel/py-pbr] [pkgtools/cwrappers]

Master sites:

Filesize: 72.634 KB

Version history: (Expand)


CVS history: (Expand)


   2023-11-07 23:38:10 by Thomas Klausner | Files touched by this commit (112)
Log message:
*: latest py-sphinx only support Python 3.9+
   2023-07-08 09:33:35 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-requests-mock: updated to 1.11.0

1.11.0
======

New Features
------------
- Exposes some public type aliases (for type hinting only, they can't be \ 
instanciated)
  for the types intended to be used by `requests_mock` users.
  The following types are now exposed:
  - `requests_mock.Context` used in callbacks
  - `requests_mock.Request` used in callbacks, which is a \ 
`requests.PreparedRequest` proxy.
  - `requests_mock.Callback[T]` which is the callbacks type.

Bug Fixes
---------
- Some typing inconsistencies have been fixed.
  Especially for `request` object in signatures which is in fact a \ 
`requests_mock.Request` object.

- Fix incompatibility with urllib3 >2.0.0. In 2.0.0 they default to enforcing
  content length checking on returned bodies in responses from the previous
  default of false. However the flag is still available so for compatibility
  we can just default the other way.
   2023-06-06 14:42:56 by Taylor R Campbell | Files touched by this commit (1319)
Log message:
Mass-change BUILD_DEPENDS to TOOL_DEPENDS outside mk/.

Almost all uses, if not all of them, are wrong, according to the
semantics of BUILD_DEPENDS (packages built for target available for
use _by_ tools at build-time) and TOOL_DEPEPNDS (packages built for
host available for use _as_ tools at build-time).

No change to BUILD_DEPENDS as used correctly inside buildlink3.

As proposed on tech-pkg:
https://mail-index.netbsd.org/tech-pkg/2023/06/03/msg027632.html
   2022-10-13 18:13:43 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-requests-mock: updated to 1.10.0

1.10.0
------
* Add a release note for the RLock
* Allow passing json\_encoder to mocking
* Improvements to Type Hints
* Lint fix for long line exception
* Shorten line length of comments
* Workaround for python2.7 not supporting lock timeout
* Comments to explain reentrant behaviour
* Change to use RLock and set a timeout to prevent infinite deadlocks
* Update homepage/doc URLs of requests library
* Add comment for pytest late loading feature
* pytest plugin should lazy-load requests\_mock
* Add test for threaded race condition
* Use threading.Lock() to prevent race conditions around monkeypatching of \ 
get\_adapter()
* add GitHub URL for PyPi
* Add reset methods on the Mocker class type
* Avoid using distutils to check pytest version
* YAML quoting
* Support Python 3.10
* Minor changes to code snippet example
* Fix DeprecationWarnings in setup.cfg keys
* a few minor fixes and proposed changes to documentation files
* Improve response-related param type hints
* Explicitly indicate start of keyword-only args
* Fix failing pytest
   2022-04-30 01:29:18 by Thomas Klausner | Files touched by this commit (13)
Log message:
*: mark dependencies of py-pbr and py-test-virtualenv as not-for-python-2.x
   2022-01-27 11:57:32 by Thomas Klausner | Files touched by this commit (10)
Log message:
*: switch py-testtools users to versioned_dependencies.mk
   2022-01-04 21:55:40 by Thomas Klausner | Files touched by this commit (1595)
Log message:
*: bump PKGREVISION for egg.mk users

They now have a tool dependency on py-setuptools instead of a DEPENDS
   2021-10-26 12:20:11 by Nia Alarie | Files touched by this commit (3016)
Log message:
archivers: Replace RMD160 checksums with BLAKE2s checksums

All checksums have been double-checked against existing RMD160 and
SHA512 hashes

Could not be committed due to merge conflict:
devel/py-traitlets/distinfo

The following distfiles were unfetchable (note: some may be only fetched
conditionally):

./devel/pvs/distinfo pvs-3.2-solaris.tgz
./devel/eclipse/distinfo eclipse-sourceBuild-srcIncluded-3.0.1.zip