Skip to content

Commit e48d694

Browse files
committed
Use version package
1 parent 2509978 commit e48d694

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@ package-dir = {"" = "src"}
4242
# >>> SETUPTOOLS_SCM_PRETEND_VERSION=0.0.2 python -m build
4343
# To dry-run and see version:
4444
# >>> python -m setuptools_scm
45-
write_to = "src/cedarscript_grammar/_version.py"
45+
write_to = "src/version/_version.py"
4646
# Append .post{number of commits} to your version if there are commits after the last tag.
4747
version_scheme = "post-release"
4848

4949
[tool.setuptools.packages.find]
5050
where = ["src"]
51-
include = ["cedarscript_grammar"]
51+
include = ["version", "cedarscript_grammar"]
5252
namespaces = false
5353

5454
[tool.setuptools.package-data]

src/cedarscript_grammar/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from typing import Optional
77

88
from tree_sitter import Language
9-
from ._version import __version__
9+
from version import __version__
1010

1111
__all__ = ("language","__version__")
1212

src/version/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from ._version import version
2+
3+
__version__ = version

0 commit comments

Comments
 (0)