Skip to content

Use versioningit with hatch to get version based on git#126

Merged
yarikoptic merged 1 commit into
masterfrom
enh-versioningit
Jan 22, 2025
Merged

Use versioningit with hatch to get version based on git#126
yarikoptic merged 1 commit into
masterfrom
enh-versioningit

Conversation

@yarikoptic
Copy link
Copy Markdown
Member

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

Comment thread pyproject.toml Outdated
[tool.pytest.ini_options]
testpaths = ["tests"]

[tool.versioningit]
Copy link
Copy Markdown

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
Copy Markdown
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
Copy Markdown
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!

Comment thread pyproject.toml Outdated
check = "mypy --install-types --non-interactive {args:src/reprostim tests}"

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

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
Copy Markdown
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
@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