Skip to content

Commit

Permalink
Bump pyproject.toml hatch config
Browse files Browse the repository at this point in the history
- this is needed so that "wheel" creation doesn't fail. We're not really
  building wheels though; what we really need is a noop build system
  • Loading branch information
offbyone committed Dec 27, 2023
1 parent 564b9f6 commit 9d78d8a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 24 deletions.
10 changes: 1 addition & 9 deletions pdm.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 6 additions & 15 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,23 +50,14 @@ build-backend = "hatchling.build"
# enabled because we are using git dependencies
allow-direct-references = true

[tool.hatch.envs.dev]
extra-dependencies = [
"flameprof",
"viztracer",
"orjson",
"rich",
[tool.hatch.build.targets.sdist]
ignore-vcs = true
only-include = [
"plugins/*.py",
]

[tool.hatch.envs.dev.scripts]
cprofile = [
"python -m cProfile -o pelican.prof -m pelican",
"flameprof pelican.prof > pelican.svg",
]

perf = [
"viztracer -o result.json -m pelican",
]
[tool.hatch.build.targets.wheel]
packages = ["plugins"]

[tool.black]
line-length = 100
Expand Down

0 comments on commit 9d78d8a

Please sign in to comment.