Skip to content

Commit

Permalink
correctly import version for RTD and pip installation
Browse files Browse the repository at this point in the history
  • Loading branch information
JarronL committed Dec 22, 2021
1 parent 382b056 commit adce4f8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .rtd-environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ dependencies:
- docutils==0.16
- astroquery>=0.4.3
- pysynphot>=2.0
# - poppy>=1.0.1
- poppy>=1.0.1
- webbpsf>=1.0.0
# - git+https://github.com/JarronL/webbpsf_ext.git
- git+https://github.com/JarronL/webbpsf_ext.git
6 changes: 3 additions & 3 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Cython
astropy>=4.2
astroquery>=0.4.3
astropy-helpers>=3.1
poppy>=1.0
webbpsf>=1.0
pysynphot>=2.0
git+https://github.com/JarronL/webbpsf_ext.git
poppy>=1.0.1
webbpsf>=1.0.0
-e git+https://github.com/JarronL/webbpsf_ext.git
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@

root = path.abspath(path.dirname(__file__))

from pynrc.version import __version__
# Rather than importing (which will fail due to __init__.py)
# open and execute the file directly
exec(open('webbpsf_ext/version.py').read())
version = __version__

RELEASE = 'dev' not in version
Expand Down

0 comments on commit adce4f8

Please sign in to comment.