diff --git a/.github/workflows/ci_tests.yml b/.github/workflows/ci_tests.yml index 8e78c674..3dbfd4e2 100644 --- a/.github/workflows/ci_tests.yml +++ b/.github/workflows/ci_tests.yml @@ -58,11 +58,6 @@ jobs: python: '3.11' toxenv: py11-test-devdeps - - name: Test building of Sphinx docs - os: ubuntu-latest - python: 3.x - toxenv: build_docs - steps: - name: Checkout code uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 diff --git a/.gitmodules b/.gitmodules deleted file mode 100644 index e69de29b..00000000 diff --git a/.readthedocs.yaml b/.readthedocs.yaml new file mode 100644 index 00000000..1c07ead6 --- /dev/null +++ b/.readthedocs.yaml @@ -0,0 +1,26 @@ +version: 2 + +build: + os: "ubuntu-22.04" + apt_packages: + - graphviz + tools: + python: "3.11" + +sphinx: + builder: html + configuration: docs/conf.py + fail_on_warning: true + +# Install regular dependencies. +# Then, install special pinning for RTD. +python: + install: + - method: pip + path: . + extra_requirements: + - docs + +# Optionally build your docs in additional formats such as PDF +formats: + - pdf diff --git a/.readthedocs.yml b/.readthedocs.yml deleted file mode 100644 index 94ec54dc..00000000 --- a/.readthedocs.yml +++ /dev/null @@ -1,31 +0,0 @@ -# .readthedocs.yml -# Read the Docs configuration file -# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details - -# Required -version: 2 - -# Build documentation in the docs/ directory with Sphinx -sphinx: - configuration: docs/conf.py - -# Optionally build your docs in additional formats such as PDF -formats: - - pdf - -build: - os: ubuntu-20.04 - apt_packages: - - graphviz - tools: - python: "3.9" - - -# Optionally set the version of Python and requirements required to build your docs -python: - install: - - requirements: docs/rtd-pip-requirements - - method: pip - path: . - extra_requirements: - - docs diff --git a/MANIFEST.in b/MANIFEST.in index 21444f62..7743dc11 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -2,15 +2,11 @@ include LICENSE.rst include README.rst include CHANGES.rst -include ez_setup.py -include ah_bootstrap.py +include pyproject.toml include setup.cfg -recursive-include *.pyx *.c *.pxd recursive-include docs * recursive-include licenses * -recursive-include cextern * -recursive-include scripts * prune build prune docs/_build diff --git a/docs/conf.py b/docs/conf.py index a2817fbb..9cb27f53 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -64,12 +64,6 @@ copyright = '{0}, {1}'.format( datetime.datetime.now().year, setup_cfg['author']) -# The version info for the project you're documenting, acts as replacement for -# |version| and |release|, also used in various other places throughout the -# built documents. -__import__(project) -package = sys.modules[project] - # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the # built documents. @@ -166,8 +160,7 @@ ] # -- Resolving issue number to links in changelog ----------------------------- -github_issues_url = 'https://github.com/{0}/issues/'.format(setup_cfg['github_p\ -roject']) +github_issues_url = 'https://github.com/astropy/astroplan/issues/' # -- Options for linkcheck output ------------------------------------------- linkcheck_retry = 5 diff --git a/docs/rtd-pip-requirements b/docs/rtd-pip-requirements deleted file mode 100644 index ea66e5e9..00000000 --- a/docs/rtd-pip-requirements +++ /dev/null @@ -1,7 +0,0 @@ -numpy >= 1.6 -matplotlib -Cython -astropy >= 5 -pytz -astroquery -sphinx-astropy