Skip to content

Commit

Permalink
Moved doc dependencies to docs/requirements.txt
Browse files Browse the repository at this point in the history
So we can really pin the django version for example
  • Loading branch information
Martijn Jacobs committed Dec 20, 2019
1 parent aa79abe commit 6ff8b6e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
3 changes: 1 addition & 2 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ sphinx:
python:
version: 3.7
install:
- requirements: docs/requirements.txt
- method: pip
path: .
extra_requirements:
- docs
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ clean:
rm -Rf build/

install:
pip install -e .[dev,docs]
pip install -e .[dev,lint]

sandbox: install
python sandbox/manage.py migrate
Expand All @@ -30,7 +30,8 @@ docker-build:
docker-coverage: docker-build
docker run -ti -v $(CURDIR):/opt -w /opt oscarapi/test bash -c "make install && pip install 'Django<3' && /usr/bin/make coverage"

docs: install
docs:
pip install -r docs/requirements.txt
cd docs && make clean && make html

build_release: clean
Expand Down
3 changes: 3 additions & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Django<3
sphinx
sphinx_rtd_theme
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,5 @@
extras_require={
"dev": ["coverage", "mock", "twine", "wheel"],
"lint": ["flake8", "flake8-black", "flake8-bugbear", "black>=19.10b0"],
"docs": ["sphinx", "sphinx_rtd_theme", "Django<3"],
},
)

0 comments on commit 6ff8b6e

Please sign in to comment.