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

Exclude requirements with non-matching markers from pip-sync's merge stage #927

Merged
merged 1 commit into from
Apr 15, 2020

Conversation

AndydeCleyre
Copy link
Contributor

@AndydeCleyre AndydeCleyre commented Oct 7, 2019

Fixes #925.

During sync's merge stage, any requirements with markers which don't match the current environment will be ignored. This allows successful syncing when the requirements.txt contains irrelevant (but properly marked) entries. The merge test has been updated to expect successful syncing in these cases.

Changelog-friendly one-liner: Exclude requirements with non-matching markers from sync operations.

Contributor checklist
  • Provided the tests for the changes.
  • Gave a clear one-line description in the PR (that the maintainers can add to CHANGELOG.md on release).
  • Assign the PR to an existing or new milestone for the target version (following Semantic Versioning).

@codecov
Copy link

codecov bot commented Oct 8, 2019

Codecov Report

Merging #927 into master will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #927   +/-   ##
=======================================
  Coverage   99.43%   99.44%           
=======================================
  Files          34       34           
  Lines        2499     2503    +4     
  Branches      309      312    +3     
=======================================
+ Hits         2485     2489    +4     
  Misses          8        8           
  Partials        6        6           
Impacted Files Coverage Δ
piptools/sync.py 100.00% <100.00%> (ø)
tests/test_cli_sync.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ccb1865...5bbe61e. Read the comment docs.

@AndydeCleyre AndydeCleyre changed the title Exclude requirements with non-matching markers from merge; Fixes #925 Exclude requirements with non-matching markers from pip-sync's merge stage Apr 12, 2020
Copy link
Member

@atugushev atugushev left a comment

Choose a reason for hiding this comment

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

That makes sense 👍 Thanks, @AndydeCleyre!

@atugushev atugushev merged commit b5daca1 into jazzband:master Apr 15, 2020
@atugushev
Copy link
Member

Thanks, @AndydeCleyre, for the contribution!

@atugushev atugushev added this to the 5.0.0 milestone Apr 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improvements to functionality needs discussion Need some more discussion
Projects
None yet
2 participants