Skip to content

Commit

Permalink
switch to hatch backend
Browse files Browse the repository at this point in the history
  • Loading branch information
blink1073 committed May 16, 2022
1 parent f43e658 commit d566cd8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 = "traitlets"
Expand All @@ -23,8 +23,8 @@ dynamic = ["description", "version"]
[project.optional-dependencies]
test = ["pytest", "pre-commit"]

[tool.flit.sdist]
include = ['examples/']
[tool.hatch.version]
path = "traitlets/_version.py"

[tool.mypy]
check_untyped_defs = true
Expand Down
3 changes: 2 additions & 1 deletion traitlets/_version.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
version_info = (5, 3, 0, "dev0")
__version__ = "5.3.0.dev0"

# unlike `.dev`, alpha, beta and rc _must not_ have dots,
# or the wheel and tgz won't look to pip like the same version.

__version__ = (
assert __version__ == (
".".join(map(str, version_info)).replace(".b", "b").replace(".a", "a").replace(".rc", "rc")
)
assert ".b" not in __version__
Expand Down

0 comments on commit d566cd8

Please sign in to comment.