Skip to content

Commit

Permalink
trial hatchling build backend
Browse files Browse the repository at this point in the history
  • Loading branch information
theOehrly committed Dec 28, 2023
1 parent 7f1a856 commit 94bb19d
Showing 1 changed file with 31 additions and 9 deletions.
40 changes: 31 additions & 9 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,39 @@ dependencies = [
"Documentation" = "https://docs.fastf1.dev"

[build-system]
requires = ["setuptools", "setuptools-scm"]
build-backend = "setuptools.build_meta"
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"

[tool.setuptools.packages.find]
where = [""]
include = ["fastf1*"]
exclude = ["fastf1/testing*"]
namespaces = false
[tool.hatch.version]
source = "vcs"

[tool.setuptools_scm]
version_file = "fastf1/_version.py"
[tool.hatch.build.targets.wheel]
ignore-vcs = true
include = [
"fastf1/**",
]
exclude = [
"fastf1/tests/**",
"fastf1/testing/**",
]

[tool.hatch.build.targets.sdist]
ignore-vcs = true
include = [
"fastf1/**",
"requirements/**",
"examples/**"
]
exclude = [
"fastf1/tests/**",
"fastf1/testing/**",
]

[tool.hatch.build.hooks.vcs]
version-file = "fastf1/_version.py"

[tool.hatch.version.raw-options]
## configures setuptools_scm within the hatchling build backend
version_scheme = "release-branch-semver"
local_scheme = "node-and-date"
fallback_version = "0.0+UNKNOWN"
Expand Down

0 comments on commit 94bb19d

Please sign in to comment.