Skip to content

Commit c0f3860

Browse files
committed
Add repository URL to pyproject.toml template
1 parent 9e501ff commit c0f3860

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

tests/test_template.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ def test_rendered_project(cookies: Any) -> None:
9797
project_description=(
9898
'This is a test project called "test-baked-cookie"'
9999
),
100+
github_user="ness",
100101
),
101102
)
102103

{{cookiecutter.project_name}}/pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ version = "0.0.0"
88
description = "{{ cookiecutter.project_description|replace('"', '\\\"') }}"
99
license = "GPL-3.0-or-later"
1010
authors = ["{{ cookiecutter.author_name }} <{{ cookiecutter.author_email }}>"]
11-
readme = "README.md"
11+
readme = "README.md"{% if cookiecutter.github_user %}
12+
repository = "https://github.com/{{ cookiecutter.github_user }}/{{ cookiecutter.project_name }}"{% endif %}
1213
classifiers = [
1314
"Development Status :: 1 - Planning",
1415
"Operating System :: OS Independent",

0 commit comments

Comments
 (0)