Skip to content

Commit

Permalink
Use hatch for version (#71)
Browse files Browse the repository at this point in the history
  • Loading branch information
blink1073 committed Sep 22, 2022
1 parent a6e0d03 commit 59fa352
Showing 1 changed file with 5 additions and 32 deletions.
37 changes: 5 additions & 32 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[build-system]
requires = ["hatchling>=1.0"]
requires = ["hatchling>=1.5"]
build-backend = "hatchling.build"

[project]
name = "hatch-jupyter-builder"
version = "0.6.2"
dynamic = ["version"]
description = 'A hatch plugin to help build Jupyter packages'
readme = "README.md"
requires-python = ">=3.7"
Expand Down Expand Up @@ -40,6 +40,9 @@ hatch-jupyter-builder = 'hatch_jupyter_builder.cli:run'
[project.entry-points.hatch]
jupyter = "hatch_jupyter_builder.hooks"

[tool.hatch.version]
path = "hatch_jupyter_builder/__init__.py"

[tool.black]
line_length = 100

Expand All @@ -56,7 +59,6 @@ filterwarnings = [
"error"
]


[tool.coverage.run]
omit = [
"hatch_jupyter_builder/cli.py",
Expand All @@ -71,35 +73,6 @@ skip = ["check-links"]
ignore-glob = ["tests/data/**/README.md"]
ignore-links = ["npm_builder_function"]

[tool.tbump.version]
current = "0.6.2"
regex = '''
(?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)
((?P<channel>a|b|rc|.dev)(?P<release>\d+))?
'''

[tool.tbump.git]
message_template = "Bump to {new_version}"
tag_template = "v{new_version}"

[[tool.tbump.file]]
src = "hatch_jupyter_builder/__init__.py"

[[tool.tbump.file]]
src = "pyproject.toml"
version_template = "version = \"{major}.{minor}.{patch}{channel}{release}\""

[[tool.tbump.file]]
src = "docs/conf.py"

[[tool.tbump.field]]
name = "channel"
default = ""

[[tool.tbump.field]]
name = "release"
default = ""

[tool.mypy]
check_untyped_defs = true
disallow_incomplete_defs = true
Expand Down

0 comments on commit 59fa352

Please sign in to comment.