Skip to content

Commit

Permalink
Setup for readthedocs
Browse files Browse the repository at this point in the history
  • Loading branch information
chaitan94 committed Jun 3, 2020
1 parent 8468a88 commit a8a5839
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# .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

# Build documentation with MkDocs
#mkdocs:
# configuration: mkdocs.yml

# Optionally build your docs in additional formats such as PDF
formats:
- pdf

# Optionally set the version of Python and requirements required to build your docs
python:
install:
- method: pip
path: .
extra_requirements:
- docs
- method: setuptools
path: .
3 changes: 3 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ def build_extension(self, ext):
keywords='irradiance sunrise sunset sun geo gis',
ext_modules=[CMakeExtension('daylight')],
packages=find_packages(),
setup_requires=["numpy"],
install_requires=["numpy>=1.10"],
extras_require={"docs": ["sphinx", "sphinx-rtd-theme", "numpydoc"]},
cmdclass=dict(build_ext=CMakeBuild),
url="https://github.com/adonmo/daylight",
zip_safe=False
Expand Down

0 comments on commit a8a5839

Please sign in to comment.