diff --git a/manage.py b/manage.py new file mode 100755 index 0000000..60a8174 --- /dev/null +++ b/manage.py @@ -0,0 +1,22 @@ +#!/usr/bin/env python +"""Django's command-line utility for administrative tasks.""" +import os +import sys + + +def main(): + """Run administrative tasks.""" + os.environ.setdefault("DJANGO_SETTINGS_MODULE", "tests.test_settings") + try: + from django.core.management import execute_from_command_line + except ImportError as exc: + raise ImportError( + "Couldn't import Django. Are you sure it's installed and " + "available on your PYTHONPATH environment variable? Did you " + "forget to activate a virtual environment?" + ) from exc + execute_from_command_line(sys.argv) + + +if __name__ == "__main__": + main() diff --git a/test_reqs.txt b/test_reqs.txt index 3506d20..09874d0 100644 --- a/test_reqs.txt +++ b/test_reqs.txt @@ -1,11 +1,5 @@ -Django==2.2.8 -Pillow>=6.2.0 -Sphinx==1.2.3 -coverage==5.5 -coveralls==3.0.1 -djangorestframework==3.10.3 -flake8==2.2.5 -python-magic==0.4.22 -requests==2.5.1 -sphinx-rtd-theme==0.1.6 -testfixtures==6.17.1 +Pillow +coverage +coveralls +djangorestframework +testfixtures \ No newline at end of file diff --git a/tox.ini b/tox.ini index f005477..884815c 100644 --- a/tox.ini +++ b/tox.ini @@ -20,7 +20,7 @@ DJANGO = 5.0: django50 [testenv] -passenv = TRAVIS TRAVIS_* GITHUB_* +passenv = TRAVIS,TRAVIS_*,GITHUB_* deps= coverage coveralls