-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build sdist need to recreate generated files
- fix(entrypoints): remove support for --version option - refactor: add module constants_maybe. Move constants.__version_app constants.__url__ - ci(tox-test): remove py314 - ci: build sdist to run build plugins to recreate generated files
- Loading branch information
1 parent
b2b82a9
commit 7525618
Showing
17 changed files
with
129 additions
and
51 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
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
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 |
---|---|---|
@@ -0,0 +1,50 @@ | ||
""" | ||
.. moduleauthor:: Dave Faulkmore <https://mastodon.social/@msftcangoblowme> | ||
The _version module is generated and not guaranteed to exist. | ||
When _version is missing, such as after a :code:`git clone` or within CI/CD, | ||
there is no reason to allow this fyi only package info to be the cause of failure | ||
.. py:data:: __version_app | ||
:type: str | ||
Official app version. Semantic versioning fully supported. So pre and post releases, | ||
release candidate, and dev releases are possible | ||
tagged post releases are encouraged. Cuz that means used | ||
:command:`git rebase` to fix a problem at when it originally occured | ||
rather than applying the fix and ignoring the past | ||
.. py:data:: __url__ | ||
:type: str | ||
rtd URL to for current tagged version. This is not used for anything. | ||
Just here for completeness. | ||
.. py:data:: __all__ | ||
:type: tuple[str, str] | ||
:value: ("__version_app", "__url__") | ||
Module exports | ||
""" | ||
|
||
from ._version import __version__ | ||
from .constants import g_app_name | ||
from .version_semantic import ( | ||
SemVersion, | ||
sanitize_tag, | ||
) | ||
|
||
__all__ = ( | ||
"__version_app", | ||
"__url__", | ||
) | ||
|
||
# Removes epoch and local. Fixes version | ||
__version_app, local = sanitize_tag(__version__) | ||
|
||
sv = SemVersion() | ||
sv.parse_ver(__version__, local=local) | ||
__url__ = sv.readthedocs_url(g_app_name, is_latest=False) |
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,9 @@ | ||
from typing import Final | ||
|
||
__all__ = ( | ||
"__version_app", | ||
"__url__", | ||
) | ||
|
||
__version_app: Final[str] | ||
__url__: Final[str] |
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
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