Skip to content

Commit a5b4442

Browse files
committed
feat: add package configuration and update paths in pyproject.toml
- Introduces a new `package` variable in copier.yaml - Updates paths in pyproject.toml to use the `package` variable instead of `name`
1 parent 09999b9 commit a5b4442

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

copier.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,8 @@ name:
6969
type: str
7070
help: The name of the project.
7171
default: "{{ repo }}"
72+
73+
package:
74+
type: str
75+
help: TODO
76+
default: "{{ name }}"

template/pyproject.toml.jinja

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,13 @@ branch = true
6060
source = ["src/"]
6161

6262
[tool.hatch.build.hooks.vcs]
63-
version-file = "src/{{ name }}/_version.py"
63+
version-file = "src/{{ package }}/_version.py"
6464

6565
[tool.hatch.build.targets.sdist]
6666
only-include = ["src/"]
6767

6868
[tool.hatch.build.targets.wheel]
69-
packages = ["src/{{ name }}/"]
69+
packages = ["src/{{ package }}/"]
7070

7171
[tool.hatch.version]
7272
source = "vcs"

0 commit comments

Comments
 (0)