Skip to content

Commit

Permalink
Merge pull request #86 from aburrell/rtd_update
Browse files Browse the repository at this point in the history
Read The Docs update
  • Loading branch information
aburrell committed Aug 17, 2023
2 parents dedbe3d + 8c8da27 commit e8d5bd9
Show file tree
Hide file tree
Showing 7 changed files with 44 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Expand Up @@ -31,7 +31,7 @@ jobs:
run: |
pip install build
python -m build .
pip install -r docs/requirements.txt
pip install .[doc]
- name: Check documentation build
run: sphinx-build -E -b html docs dist/docs
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Expand Up @@ -26,7 +26,7 @@ jobs:
architecture: 'x64'

- name: Install standard and test dependencies
run: pip install build coverage coveralls flake8 numpy pytest
run: pip install .[test]

- name: Install on Linux/Windows
if: ${{ matrix.os != 'macos-latest' }}
Expand Down
25 changes: 25 additions & 0 deletions .readthedocs.yml
@@ -0,0 +1,25 @@
# .readthedocs.yml
# Read the Docs configuration file
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details

# Required
version: 2

# Set the version of Python and other tools you might need
build:
os: ubuntu-22.04
tools:
python: "3.10"

# Build documentation in the docs/ directory with Sphinx
sphinx:
configuration: docs/conf.py


# Optionally declare the Python requirements required to build your docs
python:
install:
- method: pip
path: .
extra_requirements:
- doc
5 changes: 5 additions & 0 deletions CHANGELOG.rst
Expand Up @@ -2,6 +2,11 @@
Changelog
=========

2.6.4 (2023-XX-XX)
------------------

* Added yaml for ReadTheDocs and moved requirements to pyproject.toml

2.6.3 (2023-02-08)
------------------

Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Expand Up @@ -6,7 +6,7 @@
'sphinx.ext.coverage',
'sphinx.ext.ifconfig',
'sphinx.ext.viewcode',
'sphinxcontrib.napoleon',
'sphinx.ext.napoleon',
'numpydoc']

source_suffix = '.rst'
Expand Down
5 changes: 0 additions & 5 deletions docs/requirements.txt

This file was deleted.

14 changes: 11 additions & 3 deletions pyproject.toml
Expand Up @@ -54,11 +54,19 @@ aacgmv2 = {reference = 'aacgmv2.__main__:main', type = 'console'}

[project.optional-dependencies]
test = [
"build",
"coverage",
"coveralls",
"flake8",
"numpy",
"pytest",
"pytest-cov",
"pytest-xdist",
]
doc = ["sphinx>=1.3", "sphinx-rtd-theme"]
doc = [
"sphinx>=1.3",
"sphinxcontrib-napoleon",
"numpydoc",
"sphinx-rtd-theme>=1.2.2"
]

[project.urls]
source = "https://github.com/aburrell/aacgmv2"
Expand Down

0 comments on commit e8d5bd9

Please sign in to comment.