-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot run make requirements
from an empty virtualenv for cookiecutter-django-ida
#317
Comments
How each repo handles installing pip-tools / pip-sync via
Manually edited shell search: edx-cookiecutters % git grep -n -A5 '^requirements:' **/Makefile
cookiecutter-django-app/{{cookiecutter.repo_name}}/Makefile:63:requirements: piptools ## install development environment requirements
cookiecutter-django-app/{{cookiecutter.repo_name}}/Makefile-64- pip-sync -q requirements/dev.txt requirements/private.*
--
cookiecutter-django-ida/{{cookiecutter.repo_name}}/Makefile:38:requirements: clean_pycrypto dev_requirements ## sync to default requirements
--
cookiecutter-xblock/{{cookiecutter.repo_name}}/Makefile:45:requirements: piptools## install development environment requirements
cookiecutter-xblock/{{cookiecutter.repo_name}}/Makefile-46- pip-sync -q requirements/dev.txt requirements/private.*
--
python-template/{{cookiecutter.placeholder_repo_name}}/Makefile:61:requirements: ## install development environment requirements
python-template/{{cookiecutter.placeholder_repo_name}}/Makefile-62- pip install -r requirements/pip.txt
python-template/{{cookiecutter.placeholder_repo_name}}/Makefile-63- pip install -r requirements/pip-tools.txt
python-template/{{cookiecutter.placeholder_repo_name}}/Makefile-64- pip-sync requirements/dev.txt requirements/private.* |
Hmm! Yeah, |
@pshiu I think the original scope of the issue is complete; cookiecutter-django-ida now has a working |
@timmc-edx Hooray! Thanks for taking on this work! I never found |
Filed #337 for automatically running |
The Makefile target
piptools
, which installspip-sync
, was removed from cookiecutter-django-ida (but not other cookiecutters) in [link to line]. This means thatmake requirements
in a clean virtualenv will fail for that cookiecutter's outputs.The other cookiecutters vary in how they install the
pip-tools
package.Acceptance criteria:
pre-requirements
target (or similar) that installs pip and pip-tools pin files, as a dependency of theupgrade
and*requirements
targets.Unit tests check thatmake requirements
works in a fresh cookiecutter outputmake upgrade
is a separate post-setup manual step, so this work is deferred to Runmake upgrade
automatically when running a cookiecutter #337The text was updated successfully, but these errors were encountered: