Skip to content

Commit

Permalink
Now trying a hack recommended by Jiawei Zhuang used in xesmf
Browse files Browse the repository at this point in the history
readthedocs/readthedocs.org#5512 (comment)

Signed-off-by: Lizzie Lundgren <elundgren@seas.harvard.edu>
  • Loading branch information
lizziel committed Apr 26, 2019
1 parent 8c771ea commit b82c687
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 21 deletions.
17 changes: 0 additions & 17 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,21 +1,4 @@
numpydoc
ipython
nbsphinx
xarray
xbpch
dask
git+https://github.com/geoschem/gcpy
bottleneck
cartopy
cython
dask
esmpy
future
matplotlib
netcdf4
numpy
six
xarray
sphinx
proj
GEOS
2 changes: 1 addition & 1 deletion readthedocs.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
python:
version: 3.6

requirements_file: docs/environment.yml
requirements_file: docs/requirements.txt
13 changes: 10 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
cd #!/usr/bin/env python

import os
import warnings
Expand All @@ -18,6 +18,14 @@
URL = "http://gcpy.readthedocs.io/en/latest/"
LICENSE = "MIT"

# based on solution at https://github.com/rtfd/readthedocs.org/issues/5512#issuecomment-475024373
on_rtd = os.environ.get('READTHEDOCS') == 'True'
if on_rtd:
INSTALL_REQUIRES = []
else:
INSTALL_REQUIRES = ['esmpy', 'xarray', 'numpy', 'scipy']


CLASSIFIERS = [
'Development Status :: 4 - Beta',
'License :: OSI Approved :: MIT License',
Expand All @@ -36,7 +44,6 @@
VERSION = "{}.{}.{}".format(MAJOR, MINOR, MICRO)
DEV = True


# Correct versioning with git info if DEV
if DEV:
import subprocess
Expand Down Expand Up @@ -88,4 +95,4 @@ def _write_version_file():
package_data = {},

classifiers = CLASSIFIERS
)
)

0 comments on commit b82c687

Please sign in to comment.