-
-
Notifications
You must be signed in to change notification settings - Fork 206
/
pyproject.toml.jinja
49 lines (44 loc) · 1.03 KB
/
pyproject.toml.jinja
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
{% set poetry = meta == "poetry" %}
{% set pdm = meta == "pdm" %}
{% if poetry or pdm %}
{% if poetry %}[tool.poetry]
{% elif pdm %}[project]
{% endif %}
name = "{{ project_name }}"
version = "{{ package_version }}"
description = "{{ package_description }}"
authors = []
readme = "README.md"
{% if pdm %}requires-python = ">=3.9,<4.0"{% endif %}
{% if poetry %}
packages = [
{include = "{{ package_name }}"},
]
include = ["CHANGELOG.md", "{{ package_name }}/py.typed"]
{% endif %}
{% if pdm %}
dependencies = [
"httpx>=0.20.0,<0.28.0",
"attrs>=21.3.0",
"python-dateutil>=2.8.0",
]
[tool.pdm]
distribution = true
{% endif %}
{% if poetry %}
[tool.poetry.dependencies]
python = "^3.9"
httpx = ">=0.20.0,<0.28.0"
attrs = ">=21.3.0"
python-dateutil = "^2.8.0"
{% endif %}
[build-system]
{% if poetry %}
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
{% elif pdm %}
requires = ["pdm-backend"]
build-backend = "pdm.backend"
{% endif %}
{% endif %}{# poetry or pdm #}
{% include "pyproject_ruff.toml.jinja" %}