Skip to content

feat: implement strip mode#13

Merged
ajaxbits merged 4 commits intomainfrom
impl-strip-mode
May 8, 2025
Merged

feat: implement strip mode#13
ajaxbits merged 4 commits intomainfrom
impl-strip-mode

Conversation

@ajaxbits
Copy link
Collaborator

@ajaxbits ajaxbits commented May 8, 2025

Strips all .py{c,o}, RECORD, direct_url.json, and __pycache__ files to ensure reproducible builds.

@ajaxbits ajaxbits force-pushed the impl-strip-mode branch 10 times, most recently from b3737a9 to b167414 Compare May 8, 2025 19:54
@ajaxbits ajaxbits marked this pull request as ready for review May 8, 2025 19:56
@ajaxbits ajaxbits requested review from BrandonLWhite and Copilot May 8, 2025 19:56
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR implements a new “strip mode” feature to strip specific files (e.g., .pyc, .pyo, RECORD, direct_url.json, pycache) to ensure reproducible builds. Key changes include updates to test fixtures to verify file exclusion, modifications to packager logic to filter out unwanted files during zipping, and enhancements to documentation and coverage configuration.

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
tests/test_package_python_function.py Added conditions to assert file exclusion based on test data.
tests/conftest.py Revised test fixtures to include files_excluded_from_bundle handling.
pyproject.toml Added coverage configuration to omit test files.
package_python_function/packager.py Introduced constants and logic to exclude specific directories, files, and extensions.
README.md Updated reproducibility notes and file exclusion documentation.

Copy link
Owner

@BrandonLWhite BrandonLWhite left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See what you think about my nit comment. Otherwise good to go!

ajaxbits added 3 commits May 8, 2025 15:37
Strips all `.py{c,o}`, `RECORD`, `direct_url.json`, and `__pycache__`
files to ensure reproducible builds.
@ajaxbits ajaxbits force-pushed the impl-strip-mode branch from b167414 to eb42083 Compare May 8, 2025 20:37
@ajaxbits ajaxbits merged commit d8303a6 into main May 8, 2025
1 check passed
@ajaxbits ajaxbits deleted the impl-strip-mode branch May 8, 2025 20:38
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.

4 participants