-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #116 from dnvgl/fix-dynamic-versioning
Fix version string in built distribution
- Loading branch information
Showing
8 changed files
with
30 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,17 +6,19 @@ authors = [ | |
"Per Voie <[email protected]>", | ||
"Erling Lone <[email protected]>" | ||
] | ||
# Repo and docs are optional fields in the project section. Consider to keep it here or to gather | ||
# all URLs in the url section | ||
repository = "https://github.com/dnvgl/qats" | ||
documentation = "https://qats.readthedocs.io" | ||
license = "MIT" | ||
readme = "README.md" | ||
include = [ | ||
"LICENSE", | ||
"CHANGELOG.md" | ||
] | ||
|
||
[tool.poetry.urls] | ||
Source = "https://github.com/dnvgl/qats" | ||
Documentation = "https://qats.readthedocs.io" | ||
Download = "https://pypi.org/project/qats/" | ||
Issues = "https://github.com/dnvgl/qats/issues" | ||
|
||
[tool.poetry.dependencies] | ||
python = ">=3.8.1,<3.13" | ||
h5py = ">=3.5.0" | ||
|
@@ -51,13 +53,6 @@ myst-parser = ">=2.0.0" | |
[tool.poetry.scripts] | ||
qats = "qats.cli:main" | ||
|
||
|
||
[tool.poetry.urls] | ||
Source = "https://github.com/dnvgl/qats" | ||
Documentation = "https://qats.readthedocs.io" | ||
Download = "https://pypi.org/project/qats/" | ||
Issues = "https://github.com/dnvgl/qats/issues" | ||
|
||
# enable dynamic versioning using Git tags | ||
# https://pypi.org/project/poetry-dynamic-versioning/ | ||
[tool.poetry-dynamic-versioning] | ||
|
@@ -73,15 +68,6 @@ format-jinja = """ | |
{%- endif -%} | ||
""" | ||
|
||
[tool.poetry-dynamic-versioning.files."qats/_version.py"] | ||
persistent-substitution = true | ||
initial-content = """ | ||
# file generated by poetry dynamic versioning | ||
# don't change, don't track in version control | ||
__version__ = "0.0.0" | ||
__version_tuple__ = (0, 0, 0) | ||
""" | ||
|
||
[build-system] | ||
# https://pypi.org/project/poetry-dynamic-versioning/ | ||
requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning>=1.1.1,<2.0.0"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# version substituted by poetry dynamic versioning during poetry build | ||
# don't change | ||
__version__ = "0.0.0" | ||
__version_tuple__ = (0, 0, 0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters