Skip to content
This repository was archived by the owner on May 26, 2020. It is now read-only.

Commit 35acda8

Browse files
committed
Update requirement setup
1 parent 6c5e918 commit 35acda8

File tree

7 files changed

+41
-29
lines changed

7 files changed

+41
-29
lines changed

requirements.txt

+8-14
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,9 @@
1-
# Minimum Django and DRF version
2-
Django>=1.6
3-
djangorestframework>=2.4.3
1+
# Laying these out as seperate requirements files, allows us to
2+
# only included the relevent sets when running tox, and ensures
3+
# we are only ever declaring out dependancies in one place.
44

5-
# Test requirements
6-
pytest-django==2.6
7-
pytest==2.5.2
8-
pytest-cov==1.6
9-
flake8==2.2.2
10-
freezegun==0.3.2
11-
12-
# Optional packages
13-
django-oauth-plus>=2.2.1
14-
oauth2>=1.5.211
15-
django-oauth2-provider>=0.2.4
5+
-r requirements/optionals.txt
6+
-r requirements/testing.txt
7+
-r requirements/documentation.txt
8+
-r requirements/codestyle.txt
9+
-r requirements/packaging.txt

requirements/codestyle.txt

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# PEP8 code linting, which we run on all commits.
2+
flake8==2.4.0
3+
pep8==1.5.7

requirements/documentation.txt

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# MkDocs to build our documentation.
2+
mkdocs==0.13.2

requirements/optionals.txt

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
oauth2==1.5.211
2+
django-oauth-plus==2.2.6
3+
django-oauth2-provider==0.2.6.1

requirements/packaging.txt

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Wheel for PyPI installs.
2+
wheel==0.24.0
3+
4+
# Twine for secured PyPI uploads.
5+
twine==1.4.0

requirements/testing.txt

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# PyTest for running the tests.
2+
pytest==2.6.4
3+
pytest-django==2.8.0
4+
pytest-cov==1.6
5+
6+
# Mocking the datetime module.
7+
freezegun==0.3.2

tox.ini

+13-15
Original file line numberDiff line numberDiff line change
@@ -9,26 +9,24 @@ commands = ./runtests.py --fast {posargs}
99
setenv =
1010
PYTHONDONTWRITEBYTECODE=1
1111
deps =
12-
django1.6: Django==1.6.11
13-
django1.7: Django==1.7.8
14-
django1.8: Django==1.8.1
15-
drf2.4: djangorestframework==2.4.5
16-
drf3.0: djangorestframework==3.0.5
17-
drf3.1: djangorestframework==3.1.2
18-
py27-django1.6-drf{2.4,3.0,3.1}: oauth2==1.5.211
19-
py27-django1.6-drf{2.4,3.0,3.1}: django-oauth-plus==2.2.6
20-
py27-django1.6-drf{2.4,3.0,3.1}: django-oauth2-provider==0.2.6.1
21-
pytest-django==2.8.0
22-
py27-django{1.6,1.7,1.8}-drf3.1.1: djangorestframework-oauth==1.0.1
23-
freezegun==0.3.3
12+
django1.6: Django==1.6.3 # Should track minimum supported
13+
django1.7: Django==1.7.8 # Should track maximum supported
14+
django1.8: Django==1.8.2 # Should track maximum supported
15+
drf2.4: djangorestframework==2.4.5 # Should track minimum supported
16+
drf3.0: djangorestframework==3.0.5 # Should track maximum supported
17+
drf3.1: djangorestframework==3.1.3 # Should track maximum supported
18+
py27-django1.6-drf{2.4,3.0,3.1}: -rrequirements/optionals.txt
19+
py27-django{1.6,1.7,1.8}-drf3.1: djangorestframework-oauth==1.0.1
20+
-rrequirements/testing.txt
2421

2522
[testenv:py27-flake8]
2623
commands = ./runtests.py --lintonly
2724
deps =
28-
pytest==2.5.2
29-
flake8==2.2.2
25+
-rrequirements/codestyle.txt
26+
-rrequirements/testing.txt
3027

3128
[testenv:py27-docs]
3229
commands = mkdocs build
3330
deps =
34-
mkdocs>=0.11.1
31+
-rrequirements/testing.txt
32+
-rrequirements/documentation.txt

0 commit comments

Comments
 (0)