Pact-python

Latest version: v2.2.2

Safety actively analyzes 688746 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 12

2.2.2

BREAKING CHANGE

- Python 3.8 support dropped
- The `srv.mismatches` is changed from a `list[dict[str,
Any]]` to a `list[Mismatch]`.

Feat

- add Python 3.13, drop 3.8
- improve mismatch error
- add ArrayContainsMatcher
- add each key/value matchers
- add uuid matcher
- add match aliases
- improve match module
- add strftime to java date format converter
- add matchable typevar
- **examples**: add post and delete

Fix

- ISO 8601 incompatibility
- typing annotations
- **examples**: do not publish postgres port
- **examples**: use wget for broker healthcheck
- **examples**: do not overwrite pact file on every test
- ensure matchers optionally use generators
- kwargs typing
- incompatible override
- missing typing arguments

Refactor

- match module
- generators module
- create pact.v3.types module
- generate module in style of match module
- rename generators to generate
- matcher
- split types into stub
- rename matchers to match
- prefer `|` over Optional and Union

2.2.1

Feat

- **ffi**: upgrade ffi to 0.4.22
- **v3**: add async message provider
- **v3**: implement message verification
- **v3**: remove deprecated messages iterator
- **v3**: improve exception types
- **v3**: add enum type aliases
- **ffi**: upgrade ffi 0.4.21

Fix

- **ffi**: use `with_binary_body`

Refactor

- **tests**: move InteractionDefinition in own module
- **tests**: make `_add_body` a method of Body
- **v3**: new interaction iterators

2.2.0

Feat

- upgrade FFI to 0.4.19
- **v3**: add verbose mismatches
- **v3**: add verifier class

Fix

- **v3**: strip embedded user/password from urls
- **v3**: allow optional publish options
- delay pytest 8.1

Refactor

- remove relative imports
- **tests**: move parse_headers/matching_rules out of class

2.1.3

Fix

- avoid wheel bloat

2.1.2

BREAKING CHANGE

- The public functions within the constants module have been removed. If you previously used them, please make use of the constants. For example, instead of `pact.constants.broker_client_exe()` use `pact.constants.BROKER_CLIENT_PATH` instead.
- It is possible to use the system installed Pact executables by setting `PACT_USE_SYSTEM_BINS` to `True` or `Yes` (case insensitive).

Feat

- add support for musllinux_aarch64
- **v3**: add specification attribute to pacts
- **v3**: upgrade ffi to 0.4.18
- determine version from vcs
- **v3**: add with_matching_rules
- add python 3.12 support
- **v3**: implement server log methods
- **v3**: add mock server mismatches
- **v3**: implement Pact Handle methods
- **ffi**: add OwnedString class
- **v3**: implement interaction methods
- **v3**: implement pact class
- **v3**: add v3.ffi module

Fix

- clean pact interactions on exception
- **v3**: incorrect arg order
- **v3**: rename `with_binary_file`
- **example**: publish message pact
- **example**: publish_verification_results typo
- **example**: unknown action
- **v3**: add `__next__` implementation
- **deps**: add yarl dependency
- **v3**: unconventional `__repr__` implementation
- **build**: include omitted `lib` dir
- **test**: ignore internal deprecation warnings
- **ci**: add missing environment

Refactor

- **v3**: split interactions into modules
- refactor constants

2.1.1

Identical to 2.1.0, but with a fix to the publication process to PyPI.

Page 1 of 12

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.