commit | 7724c7eba70f1b75edb9b1f4df9bb40c18062627 | [log] [tgz] |
---|---|---|
author | Marcus Christie <machristie@apache.org> | Wed Jul 14 14:01:57 2021 -0400 |
committer | Marcus Christie <machristie@apache.org> | Wed Jul 14 14:01:57 2021 -0400 |
tree | 362cf906bda6dbdc3e02010a21a282520c6d16ea | |
parent | 0370c2321e7c73902e53def5a1a839b2f623c9ec [diff] |
Windows: fixes extra whitespace when inserting output view provider in setup.cfg #1
Install the latest Cookiecutter if you haven't installed it yet:
pip install --user -U cookiecutter
This cookiecutter assumes that you are running it inside the root directory of a custom Airavata Django app. If you don't yet have a custom Airavata Django app, there is a cookiecutter you can use to create one: https://github.com/machristie/cookiecutter-airavata-django-app.
Once you have your custom Airavata Django app, go into the root directory and run this cookiecutter there. For example, if you created an Airavata Django app with the name test_django_app
, then change to that directory (this is the directory that contains the setup.cfg
file)
cd path/to/test_django_app
Then run the following:
cookiecutter https://github.com/machristie/cookiecutter-airavata-django-output-view.git -f
-f
is needed because output_views/
directory should already exist.
When prompted for the name of the custom_django_app_module_name
, give it the name of your Airavata Django app. Keeping with the example, you would supply test_django_app
.
If your Django app has an output_views.py file you'll get an error since this cookiecutter assumes that output_views
is a module directory. To convert it to module directory:
output_views/
directory in the same directory where your output_views.py file lives.output_views.py
file to output_views/__init__.py
output_views/__init__.py
file and move/rename as appropriate your output_views.py
file to a file in the output_views/
directory. You'll need to update the entry_points in setup.cfg.