Skip to content

Releases: kitops-ml/pykitops

Release v1.3.0

16 Jun 18:39
baf117e
Compare
Choose a tag to compare

Breaking Changes

Within this release, we migrated from custom validation to using Pydantic models. This does change how you interact with the Kitfile within PyKitOps. In previous version (<1.3.0), you would access properties through .get() or typically dictionary setter methods for individual properties. This was due to the underlying typing being a dict. Starting with v1.3.0, you can no longer access properties through .get() and can instead access the properties directly. The same is true for setter methods. This will require updates to how you access and set properties within your Python Kitfiles. Generally the impact is small but requires the follow translations shown in the example below.

An example:

# <1.3.0
kitfile.package.get("name")
kitfile.package["name"] = "MyName"

# >=1.3.0
kitfile.package.name
kitfile.package.name = "MyName"

Significant Changes

  • A number of dependency updates
  • Add Pydantic models by @Burhan-Q in #40

Full Changelog: v1.2.1...v1.3.0