Tags: alelom/python-package-folder
Tags
Fixed wrong package directory This commit introduces functionality for creating a temporary package directory in the SubfolderBuildConfig class. The directory is named based on the package name, converting hyphens to underscores for import compatibility. It ensures that the source directory contents are preserved and correctly structured. Additionally, the BuildManager class is updated to utilize this temporary directory for dependency management during builds. Cleanup logic is also added to remove the temporary directory after use, enhancing the overall build process.
Refactor package name derivation logic in main function This commit enhances the package name derivation process by introducing a new variable, derived_package_name, which is used to construct the package name for subfolder builds. The logic now checks for an existing package name argument and derives the name from the root project name and subfolder name if not provided. This change improves clarity and consistency in how package names are handled during version resolution and publishing.
Add HTML parsing for Azure Artifacts version retrieval This commit introduces a new SimpleIndexParser class to parse the PEP 503 simple index HTML format from Azure Artifacts, allowing the extraction of package versions from the HTML response. The query_azure_artifacts_version function is updated to utilize this parser, improving the handling of version retrieval. Additionally, tests are added to verify the parsing functionality, including scenarios for successful version extraction, handling 404 responses, and cases with empty HTML responses.
Add MANIFEST.in and enhance build hook for script inclusion This commit introduces a new MANIFEST.in file to include the get-next-version.cjs script and all files in the scripts directory during package builds. The CustomBuildHook is updated to dynamically locate the scripts directory, improving flexibility for different project layouts and ensuring all relevant scripts are included in the wheel package.
Update pyproject.toml to include scripts directory in wheel build This change adds a force-include directive for the get-next-version.cjs script in the wheel build configuration, ensuring it is included in the package. The existing build hook is retained as a fallback for future file additions.
Merge branch 'main' of https://github.com/alelom/python-package-folder
PreviousNext