Skip to content

Commit f0fb7fa

Browse files
committed
📦🔧 Reorder pyproject.toml to put all dependencies close to each other
1 parent 250dd9d commit f0fb7fa

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

‎project_name/pyproject.toml.jinja‎

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ description = "{{ package_description }}"
1414
license = "{{ license }}"
1515
license-files = ["LICEN[CS]E.*"]
1616
readme = "README.md"
17-
requires-python = ">=3.{{ python_min }}"
1817
authors = [
1918
{name = "{{ user_name }}", email = "{{ user_email }}"}
2019
]
@@ -37,6 +36,16 @@ classifiers = [
3736
{%- endfor %}
3837
"Typing :: Typed",
3938
]
39+
# urls.homepage = "https://{{ project_name }}.readthedocs.io"
40+
urls.source = "https://github.com/{{ github_user }}/{{ project_name }}"
41+
urls.changelog = "https://github.com/{{ github_user }}/{{ project_name }}/blob/main/CHANGELOG.md"
42+
# urls.releasenotes = "https://github.com/{{ github_user }}/{{ project_name }}/releases"
43+
{% if not in_rtd %}# {% endif -%}
44+
urls.documentation = "https://{{ project_name }}.readthedocs.io"
45+
urls.issues = "https://github.com/{{ github_user }}/{{ project_name }}/issues"
46+
# urls.funding = "https://github.com/sponsors/{{ github_user }}"
47+
48+
requires-python = ">=3.{{ python_min }}"
4049
dependencies = [
4150
"loguru >=0",
4251
{% if not has_cli %}# {% endif -%}
@@ -46,16 +55,6 @@ dependencies = [
4655
[project.optional-dependencies]
4756
# optional_name = ["some_package >=1.0"]
4857

49-
[project.urls]
50-
# homepage = "https://{{ project_name }}.readthedocs.io"
51-
source = "https://github.com/{{ github_user }}/{{ project_name }}"
52-
changelog = "https://github.com/{{ github_user }}/{{ project_name }}/blob/main/CHANGELOG.md"
53-
# releasenotes = "https://github.com/{{ github_user }}/{{ project_name }}/releases"
54-
{% if not in_rtd %}# {% endif -%}
55-
documentation = "https://{{ project_name }}.readthedocs.io"
56-
issues = "https://github.com/{{ github_user }}/{{ project_name }}/issues"
57-
# funding = "https://github.com/sponsors/{{ github_user }}"
58-
5958
[project.scripts]
6059
{% if not has_cli -%}# {% endif -%}
6160
{{ project_name }} = "{{ package_name }}.cli:app"

0 commit comments

Comments
 (0)