Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python helper removes bytecode files #7944

Merged
merged 1 commit into from
Aug 31, 2023
Merged

Python helper removes bytecode files #7944

merged 1 commit into from
Aug 31, 2023

Conversation

tvalenta
Copy link
Contributor

This removes the pyc files which were added during previous python invocations.

Ensure shared objects are stripped, preserving timestamps.

Before:

dependabot@9c1ccba0e418:/usr/local/.pyenv/versions$ du -shc *
51M	3.10.13.tar.gz
185M	3.11.5
51M	3.8.18.tar.gz
49M	3.9.18.tar.gz
335M	total

After

dependabot@f0f1ba4d48ae:/usr/local/.pyenv/versions$ du -shc *
31M	3.10.13.tar.gz
107M	3.11.5
32M	3.8.18.tar.gz
31M	3.9.18.tar.gz
200M	total

This removes the pyc files which were added during previous python
invocations.

Ensure shared objects are stripped, preserving timestamps.
@tvalenta tvalenta requested a review from a team as a code owner August 31, 2023 17:53
Copy link
Member

@jeffwidman jeffwidman left a comment

Choose a reason for hiding this comment

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

Noice! 🎉

@jeffwidman jeffwidman merged commit f9a4e5d into dependabot:main Aug 31, 2023
79 checks passed
@tvalenta tvalenta deleted the RemovePythonBytecode branch August 31, 2023 18:18
brettfo pushed a commit to brettfo/dependabot-core that referenced this pull request Oct 11, 2023
This removes the pyc files which were added during previous python invocations.

Ensure shared objects are stripped, preserving timestamps.

Before:
```
dependabot/dependabot-core@9c1ccba0e418:/usr/local/.pyenv/versions$ du -shc *
51M	3.10.13.tar.gz
185M	3.11.5
51M	3.8.18.tar.gz
49M	3.9.18.tar.gz
335M	total
```

After
```
dependabot/dependabot-core@f0f1ba4d48ae:/usr/local/.pyenv/versions$ du -shc *
31M	3.10.13.tar.gz
107M	3.11.5
32M	3.8.18.tar.gz
31M	3.9.18.tar.gz
200M	total
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants