Add some options
This commit is contained in:
parent
9a9985269a
commit
b4aa5971e6
2 changed files with 46 additions and 0 deletions
23
copier.yml
23
copier.yml
|
|
@ -6,6 +6,7 @@ project_name:
|
||||||
project_description:
|
project_description:
|
||||||
type: str
|
type: str
|
||||||
help: Describe your project
|
help: Describe your project
|
||||||
|
default: A project based on ajal-template-python
|
||||||
|
|
||||||
minimum_python_version:
|
minimum_python_version:
|
||||||
type: str
|
type: str
|
||||||
|
|
@ -15,3 +16,25 @@ minimum_python_version:
|
||||||
- "3.11"
|
- "3.11"
|
||||||
- "3.12"
|
- "3.12"
|
||||||
- "3.13"
|
- "3.13"
|
||||||
|
|
||||||
|
dependency_manager:
|
||||||
|
type: str
|
||||||
|
help: Python dependency manager
|
||||||
|
choices:
|
||||||
|
- uv
|
||||||
|
- poetry
|
||||||
|
- hatch
|
||||||
|
- setuptools
|
||||||
|
- flit
|
||||||
|
- pdm
|
||||||
|
default: uv
|
||||||
|
|
||||||
|
author_name:
|
||||||
|
type: str
|
||||||
|
help: Author name
|
||||||
|
default: ""
|
||||||
|
|
||||||
|
author_email:
|
||||||
|
type: str
|
||||||
|
help: Author email
|
||||||
|
default: ""
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,29 @@
|
||||||
name = "{{project_name}}"
|
name = "{{project_name}}"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
description = "{{project_description}}"
|
description = "{{project_description}}"
|
||||||
|
authors = [
|
||||||
|
{name = "{{author_name}}", email = "{{author_email}}"}
|
||||||
|
]
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
requires-python = ">={{minimum_python_version}}"
|
requires-python = ">={{minimum_python_version}}"
|
||||||
dependencies = []
|
dependencies = []
|
||||||
|
|
||||||
|
[build-system]
|
||||||
|
{%- if dependency_manager == "poetry" %}
|
||||||
|
requires = ["poetry-core>=2.0.0,<3.0.0"]
|
||||||
|
build-backend = "poetry.core.masonry.api"
|
||||||
|
{%- elif dependency_manager == "setuptools" %}
|
||||||
|
{%- elif dependency_manager == "hatch" %}
|
||||||
|
requires = ["hatchling"]
|
||||||
|
build-backend = "hatchling.build"
|
||||||
|
{%- elif dependency_manager == "flit" %}
|
||||||
|
requires = ["flit_core >= 3.4"]
|
||||||
|
build-backend = "flit_core.buildapi"
|
||||||
|
{%- elif dependency_manager == "pdm" %}
|
||||||
|
requires = ["pdm-backend"]
|
||||||
|
build-backend = "pdm.backend"
|
||||||
|
{%- else %}
|
||||||
|
{#- This is the default #}
|
||||||
|
requires = ["setuptools >= 61.0"]
|
||||||
|
build-backend = "setuptools.build_meta"
|
||||||
|
{%- endif %}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue