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

Use "hatchling version" as a version command where applicable #374

Merged
merged 3 commits into from
Sep 12, 2022

Conversation

blink1073
Copy link
Contributor

Use "hatch version" as a default if there is no tbump config.

Will have to wait for #363 to be merged.

@blink1073 blink1073 added the enhancement New feature or request label Sep 11, 2022
@codecov-commenter
Copy link

codecov-commenter commented Sep 11, 2022

Codecov Report

Merging #374 (dea7142) into main (2cd3e74) will decrease coverage by 0.01%.
The diff coverage is 50.00%.

@@            Coverage Diff             @@
##             main     #374      +/-   ##
==========================================
- Coverage   82.93%   82.92%   -0.02%     
==========================================
  Files          21       21              
  Lines        2866     2869       +3     
  Branches      374      375       +1     
==========================================
+ Hits         2377     2379       +2     
  Misses        356      356              
- Partials      133      134       +1     
Impacted Files Coverage Δ
jupyter_releaser/util.py 71.94% <50.00%> (-0.04%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

version_cmd = version_cmd or TBUMP_CMD
elif "hatchling" in pyproject_text:
version_cmd = version_cmd or "hatch version"
Copy link

Choose a reason for hiding this comment

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

I have no context but you can also do hatchling version if you don't have the full CLI

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh good catch, we actually depend on hatchling and not hatch for this library.

@blink1073 blink1073 changed the title Use hatch version if available Use hatchling version as a version command where applicable Sep 12, 2022
@blink1073 blink1073 changed the title Use hatchling version as a version command where applicable Use "hatchling version" as a version command where applicable Sep 12, 2022
@blink1073 blink1073 marked this pull request as ready for review September 12, 2022 01:39
@blink1073 blink1073 merged commit 4634184 into jupyter-server:main Sep 12, 2022
@blink1073 blink1073 deleted the use-hatch-version branch September 12, 2022 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants