Commit Graph

32 Commits

Author SHA256 Message Date
Steve Kowalik
55cac90fb1 - Drop unneeded Requires, and also no longer restrict urllib3.
- Switch to pyproject macros.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests-mock?expand=0&rev=58
2024-03-13 06:31:16 +00:00
e52ac64447 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests-mock?expand=0&rev=56 2023-07-17 21:10:18 +00:00
2b65f10372 - update to 1.11.0:
* 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.
  * .. _requests-mock_1.11.0_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.
- drop remove-mock.patch (upstream)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests-mock?expand=0&rev=55
2023-07-17 16:29:08 +00:00
3da76ed9d4 Accepting request 1081596 from home:dirkmueller:acdc:as_python3_module
SR for python stack proposal

OBS-URL: https://build.opensuse.org/request/show/1081596
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests-mock?expand=0&rev=53
2023-04-21 13:37:38 +00:00
bf550dec1d - switch to run tests with pytest
- build with all python flavors for SLE 15 SP4+

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests-mock?expand=0&rev=51
2023-02-01 20:41:07 +00:00
c806c7d6ee - update to 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

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests-mock?expand=0&rev=49
2023-01-07 22:57:14 +00:00
Steve Kowalik
bd05a5217c - Add patch remove-mock.patch:
* Use unittest.mock if available.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests-mock?expand=0&rev=47
2022-07-22 11:15:57 +00:00
302dec0b03 - update to 1.9.3:
* Release note for 1.9.3 type annotations
  * Additional improvements to response matching type stubs
  * Improve MockerCore type stubs

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests-mock?expand=0&rev=45
2021-06-06 11:59:08 +00:00
ecc769048c - update to 1.9.2:
* Add release note for urlquote fix
  * Simple tests to ensure character encoding works
  * Use requests to quote URLs
  * Remove circleci badge from README
  * Restore py.typed file to enable types
  * Change tag pattern
  * Url Quote the path provided to the mocker
  * Use github action to push a release to PyPI (#163)
  * Release note for type hints
  * Add [PEP 484](https://www.python.org/dev/peps/pep-0484/) type hints
  * Mocker.copy: Use correct type when copying mocker
  * Run unit tests for pull requests as well
  * Add support for Python up to 3.9
  * Use Github Actions
  * Make is\_bound\_method private
  * Add release note for fixed bug
  * Correctly handle an explicit zero byte read
  * Add missing string delimiter in example
  * fix: is\_bound\_method by six
  * fix: \`session\` and \`real\_http\` cannot be used at the same time

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests-mock?expand=0&rev=43
2021-05-18 21:10:22 +00:00
1247936292 Accepting request 854221 from home:bnavigator:branches:devel:languages:python
- Support TW with multiple python3 flavors
  * gh#openSUSE/python-rpm-macros#66
  * fix BuildRequires
  * fix %python_expand $python executable replacement

OBS-URL: https://build.opensuse.org/request/show/854221
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests-mock?expand=0&rev=41
2020-12-09 11:58:26 +00:00
8e347acd47 - update to 1.8.0:
* Remove requests 2.3 compatibility code
  * Add release notes for reset function
  * Add release note for session scoped mock
  * Allow passing session as postiional argument
  * Create bound method instead of a wrapper
  * Added reset\_mock to \_RequestHistoryTracker and Adapter (#139)
  * doc on session Mockers
  * doc on nesting Mockers
  * fix README.rst typo
  * suggest Mocker for users unfamiliar with adapters
  * update examples to mount adapter on 'mock://'
  * fix global/session mock interactions and real\_http
  * Added installation instructions
  * Add release note for nested mocking
  * fix redirects (#105) and mock nesting (#116)
  * Mark IOReader object closed when using a stream
  * Add the default response reason if not set
  * Don't check that proxies are set in test
  * Add StackOverflow tag to README
  * Mention pytest fixture on the README
  * Add background information to pytest doc
  * docs: update examples to match Read the Docs
  * Expose real\_http as a public property
  * fix py27 error
  * easier session scoped mock

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests-mock?expand=0&rev=39
2020-06-14 09:12:09 +00:00
Tomáš Chvátal
9c6c301856 Accepting request 731078 from home:jengelh:branches:devel:languages:python
- Use noun phrsae in summary.

OBS-URL: https://build.opensuse.org/request/show/731078
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests-mock?expand=0&rev=37
2019-09-16 07:32:26 +00:00
Tomáš Chvátal
da1dc4a45a - Update to 1.7.0:
* support for purl

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests-mock?expand=0&rev=36
2019-09-10 10:49:45 +00:00
Tomáš Chvátal
3c9fd22b51 - Update to 1.6.0:
* Various fkale8 and tests fixes
- Run also pytest tests
- Fixup the requirements for testing
- Fix fdupes call

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests-mock?expand=0&rev=34
2019-06-07 11:55:11 +00:00
Tomáš Chvátal
c701d9f6f2 Accepting request 701322 from home:pgajdos
- version update to 1.6.0
  * Respect user provided content encoding type
  * Update minimum requests version to 2.3
  * Add testing for Python 3.7 & PyPy3
  * Drop \_matcher from request pickled state
  * Clarify the pytest configuration documentation

OBS-URL: https://build.opensuse.org/request/show/701322
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests-mock?expand=0&rev=32
2019-05-07 13:47:22 +00:00
Thomas Bechtold
0349cb3d07 - update to 0.27.4:
- New `pygit2.LIBGIT2_VER` tuple
  - New objects now support (in)equality comparison and hash
  - New references now support (in)equality comparison
  - New `paths` optional argument in `Repository.checkout()`
  - Fix speed and windows package regression
  - Fix deprecation warning
  - Documentation fixes
  - Add Python classifiers to setup.py
  - Speeding up tests in Travis
  - Breaking changes:
    - Remove deprecated `Reference.get_object()`, use `Reference.peel()` instead
  - Move to pytest, drop support for Python 3.3 and cffi 0.x
  - New support comparing signatures for (in)equality
  - New ``Submodule.head_id``
  - New ``Remote.prune(...)``
  - New ``pygit2.reference_is_valid_name(...)``
  - New ``AlreadyExistsError`` and ``InvalidSpecError``
  - New ``Reference.raw_name``, ``Reference.raw_shorthand``, ``Tag.raw_name``,
  - Fix decode error in commit messages and signatures
  - Fix, raise error in ``Repository.descendant_of(...)`` if commit doesn't exist
  - Documentation fixes
  - Breaking changes:
    - Remove undocumented ``Tag._message``, replaced by ``Tag.raw_message``
  - Add support for Python 3.7
  - New ``Object.short_id``
  - New ``Repository.descendant_of`` and ``Repository.branches.with_commit``
  - Fix repository initialization in ``clone_repository(...)``
  - Fix several warnings and errors, commits
  - Documentation fixes and improvements

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests-mock?expand=0&rev=30
2019-03-07 15:02:13 +00:00
c742703d5b Clean up the SPEC file
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests-mock?expand=0&rev=28
2018-12-04 17:21:24 +00:00
a2780e4859 Remove superfluous devel dependency for noarch package
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests-mock?expand=0&rev=27
2018-12-04 13:59:54 +00:00
Todd R
fa3140f8c1 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests-mock?expand=0&rev=26 2018-11-08 17:34:22 +00:00
Todd R
068f8f57e0 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests-mock?expand=0&rev=23 2018-11-08 17:27:48 +00:00
Todd R
3bb1ea93e7 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests-mock?expand=0&rev=22 2018-11-08 17:24:40 +00:00
Todd R
02d5387066 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests-mock?expand=0&rev=19 2018-11-08 17:22:24 +00:00
Thomas Bechtold
999f5d0196 - update to 1.4.0:
* allow an adapter to be passed to a Mocker object
  * Rename [wheel] section to [bdist\_wheel] as the former is legacy
  * Include license file in the generated wheel package
  * Add testing for newer Python versions 3.5 and 3.6
  * Return a separate copy for each call to decorator
  * Add string representation to \_RequestObjectProxy

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests-mock?expand=0&rev=17
2018-02-23 13:54:29 +00:00
c01ec2a74a - fix build for SLE12
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests-mock?expand=0&rev=15
2017-06-14 16:37:25 +00:00
651feb7a20 - update to 1.3.0:
* Add a releasenote for additional_matcher
  * Add documentation for the exception response
  * Fix occurences of `adatper`
  * Type check the empty string when creating repsonse
  * Allow arbirtrary matcher to be add to match

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests-mock?expand=0&rev=14
2017-06-10 07:49:07 +00:00
454fadbebe Accepting request 499458 from home:sebix:branches:devel:languages:python
singlespec required by Request#498334

OBS-URL: https://build.opensuse.org/request/show/499458
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests-mock?expand=0&rev=12
2017-06-06 08:24:19 +00:00
e42438930b Accepting request 453417 from home:tbechtold:branches:devel:languages:python
- update to 1.2.0:
  * Allow for nested mocking
  * Use create_response for fake http response in tests
  * Add hostname and port properties to request
  * Move request code and tests into their own files
  * Add called_once to Mocker
  * Fix docs building
  * Fix exception message when creating a response

OBS-URL: https://build.opensuse.org/request/show/453417
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests-mock?expand=0&rev=10
2017-01-30 15:33:58 +00:00
1b9101db59 Accepting request 430714 from home:tbechtold:branches:devel:languages:python
- update to 1.1.0:
  * Add a called_once property to adapter
  * Enable case sensitive matching
  * Provide fixture extras for pip
  * Allow doing real_http per mock via the mocker
  * Return b'' when reading closed response
  * Fixture documentation error

OBS-URL: https://build.opensuse.org/request/show/430714
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests-mock?expand=0&rev=8
2016-09-28 16:32:09 +00:00
5606e447f0 - fix source url
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests-mock?expand=0&rev=6
2016-07-08 08:55:36 +00:00
f044b20d78 Accepting request 406991 from home:tbechtold:branches:devel:languages:python
- update to 1.0.0:
  * Add tox environment to run against master requests
  * Change dev status classifier to stable
  * Doc fixups
  * Expose cert and proxies as attributes of the last request
  * Add timeout and allow_retries to RequestProxy
  * Fix py34 DB issue and remove py33/py26
  * Remove pypip.in badge from readme

OBS-URL: https://build.opensuse.org/request/show/406991
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests-mock?expand=0&rev=5
2016-07-06 16:17:27 +00:00
c916591998 - update to 0.7.0:
* Support Cookies
  * Expose Fake objects in compat
  * Update .gitreview for new namespace
  * Change ignore-errors to ignore_errors

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests-mock?expand=0&rev=3
2015-12-04 08:01:04 +00:00
Denisart Benjamin
a4a37f01e3 Accepting request 298197 from Cloud:OpenStack:Master
Initial packaging

OBS-URL: https://build.opensuse.org/request/show/298197
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests-mock?expand=0&rev=1
2015-04-24 14:30:55 +00:00