Skip to content

Commit

Permalink
Use extras_require to install doc dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
coldfix committed Oct 15, 2020
1 parent 4419e19 commit 88ea61f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ jobs:

documentation:
name: Update documentation
needs: test
needs: build_linux
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -251,8 +251,7 @@ jobs:
name: dist-linux-x86_64
path: dist

- run: pip install sphinx sphinx_rtd_theme
- run: pip install cpymad -f dist
- run: pip install cpymad[doc] -f dist
- run: make -C doc html

- name: Deploy to GitHub Pages
Expand Down
5 changes: 5 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ install_requires =
numpy
minrpc>=0.0.8

[options.extras_require]
doc =
sphinx
sphinx_rtd_theme

[flake8]
# codes: https://pycodestyle.readthedocs.io/en/latest/intro.html#error-codes
# default: ignore = E121,E123,E126,E133,E226,E241,E242,E704,W503,W504,W505
Expand Down

0 comments on commit 88ea61f

Please sign in to comment.