Changelog
This Python SDK release introduces an important change regarding how its dependencies are installed. By default, only the required dependencies to interact with Infrahub API will be installed. Two extras are provided in addition to the base SDK, ctl
and tests
, which are required to run infrahubctl
commands and to use the SDK test framework respectively.
Extras can be installed using pip
like:
pip install 'infrahub-sdk[ctl]'
pip install 'infrahub-sdk[tests]'
Or with Poetry by having the following in a pyproject.toml
:
infrahub-sdk = { version = "0.9.0", extras = [ "ctl", "tests" ] }
🚀 Features
- Fix inconsistency issues with
infrahubctl check
@ogenstad (#2557) - Add
extend
method to Python SDKRelationshipManager
@gmazoyer (#2563) - Add support for deleting and renaming existing element of the schema @dgarros (#2539)
- Allow dumping and loading many-to-many relationships @gmazoyer (#2503)
- Allow excluding kinds when using
infrahubctl dump
@gmazoyer (#2488) - Add
infrahubctl version
command @wvandeun (#2429)
🐛 Bug Fixes
- Only send relationship update when there has been an update @ajtmccarty (#2633)
- Fix relationships dump if none found @gmazoyer (#2604)
- Prevent peers from being edited before calling fetch in SDK @ajtmccarty (#2595)
- Fix failure due to missing extras @gmazoyer (#2601)
- Fix wrong base URL for diff endpoint @fatih-acar (#2583)
- Make branch not found error friendlier @ogenstad (#2574)
- Skip test items with invalid resource config @gmazoyer (#2580)
- Do not attempt to load empty schema file @gmazoyer (#2562)
- Fix GraphQL queries and Jinja2 templates lookup in tests @gmazoyer (#2498)