Skip to content

feat: create item meta data & .pyz files#17

Draft
hemanialaparthi wants to merge 45 commits intohellowhorl:mainfrom
allegheny-college-cmpsc-404-spring-2025:create_item_meta_data
Draft

feat: create item meta data & .pyz files#17
hemanialaparthi wants to merge 45 commits intohellowhorl:mainfrom
allegheny-college-cmpsc-404-spring-2025:create_item_meta_data

Conversation

@hemanialaparthi
Copy link
Copy Markdown
Contributor

This pull request introduces significant enhancements to the inventory system, including support for .pyz packages, new item creation functionality, and improvements to file validation and packaging.

.pyz Package Support

  • Added functionality to handle .pyz files in the Acquisition class, including validation and transmission to the API. This ensures .pyz files are properly integrated into the inventory system (src/inventory/Acquire.py).
  • Introduced the Packager module to create .pyz packages from item directories, with validation and staging logic to ensure package integrity (src/inventory/Packager.py).

Item Creation Enhancements

  • added a new Create module 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).
  • updated pyproject.toml to include create and packager commands for item creation and packaging (pyproject.toml).

Validation and File Handling Improvements

  • Enhanced the Instance class to validate file paths using absolute paths and improved error messaging during file validation (src/inventory/Instance.py).
  • Updated the Acquisition class to compress binary files before transmitting them to the API, reducing payload size (src/inventory/Acquire.py).

Minor Changes

  • Added missing imports and improved import organization across multiple files for consistency (src/inventory/Acquire.py, src/inventory/Use.py).
  • Fixed formatting and removed unused imports in the Instance class (src/inventory/Instance.py).

hemanialaparthi and others added 30 commits April 16, 2025 11:05
…, it removes the slashes and gives you the pyz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants