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

Give a default version if the version is dynamic in setup.cfg #1101

Merged
merged 3 commits into from
May 29, 2022

Conversation

frostming
Copy link
Collaborator

Pull Request Check List

  • A news fragment is added in news/ describing what is new.
  • Test cases added for changed code.

Describe what you have changed in this PR.

@codecov-commenter
Copy link

codecov-commenter commented May 29, 2022

Codecov Report

Merging #1101 (0ebb5a5) into main (e519a07) will increase coverage by 0.44%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #1101      +/-   ##
==========================================
+ Coverage   83.85%   84.29%   +0.44%     
==========================================
  Files          74       74              
  Lines        6545     6547       +2     
  Branches     1536     1537       +1     
==========================================
+ Hits         5488     5519      +31     
+ Misses        727      700      -27     
+ Partials      330      328       -2     
Flag Coverage Δ
unittests 84.03% <100.00%> (+0.44%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
pdm/models/setup.py 64.70% <100.00%> (+11.74%) ⬆️

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 e519a07...0ebb5a5. Read the comment docs.

@frostming frostming linked an issue May 29, 2022 that may be closed by this pull request
1 task
@frostming frostming merged commit 46586e6 into main May 29, 2022
@frostming frostming deleted the fix/setup-cfg-parsing branch May 29, 2022 03:30
tui =
rich
""",
Setup("foo", "0.1.0", ["click", "requests"], {"tui": ["rich"]}, ">=3.6"),

Choose a reason for hiding this comment

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

Will this work if a version is just 2.0. Can you please add this scenario too?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

They are the same case, as long as it is a valid version string.

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.

"pdm sync" fails while building Docker image for an editable dependency
3 participants