AllexVeldman / pyoci

Publish and install private python packages using OCI/docker registries.
MIT License
8 stars 0 forks source link

refactor(package): Rewrite of `package::Info` #66

Closed AllexVeldman closed 2 weeks ago

AllexVeldman commented 2 weeks ago

Rename Info to Package.

The new Package is simpler in structure and utilizes type state to ensure the version and arch fields can only be used in the appropriate context.

The registry and namespace fields are no longer owned by Package as they never change and won't outlive the lifetime of the request. This prevents multiple clones, especially in list_package_files.