Skip to content

Commit 15f350f

Browse files
committed
Change repo_name to project_slug for clarity.
1 parent bfce5e5 commit 15f350f

File tree

146 files changed

+59
-361
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

146 files changed

+59
-361
lines changed

cookiecutter.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"project_name": "project_name",
3-
"repo_name": "{{ cookiecutter.project_name|replace(' ', '_')|replace('-', '_') }}",
3+
"project_slug": "{{ cookiecutter.project_name|replace(' ', '_')|replace('-', '_') }}",
44
"author_name": "Your Name",
55
"email": "Your email",
66
"description": "A short description of the project.",

docs/Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,17 +77,17 @@ qthelp:
7777
@echo
7878
@echo "Build finished; now you can run "qcollectiongenerator" with the" \
7979
".qhcp project file in $(BUILDDIR)/qthelp, like this:"
80-
@echo "# qcollectiongenerator $(BUILDDIR)/qthelp/{{ cookiecutter.repo_name }}.qhcp"
80+
@echo "# qcollectiongenerator $(BUILDDIR)/qthelp/{{ cookiecutter.project_slug }}.qhcp"
8181
@echo "To view the help file:"
82-
@echo "# assistant -collectionFile $(BUILDDIR)/qthelp/{{ cookiecutter.repo_name }}.qhc"
82+
@echo "# assistant -collectionFile $(BUILDDIR)/qthelp/{{ cookiecutter.project_slug }}.qhc"
8383

8484
devhelp:
8585
$(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp
8686
@echo
8787
@echo "Build finished."
8888
@echo "To view the help file:"
89-
@echo "# mkdir -p $$HOME/.local/share/devhelp/{{ cookiecutter.repo_name }}"
90-
@echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/{{ cookiecutter.repo_name }}"
89+
@echo "# mkdir -p $$HOME/.local/share/devhelp/{{ cookiecutter.project_slug }}"
90+
@echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/{{ cookiecutter.project_slug }}"
9191
@echo "# devhelp"
9292

9393
epub:

docs/deployment-with-docker.rst

Lines changed: 4 additions & 4 deletions

docs/faq.rst

Lines changed: 1 addition & 1 deletion

docs/make.bat

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,9 @@ if "%1" == "qthelp" (
9999
echo.
100100
echo.Build finished; now you can run "qcollectiongenerator" with the ^
101101
.qhcp project file in %BUILDDIR%/qthelp, like this:
102-
echo.^> qcollectiongenerator %BUILDDIR%\qthelp\{{ cookiecutter.repo_name }}.qhcp
102+
echo.^> qcollectiongenerator %BUILDDIR%\qthelp\{{ cookiecutter.project_slug }}.qhcp
103103
echo.To view the help file:
104-
echo.^> assistant -collectionFile %BUILDDIR%\qthelp\{{ cookiecutter.repo_name }}.ghc
104+
echo.^> assistant -collectionFile %BUILDDIR%\qthelp\{{ cookiecutter.project_slug }}.ghc
105105
goto end
106106
)
107107

hooks/post_gen_project.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
1. Generates and saves random secret key
55
2. Removes the taskapp if celery isn't going to be used
66
3. Removes the .idea directory if PyCharm isn't going to be used
7-
4. Copy files from /docs/ to {{ cookiecutter.repo_name }}/docs/
7+
4. Copy files from /docs/ to {{ cookiecutter.project_slug }}/docs/
88
99
TODO: this might have to be moved to a pre_gen_hook
1010
@@ -87,7 +87,7 @@ def remove_task_app(project_directory):
8787
# Determine the local_setting_file_location
8888
task_app_location = os.path.join(
8989
PROJECT_DIRECTORY,
90-
'{{ cookiecutter.repo_name }}/taskapp'
90+
'{{ cookiecutter.project_slug }}/taskapp'
9191
)
9292
shutil.rmtree(task_app_location)
9393

@@ -197,5 +197,5 @@ def remove_grunt_files():
197197
" mailhog service to your docker configuration manually."
198198
)
199199

200-
# 4. Copy files from /docs/ to {{ cookiecutter.repo_name }}/docs/
200+
# 4. Copy files from /docs/ to {{ cookiecutter.project_slug }}/docs/
201201
# copy_doc_files(PROJECT_DIRECTORY)

hooks/pre_gen_project.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
repo_name = '{{ cookiecutter.repo_name }}'
1+
repo_name = '{{ cookiecutter.project_slug }}'
22

33
if hasattr(repo_name, 'isidentifier'):
44
assert repo_name.isidentifier(), 'Repo name should be valid Python identifier!'

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[pytest]
22
python_paths = .
3-
norecursedirs = .tox .git */migrations/* */static/* docs venv */{{cookiecutter.repo_name}}/*
3+
norecursedirs = .tox .git */migrations/* */static/* docs venv */{{cookiecutter.project_slug}}/*
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[run]
2-
include = {{cookiecutter.repo_name}}/*
2+
include = {{cookiecutter.project_slug}}/*
33
omit = *migrations*, *tests*
44
plugins =
55
django_coverage_plugin

0 commit comments

Comments
 (0)