Skip to content

Commit

Permalink
Use hatch-vcs
Browse files Browse the repository at this point in the history
  • Loading branch information
MtkN1 committed Apr 28, 2024
1 parent b7ef664 commit 88069d1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion pybotters/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
__version__ = "1.0.0"
from importlib.metadata import version

__version__ = version(__package__)
8 changes: 6 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[build-system]
requires = ["hatchling", "hatch-fancy-pypi-readme"]
requires = ["hatchling", "hatch-fancy-pypi-readme", "hatch-vcs"]
build-backend = "hatchling.build"

[project]
Expand Down Expand Up @@ -68,7 +68,11 @@ Documentation = "https://pybotters.readthedocs.io/ja/stable/"
Repository = "https://github.com/pybotters/pybotters"

[tool.hatch.version]
path = "pybotters/__version__.py"
source = "vcs"

[tool.hatch.version.raw-options]
version_scheme = "python-simplified-semver"
local_scheme = "no-local-version"

[tool.hatch.envs.default]
features = ["dev"]
Expand Down

0 comments on commit 88069d1

Please sign in to comment.