Commit 03b03a6
committed
Move variable to cookiecutter.json to fix issue
After renaming the project root directory from
`{{ cookiecutter.project_slug }}`
to
`{{ cookiecutter.pypi_package_name }}`,
running the e2e test failed with the following error:
> jinja2.exceptions.UndefinedError: 'collections.OrderedDict object' has no attribute 'pypi_package_name'
Move the `pypi_package_name` declaration from the pre-gen hook into the
`cookiecutter.json` file proper to fix the issue.1 parent 710f2d2 commit 03b03a6
2 files changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
4 | 6 | | |
5 | 7 | | |
6 | 8 | | |
| |||
11 | 13 | | |
12 | 14 | | |
13 | 15 | | |
14 | | - | |
| 16 | + | |
15 | 17 | | |
16 | 18 | | |
17 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | | - | |
13 | 11 | | |
14 | 12 | | |
15 | 13 | | |
| |||
0 commit comments