Skip to content

Commit

Permalink
refactor: build system 내용을 추가하다
Browse files Browse the repository at this point in the history
- 필요없을 줄 알고 삭제했는데 필요하여 추가함.
  • Loading branch information
ujuc committed Jul 6, 2024
1 parent 72859ec commit 613a239
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
1 change: 0 additions & 1 deletion cli.py → cli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
from cleo.commands.command import Command
from cleo.helpers import argument


BASE_PATH = Path.cwd()
CONTENT_PATH = BASE_PATH / "content"
OUTPUT_PATH = BASE_PATH / "output"
Expand Down
14 changes: 12 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,19 @@ dependencies = [
readme = "README.md"
requires-python = ">= 3.12"

[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.hatch.metadata]
allow-direct-references = true

[tool.hatch.build.targets.wheel]
packages = ["cli"]

[tool.rye]
managed = true
dev-dependencies = []

[tool.rye.scripts]
cli = { call = "cli:run" }
[project.scripts]
cli = "cli.main:run"

0 comments on commit 613a239

Please sign in to comment.