Skip to content

Commit

Permalink
new doc builder, lower pandas req
Browse files Browse the repository at this point in the history
  • Loading branch information
cdiener committed Mar 26, 2021
1 parent e8152fd commit b95da6b
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 4 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Python package

on:
push:
branches: [ master ]
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'

jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Set up Python
uses: actions/setup-python@v2
- name: Install dependencies
run: |
python -m pip install --upgrade pip cryptography
pip install wheel numpy Cython
pip install biom-format
pip install sphinx nbsphinx jupyter-sphinx-theme
pip install -e .
- name: Build docs
run: |
cd docs && make html
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs
4 changes: 1 addition & 3 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@

# General information about the project.
project = 'micom'
copyright = '2017-2020, Christian Diener'
copyright = '2017-2021, Christian Diener'
author = 'Christian Diener'

# The version info for the project you're documenting, acts as replacement for
Expand All @@ -61,8 +61,6 @@
#
# The full version, including alpha/beta/rc tags.
release = micom.__version__
# The short X.Y version.
version = ".".join(release.split(".")[:2]) + ".x"

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
"cobra>=0.17.1",
"depinfo>=1.7.0",
"optlang>=1.4.7",
"pandas>=1.2.0",
"pandas>=1.0.0",
"rich>=9.10.0",
"jinja2>=2.10.0",
"scikit-learn>=0.22.0",
Expand Down

0 comments on commit b95da6b

Please sign in to comment.