Skip to content

pact-python/4.1.0

Latest

Choose a tag to compare

@github-actions github-actions released this 16 Oct 06:23

馃殌 Features

  • (types) Add a str-based URL type

馃悰 Bug Fixes

  • Keep pact attributes bound under lazy imports

馃殰 Refactor

  • (verifier) [breaking] Accept only str URLs

    Verifier.state_handler and Verifier.add_source accept only str URLs, and raise TypeError for a yarl.URL; pass str(url) instead. pact.types.StateHandlerUrl is now an alias of str.

  • [breaking] Replace yarl.URL with a str-based URL

    PactServer.url and PactServer / str return pact.types.URL, a str subclass that supports / and the scheme, host, port and path attributes. Other yarl.URL methods, such as with_query, are gone; pass query parameters to the HTTP client instead. yarl is no longer a dependency.

鈿★笍 Performance

  • Write the version file at build time
  • Import the message and state servers on demand

馃И Testing

  • Run the suite with lazy Pact imports on Python 3.15

Contributors