Skip to content

Commit

Permalink
build: improve pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
Artur Lissin committed Jan 15, 2025
1 parent 4c4ba18 commit 1af9c4c
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 27 deletions.
28 changes: 14 additions & 14 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,23 +34,23 @@ uninstall:
runAct:
$(POETRY) shell

runChecks:
$(POETRY) run lefthook run pre-commit --all-files
runChecks: runAct
lefthook run pre-commit --all-files

runDocs:
$(POETRY) run mkdocs build -f configs/dev/mkdocs.yml -d ../../public
runDocs: runAct
mkdocs build -f configs/dev/mkdocs.yml -d ../../public

serveDocs:
$(POETRY) run mkdocs serve -f configs/dev/mkdocs.yml
serveDocs: runAct
mkdocs serve -f configs/dev/mkdocs.yml

runTests:
$(POETRY) run tox
runTests: runAct
tox

runBuild:
$(POETRY) build

runBump:
$(POETRY) run cz bump
runBump: runAct
cz bump

runPoetry:
$(POETRY) run $(CMD)
Expand All @@ -66,8 +66,8 @@ export_runLock:
export_runUpdate:
$(POETRY) update --with test,docs,dev

com commit:
$(POETRY) run cz commit
com commit: runAct
cz commit

recom recommit:
$(POETRY) run cz commit --retry
recom recommit: runAct
cz commit --retry
28 changes: 15 additions & 13 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
[project]
name = "initpy"
version = "0.3.0"
description = """Initial bare-bone Python project."""
readme = "README.md"
authors = [
{ name = "Artur Lissin", email = "[email protected]" },
]
license = "The Unlicense"
keywords = ["python", "skeleton"]
repository = "https://github.com/artdotlis/INITpy"

[project.scripts]
main_run = "initpy.main:run"

[build-system]
build-backend = "poetry.core.masonry.api"
requires = ["poetry-core"]
Expand Down Expand Up @@ -61,26 +76,13 @@ warn_unreachable = true
warn_unused_ignores = true

[tool.poetry]
authors = [
"Artur Lissin <[email protected]>"
]
description = """Initial bare-bone Python project."""
include = [
{path = "configs/src_ex/*", format = "sdist"},
"src/initpy/py.typed"
]
keywords = ["python", "skeleton"]
license = "The Unlicense"
name = "initpy"
packages = [
{include = "initpy", from = "src"}
]
readme = "README.md"
repository = "https://github.com/artdotlis/INITpy"
version = "0.3.0"

[tool.poetry.scripts]
main_run = "initpy.main:run"

[tool.poetry.dependencies]
python = ">=3.13,<4"
Expand Down

0 comments on commit 1af9c4c

Please sign in to comment.