Skip to content

Commit

Permalink
Merge pull request #81 from lsst/tickets/PREOPS-4988
Browse files Browse the repository at this point in the history
PREOPS-4988: add rubin-sim to dependencies
  • Loading branch information
rhiannonlynne authored Mar 14, 2024
2 parents 3c02333 + 5e6ac5a commit dedb11e
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 10 deletions.
13 changes: 11 additions & 2 deletions docs/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,15 @@ To download the necessary data, see the data download pages
`for rubin_scheduler <https://rubin-scheduler.lsst.io/data-download.html#data-download>`_
and `for rubin_sim <https://rubin-sim.lsst.io/data-download.html#data-download>`_

Note: at present, there are some dependencies which are not listed in the
conda recipe, either because there is no conda package or we are determining
whether it is safe to include them for installation in an LSST Stack metapackage.
To add these additional packages, please install the following into your environment::

$ pip install lsst-resources
$ conda install -c conda-forge lsst-efd-client

Installing with ``pip``
-----------------------

Expand All @@ -46,12 +55,12 @@ First, get the code by cloning the github project::

Create a ``conda`` environment with the appropriate dependencies, and activate it::

$ conda create --name schedview -c conda-forge --only-deps schedview
$ conda create --channel conda-forge --name rubin_sim --file requirements.txt python=3.11
$ conda activate schedview

Install the (development) ``schedview`` in your new environment::

$ pip install -e .
$ pip install -e . --no-deps

Some additional packages are required to run the tests.
To install the tests, install the dependenices, then run the tests::
Expand Down
4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ dependencies = [
"healpy",
"holoviews",
"hvplot",
"lsst-efd-client",
"lsst-resources",
"matplotlib",
"numpy",
"pandas",
Expand All @@ -36,7 +38,7 @@ dependencies = [
"pytz",
"skyproj",
"rubin-scheduler",
"lsst.resources",
"rubin-sim",
"uranography >= 1.1.0 ",
]

Expand Down
13 changes: 7 additions & 6 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
astropy
bokeh
astropy>=5.3
bokeh>=3.1.1
colorcet
healpy
holoviews
hvplot
matplotlib
lsst-efd-client
matplotlib-base
numpy
pandas
panel
panel>=1.1.0
param
pytz
skyproj
uranography
uranography>=1.1.0
rubin-scheduler
rubin-sim
rubin-sim>=2
pip
2 changes: 1 addition & 1 deletion test-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
pytest
black
black>=24.0
ruff
pytest-cov
firefox
Expand Down

0 comments on commit dedb11e

Please sign in to comment.