-
-
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.
* Use bump-my-version (manage settings at pyproject.toml) * Write package version into package-root (as dynamic) * Ref version variable from sphinx-extension
- Loading branch information
Showing
3 changed files
with
24 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
[project] | ||
name = "rst-multi-refs" | ||
version = "0.0.0" | ||
description = "reStrucuturedText's custom roles and role builder kit for package registries of any languages." | ||
authors = [ | ||
{ name = "Kazuya Takei", email = "[email protected]" } | ||
|
@@ -29,6 +28,7 @@ classifiers = [ | |
"Topic :: Software Development :: Documentation", | ||
"Topic :: Text Processing :: Markup :: reStructuredText", | ||
] | ||
dynamic = ["version"] | ||
|
||
[project.optional-dependencies] | ||
sphinx = [ | ||
|
@@ -59,8 +59,27 @@ select = ["C90", "D", "E", "F", "I", "W"] | |
[tool.ruff.lint.pydocstyle] | ||
convention = "pep257" | ||
|
||
[tool.bumpversion] | ||
current_version = "0.0.0" | ||
commit = true | ||
tag = false | ||
message = "release: Bump version {current_version} -> {new_version}" | ||
|
||
[[tool.bumpversion.files]] | ||
filename = "pyproject.toml" | ||
search = "version = \"{current_version}\"" | ||
replace = "version = \"{new_version}\"" | ||
|
||
[[tool.bumpversion.files]] | ||
filename = "src/rst_multi_refs/__init__.py" | ||
search = "__version__ = \"{current_version}\"" | ||
replace = "__version__ = \"{new_version}\"" | ||
|
||
[tool.hatch.metadata] | ||
allow-direct-references = true | ||
|
||
[tool.hatch.build.targets.wheel] | ||
packages = ["src/rst_multi_refs"] | ||
|
||
[tool.hatch.version] | ||
path = "src/rst_multi_refs/__init__.py" |
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 |
---|---|---|
@@ -1 +1,2 @@ | ||
"""Root of package.""" | ||
"""Root of rst-multi-refs.""" | ||
__version__ = "0.0.0" |
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