-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* versioningit setup Signed-off-by: Jose Borreguero <[email protected]> * versioningit invoked when package is installed Signed-off-by: Jose Borreguero <[email protected]> --------- Signed-off-by: Jose Borreguero <[email protected]>
- Loading branch information
Showing
3 changed files
with
36 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
name = "lr_reduction" | ||
authors = [{name = "Mat", email = "[email protected]"}] | ||
description = "Reduction scripts for the Liquids Reflectometer. This includes both automated reduction scripts and useful scripts to reprocess data." | ||
version = "0.1.0" # initial version, dynamically overriden | ||
version = ["version"] # initial version, dynamically overriden | ||
license = {file = "LICENSE"} | ||
readme = "README.md" | ||
requires-python = ">=3.8" | ||
|
@@ -18,6 +18,16 @@ dependencies = [ | |
"mantid" | ||
] | ||
|
||
# versioningit will generate file _version.py when installing this package, even if installing from sources | ||
[build-system] | ||
requires = [ | ||
"setuptools >= 40.6.0", | ||
"wheel", | ||
"toml", | ||
"versioningit" | ||
] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project.optional-dependencies] | ||
tests = [ | ||
"pytest" | ||
|
@@ -41,6 +51,21 @@ ignore = [ | |
"F405", "F821" # unknown names from probably from wild imports | ||
] | ||
|
||
[tool.versioningit.vcs] | ||
method = "git" | ||
default-tag = "0.0.1" | ||
|
||
[tool.versioningit.next-version] | ||
method = "minor" | ||
|
||
[tool.versioningit.format] | ||
distance = "{next_version}.dev{distance}" | ||
dirty = "{version}+d{build_date:%Y%m%d}" | ||
distance-dirty = "{next_version}.dev{distance}+d{build_date:%Y%m%d%H%M}" | ||
|
||
[tool.versioningit.write] | ||
file = "src/usansred/_version.py" | ||
|
||
[tool.coverage.run] | ||
branch = true | ||
|
||
|
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 |
---|---|---|
@@ -1 +1,4 @@ | ||
__version__ = '2.0.28' | ||
try: | ||
from ._version import __version__ # noqa: F401 | ||
except ImportError: | ||
__version__ = "unknown" |