Skip to content

Commit

Permalink
Use hatch backend (#265)
Browse files Browse the repository at this point in the history
  • Loading branch information
blink1073 committed May 17, 2022
1 parent 5b17eca commit cc81632
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
3 changes: 2 additions & 1 deletion jupyter_core/version.py
Expand Up @@ -6,6 +6,7 @@
VersionInfo = namedtuple("VersionInfo", ["major", "minor", "micro", "releaselevel", "serial"])

version_info = VersionInfo(4, 10, 0, "final", 0)
__version__ = "4.10.0"

_specifier_ = {"alpha": "a", "beta": "b", "candidate": "rc", "final": "", "dev": "dev"}

Expand All @@ -16,4 +17,4 @@
else:
_suffix_ = f"{_specifier_[version_info.releaselevel]}{version_info.serial}"

__version__ = f"{version_info.major}.{version_info.minor}.{version_info.micro}{_suffix_}"
assert __version__ == f"{version_info.major}.{version_info.minor}.{version_info.micro}{_suffix_}"
7 changes: 5 additions & 2 deletions pyproject.toml
@@ -1,6 +1,6 @@
[build-system]
requires = ["flit_core >=3.2,<4"]
build-backend = "flit_core.buildapi"
requires = ["hatchling>=0.25"]
build-backend = "hatchling.build"

[project]
name = "jupyter_core"
Expand Down Expand Up @@ -51,6 +51,9 @@ jupyter = "jupyter_core.command:main"
jupyter-migrate = "jupyter_core.migrate:main"
jupyter-troubleshoot = "jupyter_core.troubleshoot:main"

[tool.hatch.version]
path = "jupyter_core/version.py"

[tool.mypy]
check_untyped_defs = true
disallow_any_generics = false
Expand Down

0 comments on commit cc81632

Please sign in to comment.