Skip to content

Commit

Permalink
Merge pull request #41 from xylar/fix_docs
Browse files Browse the repository at this point in the history
Fix various problems that led to docs not getting update in v0.0.14
  • Loading branch information
xylar authored Feb 14, 2022
2 parents 6bc7628 + 18b06d2 commit a4b1656
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 6 deletions.
14 changes: 12 additions & 2 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,39 +30,45 @@ jobs:
displayName: Add conda to PATH

- bash: |
set -e
conda config --add channels conda-forge
conda config --set channel_priority strict
conda create --yes --quiet --name build python=$PYTHON_VERSION conda conda-build
displayName: Create Anaconda build environment
- bash: |
set -e
eval "$(conda shell.bash hook)"
conda activate build
conda build -m "ci/python${PYTHON_VERSION}.yaml" "recipe"
displayName: Build pyremap
- bash: |
set -e
eval "$(conda shell.bash hook)"
conda activate build
conda create --yes --quiet --name test -c ${CONDA_PREFIX}/conda-bld/ \
python=$PYTHON_VERSION pyremap pytest
displayName: Create Anaconda test environment
- bash: |
set -e
eval "$(conda shell.bash hook)"
conda activate test
pytest --pyargs pyremap
displayName: pytest
- bash: |
set -e
eval "$(conda shell.bash hook)"
conda activate build
conda create --yes --quiet --name docs -c ${CONDA_PREFIX}/conda-bld/ \
python=$PYTHON_VERSION pyremap sphinx mock sphinx_rtd_theme m2r
python=$PYTHON_VERSION pyremap sphinx mock sphinx_rtd_theme m2r2
condition: eq(variables['python.version'], '3.8')
displayName: Create Anaconda docs environment
- bash: |
set -e
eval "$(conda shell.bash hook)"
conda activate docs
Expand Down Expand Up @@ -146,25 +152,29 @@ jobs:
displayName: Fix permissions

- bash: |
set -e
conda config --add channels conda-forge
conda config --set channel_priority strict
conda create --yes --quiet --name build python=$PYTHON_VERSION conda conda-build
displayName: Create Anaconda build environment
- bash: |
set -e
eval "$(conda shell.bash hook)"
conda activate build
conda build -m "ci/python${PYTHON_VERSION}.yaml" "recipe"
displayName: Build pyremap
- bash: |
set -e
eval "$(conda shell.bash hook)"
conda activate build
conda create --yes --quiet --name test -c ${CONDA_PREFIX}/conda-bld/ \
python=$PYTHON_VERSION pyremap pytest sphinx mock sphinx_rtd_theme m2r
python=$PYTHON_VERSION pyremap pytest sphinx mock sphinx_rtd_theme m2r2
displayName: Create Anaconda test environment
- bash: |
set -e
eval "$(conda shell.bash hook)"
conda activate test
pytest --pyargs pyremap
Expand Down
2 changes: 1 addition & 1 deletion dev-spec.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ mock
pillow
sphinx
sphinx_rtd_theme
m2r
m2r2
3 changes: 3 additions & 0 deletions docs/versions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Documentation On GitHub
`v0.0.12`_ `0.0.12`_
`v0.0.13`_ `0.0.13`_
`v0.0.14`_ `0.0.14`_
`v0.0.15`_ `0.0.15`_
================ ===============

.. _`stable`: ../stable/index.html
Expand All @@ -26,6 +27,7 @@ Documentation On GitHub
.. _`v0.0.12`: ../0.0.12/index.html
.. _`v0.0.13`: ../0.0.13/index.html
.. _`v0.0.14`: ../0.0.14/index.html
.. _`v0.0.15`: ../0.0.15/index.html
.. _`master`: https://github.com/MPAS-Dev/pyremap/tree/master
.. _`0.0.6`: https://github.com/MPAS-Dev/pyremap/tree/0.0.6
.. _`0.0.7`: https://github.com/MPAS-Dev/pyremap/tree/0.0.7
Expand All @@ -36,3 +38,4 @@ Documentation On GitHub
.. _`0.0.12`: https://github.com/MPAS-Dev/pyremap/tree/0.0.12
.. _`0.0.13`: https://github.com/MPAS-Dev/pyremap/tree/0.0.13
.. _`0.0.14`: https://github.com/MPAS-Dev/pyremap/tree/0.0.14
.. _`0.0.15`: https://github.com/MPAS-Dev/pyremap/tree/0.0.15
2 changes: 1 addition & 1 deletion pyremap/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@

from pyremap.polar import get_polar_descriptor_from_file, get_polar_descriptor

__version_info__ = (0, 0, 14)
__version_info__ = (0, 0, 15)
__version__ = '.'.join(str(vi) for vi in __version_info__)
2 changes: 1 addition & 1 deletion pyremap/docs/parse_quick_start.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from m2r import convert
from m2r2 import convert


def build_quick_start():
Expand Down
2 changes: 1 addition & 1 deletion recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% set name = "pyremap" %}
{% set version = "0.0.14" %}
{% set version = "0.0.15" %}

package:
name: {{ name|lower }}
Expand Down

0 comments on commit a4b1656

Please sign in to comment.