From d4582e5691078f964b09e1de762d13565f8d20f1 Mon Sep 17 00:00:00 2001 From: Xuan Hu Date: Wed, 24 Apr 2024 18:07:16 +0800 Subject: [PATCH 1/2] chore: update project links --- pyproject.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index adfd7ff8..d0329ee5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -41,8 +41,9 @@ requires-python = ">=3.8" ss-python-cli = "ss_python.cli:app" [project.urls] -homepage = "https://github.com/serious-scaffold/ss-python/" +documentation = "https://serious-scaffold.github.io" issue = "https://github.com/serious-scaffold/ss-python/issues" +repository = "https://github.com/serious-scaffold/ss-python" [tool.coverage.report] fail_under = 100 From 8eef713ac79e8d097a5e2ffd2ee8217a33582a9d Mon Sep 17 00:00:00 2001 From: Xuan Hu Date: Wed, 24 Apr 2024 18:09:38 +0800 Subject: [PATCH 2/2] update template --- pyproject.toml | 2 +- template/pyproject.toml.jinja | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index d0329ee5..8b883017 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -41,7 +41,7 @@ requires-python = ">=3.8" ss-python-cli = "ss_python.cli:app" [project.urls] -documentation = "https://serious-scaffold.github.io" +documentation = "https://serious-scaffold.github.io/ss-python" issue = "https://github.com/serious-scaffold/ss-python/issues" repository = "https://github.com/serious-scaffold/ss-python" diff --git a/template/pyproject.toml.jinja b/template/pyproject.toml.jinja index 3e9c93c5..35faa555 100644 --- a/template/pyproject.toml.jinja +++ b/template/pyproject.toml.jinja @@ -1,3 +1,4 @@ +[% from pathjoin("includes", "variable.jinja") import page_url with context -%] [% from pathjoin("includes", "variable.jinja") import repo_url with context -%] [% from pathjoin("includes", "version_compare.jinja") import version_between -%] [build-system] @@ -75,12 +76,13 @@ requires-python = ">={{ min_py }}" {{ package_name }}-cli = "{{ module_name }}.cli:app" [project.urls] -homepage = "https://{{ repo_url() }}/" +documentation = "https://{{ page_url() }}" [% if repo_host_type == 'github.com' -%] issue = "https://{{ repo_url() }}/issues" [%- elif repo_host_type == 'gitlab.com' or repo_host_type == 'gitlab-self-managed' -%] issue = "https://{{ repo_url() }}/-/issues" [%- endif %] +repository = "https://{{ repo_url() }}" [tool.coverage.report] fail_under = {{ coverage_threshold }}