refactor, split to two versions - cli and service
This commit is contained in:
@@ -1,22 +1,36 @@
|
||||
[project]
|
||||
name = "{{ cookiecutter.project_slug }}"
|
||||
version = "{{ cookiecutter.version }}"
|
||||
dynamic = ["version"]
|
||||
description = "{{ cookiecutter.description }}"
|
||||
readme = "README.md"
|
||||
authors = [
|
||||
{ name = "{{ cookiecutter.author_name }}", email = "{{ cookiecutter.author_email }}" }
|
||||
]
|
||||
requires-python = ">=3.12"
|
||||
{%- if cookiecutter.project_type == "cli" %}
|
||||
dependencies = [
|
||||
"typer>=0.12",
|
||||
]
|
||||
{%- else %}
|
||||
dependencies = [] # stdlib-only skeleton; add email/poller libs as needed
|
||||
{%- endif %}
|
||||
|
||||
[project.scripts]
|
||||
{%- if cookiecutter.project_type == "cli" %}
|
||||
{{ cookiecutter.project_slug }} = "{{ cookiecutter.package_name }}.cli:app"
|
||||
{%- else %}
|
||||
{{ cookiecutter.project_slug }} = "{{ cookiecutter.package_name }}.service:main"
|
||||
{%- endif %}
|
||||
|
||||
[build-system]
|
||||
requires = ["uv_build>=0.8.8,<0.9.0"]
|
||||
build-backend = "uv_build"
|
||||
requires = ["hatchling", "hatch-vcs"]
|
||||
build-backend = "hatchling.build"
|
||||
|
||||
[tool.hatch.version]
|
||||
source = "vcs"
|
||||
|
||||
[tool.hatch.version.raw-options]
|
||||
local_scheme = "no-local-version"
|
||||
|
||||
[dependency-groups]
|
||||
dev = [
|
||||
|
||||
Reference in New Issue
Block a user