Skip to content

Commit 17a2e51

Browse files
committedDec 11, 2024
use src/version/_version.py; .gitignore config
1 parent 81220eb commit 17a2e51

File tree

6 files changed

+19
-3
lines changed

6 files changed

+19
-3
lines changed
 

‎.gitignore

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/src/version/_version.py
2+
src/*.egg-info
3+
dist
4+
build
5+
out
6+
.coverage
7+
.*.history*
8+
*.tags.cache*

‎.idea/.gitignore

+3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎pyproject.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,13 @@ package-dir = {"" = "src"}
5858
# >>> SETUPTOOLS_SCM_PRETEND_VERSION=0.0.2 python -m build
5959
# To dry-run and see version:
6060
# >>> python -m setuptools_scm
61-
write_to = "src/cedarscript_editor/_version.py"
61+
write_to = "src/version/_version.py"
6262
# Append .post{number of commits} to your version if there are commits after the last tag.
6363
version_scheme = "post-release"
6464

6565
[tool.setuptools.packages.find]
6666
where = ["src"]
67-
include = ["cedarscript_editor*", "text_manipulation*"]
67+
include = ["version", "cedarscript_editor*", "text_manipulation*"]
6868
exclude = ["cedarscript_ast_parser.tests*"]
6969
namespaces = false
7070

‎src/cedarscript_editor/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from ._version import __version__
1+
from version import __version__
22
import re
33
from .cedarscript_editor import CEDARScriptEditor
44
from cedarscript_ast_parser import CEDARScriptASTParser

‎src/text_manipulation/__init__.py

+2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1+
from version import __version__
12
from .line_kit import get_line_indent_count, extract_indentation
23
from .range_spec import RangeSpec, IdentifierBoundaries
34
from .text_editor_kit import read_file, write_file, bow_to_search_range
45
from .cst_kit import IdentifierFinder
56
from .indentation_kit import IndentationInfo
67

78
__all__ = [
9+
"__version__",
810
"IndentationInfo",
911
"IdentifierBoundaries",
1012
"IdentifierFinder",

‎src/version/__init__.py

+3
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)
Failed to load comments.