Skip to content
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

Dropping Django 1.9 support & test improvements #22

Merged
merged 4 commits into from
Feb 20, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ help:
lint:
flake8 --exclude=migrations,settings src/

test:
check:
python src/manage.py check

test: check
python src/manage.py test src/ --settings=foobar.settings.test

coverage:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ This repository contains the backend for the FooBar kiosk and inventory system.
## Requirements

- Python 3.4+
- Django 1.9+
- Django 1.10+
- [pdftotext](https://linux.die.net/man/1/pdftotext) for delivery report parsing

## Setup
Expand Down
11 changes: 6 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,21 +1,22 @@
[tox]
skipsdist = True
envlist =
py34-{1.9,1.10,1.11},
py35-{1.9,1.10,1.11},
py36-{1.9,1.10,1.11},
py34-{1.10,1.11},
py35-{1.10,1.11},
py36-{1.10,1.11},
flake8
coverage

[testenv]
deps =
-r{toxinidir}/requirements/test.txt
1.9: Django<1.10
1.10: Django<1.11
1.11: Django<1.12
setenv =
DJANGO_SETTINGS_MODULE=foobar.settings.test
commands = python src/manage.py test src/
commands =
python src/manage.py check
python src/manage.py test src/

[testenv:flake8]
deps = flake8
Expand Down