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

♻️ Properly propagate --no-cache-dir #120

Merged
merged 3 commits into from
Oct 30, 2023
Merged

♻️ Properly propagate --no-cache-dir #120

merged 3 commits into from
Oct 30, 2023

Conversation

ddelange
Copy link
Owner

  • when omitting --cache-dir and --no-cache-dir, would leave all wheels duplicated in os.path.join(USER_CACHE_DIR, "wheels", "pipgrip")
  • when adding --cache-dir, would additionally leave all wheels duplicated in the default USER_CACHE_DIR (by pip behaviour, was propagating pipgrip --cache-dir value as pip --wheel-dir value in the pip wheel command, leaving --cache-dir to the default)
  • when adding --no-cache-dir, would leave all wheel duplicated in the default USER_CACHE_DIR, as it just set pipgrip --cache-dir value to a temp dir, which then went into pip wheel --wheel-dir, leaving pip --cache-dir to the default (same as bullet point above)

@codecov-commenter
Copy link

codecov-commenter commented Oct 30, 2023

Codecov Report

Attention: 6 lines in your changes are missing coverage. Please review.

Comparison is base (0ae244b) 78.29% compared to head (a2f0107) 78.11%.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #120      +/-   ##
==========================================
- Coverage   78.29%   78.11%   -0.18%     
==========================================
  Files          29       29              
  Lines        2824     2829       +5     
  Branches      793      792       -1     
==========================================
- Hits         2211     2210       -1     
- Misses        442      445       +3     
- Partials      171      174       +3     
Files Coverage Δ
src/pipgrip/cli.py 86.66% <100.00%> (-0.35%) ⬇️
src/pipgrip/compat.py 100.00% <ø> (+20.00%) ⬆️
src/pipgrip/package_source.py 92.15% <100.00%> (+0.07%) ⬆️
src/pipgrip/pipper.py 79.76% <80.64%> (-2.21%) ⬇️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ddelange ddelange merged commit 72dc996 into master Oct 30, 2023
13 checks passed
@ddelange ddelange deleted the no-cache-dir branch October 30, 2023 08:51
@github-actions
Copy link

Released 0.10.8

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