Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ee4e682cfc | ||
|
|
7fc549e2f3 | ||
|
|
1c3dfd4545 | ||
|
|
9208718b3f | ||
|
|
cf1c536f5c | ||
|
|
ed2013c515 | ||
|
|
9d681853e6 | ||
|
|
0c05551d33 | ||
|
|
67b804eaf2 | ||
|
|
863eed8460 | ||
|
|
1690b051c4 | ||
|
|
c6378e6abd | ||
|
|
a28c4ec149 |
@@ -3,3 +3,4 @@
|
|||||||
*.lock
|
*.lock
|
||||||
__pycache__/
|
__pycache__/
|
||||||
dist/
|
dist/
|
||||||
|
/_version.py
|
||||||
|
|||||||
@@ -21,6 +21,11 @@ from textwrap import indent
|
|||||||
|
|
||||||
import tomli_w
|
import tomli_w
|
||||||
|
|
||||||
|
try:
|
||||||
|
from _version import __version__
|
||||||
|
except ImportError:
|
||||||
|
__version__ = "0.0.0+unknown"
|
||||||
|
|
||||||
# Template directory
|
# Template directory
|
||||||
TEMPLATE_DIR = Path(__file__).parent / "template"
|
TEMPLATE_DIR = Path(__file__).parent / "template"
|
||||||
|
|
||||||
@@ -896,6 +901,11 @@ Examples:
|
|||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"--dry-run", action="store_true", help="Show what would be done"
|
"--dry-run", action="store_true", help="Show what would be done"
|
||||||
)
|
)
|
||||||
|
parser.add_argument(
|
||||||
|
"--version",
|
||||||
|
action="version",
|
||||||
|
version=f"%(prog)s {__version__}",
|
||||||
|
)
|
||||||
|
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
|
|||||||
@@ -22,6 +22,9 @@ fastapi-vue-setup = "fastapi_vue_setup:main"
|
|||||||
[tool.hatch.version]
|
[tool.hatch.version]
|
||||||
source = "vcs"
|
source = "vcs"
|
||||||
|
|
||||||
|
[tool.hatch.build.hooks.vcs]
|
||||||
|
version-file = "_version.py"
|
||||||
|
|
||||||
[tool.hatch.build.targets.wheel]
|
[tool.hatch.build.targets.wheel]
|
||||||
include = ["fastapi_vue_setup.py", "template/**/*", "_version.py"]
|
include = ["fastapi_vue_setup.py", "template/**/*", "_version.py"]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user