Skip to content

Commit 8001ae3

Browse files
authored
Merge pull request #254 from mkelley/fix-setup-cfg
Fix requirements and setup.py
2 parents 3d4857b + ffd86f2 commit 8001ae3

File tree

5 files changed

+22
-11
lines changed

5 files changed

+22
-11
lines changed

docs/install.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ care of with installation using pip:
1717
* `numpy <https://www.numpy.org/>`__ 1.13.0 or later
1818
* pytest 3.1 or later
1919
* `astropy <https://www.astropy.org/>`__
20-
* `astroquery <https://astroquery.readthedocs.io/en/latest/>`__ 0.3.9.dev5089 or later: For retrieval of online data, e.g., ephemerides and orbits.
20+
* `astroquery <https://astroquery.readthedocs.io/en/latest/>`__ 0.4.1.dev5892 or later: For retrieval of online data, e.g., ephemerides and orbits.
2121
* `scipy <https://scipy.org/>`__: For numerical integrations in `sbpy.activity.gas` and `sbpy.photometry`, among others.
2222
* `synphot <https://github.com/spacetelescope/synphot_refactor>`__ 0.1.3 or later: For calibration with respect to the Sun and Vega, filtering spectra through bandpasses.
2323
* `ginga <https://ejeschke.github.io/ginga/>`__ and `photutils <https://photutils.readthedocs.io/en/stable/>`__: To interactively enhance images of comets with the `~sbpy.imageanalysis.CometaryEnhancement` Ginga plugin.

pip-requirements

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# The pip-requirements file should no longer be used. Instead, to install
2+
# sbpy along with its dependencies, you can use:
3+
#
4+
# pip install .
5+
#
6+
# to install only the minimal dependencies, or e.g.:
7+
#
8+
# pip install .[all]
9+
#
10+
# to install all optional dependencies.

requirements.txt

Lines changed: 0 additions & 6 deletions
This file was deleted.

setup.cfg

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,22 @@ license = BSD 3-Clause
3232
url = https://sbpy.org
3333
edit_on_github = False
3434
github_project = NASA-Planetary-Science/sbpy
35+
36+
[options]
3537
install_requires =
3638
numpy>=1.13.0
37-
astropy>=3.0<4.0
39+
astropy>=3.0,<4.0
3840
astropy-helpers
3941
matplotlib
4042
ads
4143
synphot<0.2
42-
astroquery>=0.4
44+
astroquery>=0.4.1.dev0
45+
46+
[options.extras_require] =
47+
all =
48+
scipy
49+
ginga
50+
photutils
4351

4452
[pycodestyle]
4553
select = E101,E111,E112,E113,E124,E201,E202,E203,E211,E221,E225,E231,E241,E251,E261,E265,E271,E272,E301,E302,E303,E305,E502,E703,E711,E712,E714,E722,E901,E902,W191,W291,W292,W293,W391

setup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,7 @@
140140
version=VERSION,
141141
description=DESCRIPTION,
142142
scripts=scripts,
143-
install_requires=metadata.get(
144-
'install_requires', 'astropy').strip().split(','),
143+
install_requires=metadata.get('install_requires'),
145144
python_requires='>=3.6',
146145
include_package_data=True,
147146
author=AUTHOR,

0 commit comments

Comments
 (0)