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 versioningit with hatch to get version based on git #126

Merged
merged 1 commit into from
Jan 22, 2025

Conversation

yarikoptic
Copy link
Member

Seems to not produce src/reprostim/_version.py file ATM...

pyproject.toml Outdated
@@ -118,3 +122,6 @@ exclude_lines = [

[tool.pytest.ini_options]
testpaths = ["tests"]

[tool.versioningit]
Copy link

Choose a reason for hiding this comment

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

I believe you want to change this table to [tool.versioningit.write].

Copy link
Member Author

Choose a reason for hiding this comment

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

thanks. I have changed that (pushing) but that didn't help.

Copy link
Member Author

Choose a reason for hiding this comment

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

removal of that path to about fixed it!

pyproject.toml Outdated
@@ -97,6 +97,10 @@ extra-dependencies = [
[tool.hatch.envs.types.scripts]
check = "mypy --install-types --non-interactive {args:src/reprostim tests}"

[tool.hatch.version]
path = "src/reprostim/__about__.py"
Copy link

Choose a reason for hiding this comment

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

This line won't do anything when using versioningit.

Copy link
Member Author

Choose a reason for hiding this comment

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

ha -- removal of this line seems have fix it!!!

@yarikoptic yarikoptic added internal Changes only affect the internal API release Create a release when this pr is merged labels Jan 22, 2025
@yarikoptic yarikoptic merged commit f74a5db into master Jan 22, 2025
3 checks passed
@yarikoptic yarikoptic deleted the enh-versioningit branch January 22, 2025 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal Changes only affect the internal API release Create a release when this pr is merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants