feat: create item meta data & .pyz files#17
Draft
hemanialaparthi wants to merge 45 commits intohellowhorl:mainfrom
Draft
feat: create item meta data & .pyz files#17hemanialaparthi wants to merge 45 commits intohellowhorl:mainfrom
hemanialaparthi wants to merge 45 commits intohellowhorl:mainfrom
Conversation
…nal before to have the metafile)
… classname to resemble filename)
…l is not readable by pyz
…, it removes the slashes and gives you the pyz
…h of the .pyz files!
…the bytes into a zip file and then reset the file pointer to the beginning
& check if class exists with same name as the module and verify if the class inherits from ItemSpec
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces significant enhancements to the inventory system, including support for
.pyzpackages, new item creation functionality, and improvements to file validation and packaging..pyzPackage Support.pyzfiles in theAcquisitionclass, including validation and transmission to the API. This ensures.pyzfiles are properly integrated into the inventory system (src/inventory/Acquire.py).Packagermodule to create.pyzpackages from item directories, with validation and staging logic to ensure package integrity (src/inventory/Packager.py).Item Creation Enhancements
Createmodule to facilitate the creation of inventory items, including metadata, Python modules, and packaging options. This module supports both interactive and non-interactive modes (src/inventory/Create.py).pyproject.tomlto includecreateandpackagercommands for item creation and packaging (pyproject.toml).Validation and File Handling Improvements
Instanceclass to validate file paths using absolute paths and improved error messaging during file validation (src/inventory/Instance.py).Acquisitionclass to compress binary files before transmitting them to the API, reducing payload size (src/inventory/Acquire.py).Minor Changes
src/inventory/Acquire.py,src/inventory/Use.py).Instanceclass (src/inventory/Instance.py).