-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DEV] Dynamic package version based on git history (#500)
* DEV: Use setuptools-scm for setting dynamic package version Related to #488 * DEV: Pull __version__ attribute from package metadata Related to #488 * DOC: Pull serpentTools version data using package metadata Inspired by setuptools-scm docs * DOC: Explicit english language parameter Silences a sphinx doc warning * DOC: Update release procedure to avoid changing version strings * DOC: Add explainer on new version strings They can get a bit complex when working off releases, so some explanation is helpful
- Loading branch information
1 parent
07b503d
commit 2b53f77
Showing
4 changed files
with
40 additions
and
23 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 |
---|---|---|
@@ -1,10 +1,16 @@ | ||
# flake8: noqa | ||
from importlib.metadata import version, PackageNotFoundError | ||
try: | ||
__version__ = version(__package__) | ||
except PackageNotFoundError: | ||
__version__ = "ERROR" | ||
|
||
del PackageNotFoundError, version | ||
|
||
from serpentTools.detectors import * | ||
from serpentTools.parsers import * | ||
from serpentTools.messages import * | ||
from serpentTools.data import * | ||
from serpentTools.samplers import * | ||
from serpentTools.seed import * | ||
from serpentTools.xs import * | ||
|
||
__version__ = "0.9.5" | ||
from serpentTools.xs import * |