name: bluesky_2023_1

# use:
#   date; micromamba create -y -n bluesky_2023_1 -f ~/Downloads/bluesky_2023_1.yml; date
#   # then activate with:
#   eval "$(micromamba shell hook --shell=bash)"
#   micromamba activate bluesky_2023_1

# download:
#   wget https://raw.githubusercontent.com/BCDA-APS/use_bluesky/main/install/environment_2023_1.yml

# Add/revise environment variable for default bluesky environment.
# Might be defined in either ~/.bashrc or ~/.bash_aliases
# export BLUESKY_CONDA_ENV=bluesky_2023_1

channels:
  - conda-forge
  - apsu
  - aps-anl-tag
  - defaults
  - sveseli

dependencies:

  # --- Python core packages
  - python >=3.9
  - ipython
  - jupyter
  - jupyterlab
  - notebook
  - pip
  - psutil

  # --- testing and quality assurance
  - black
  - flake8
  - pylint
  - pytest
  - pytest-notebook

  # --- Qt
  - pyqt =5
  - qt =5

  # --- general support packages
  - bitshuffle
  - epics-base >=7.0.5
  - h5py
  - hdf5plugin
  - imagecodecs-lite
  - ipympl
  - lxml
  - pandas
  - pint
  - pyEpics >=3.5.0
  - pymongo
  - pysumreg
  - scikit-image
  - xlrd

  # --- Bluesky framework packages
  - apstools
  - area-detector-handlers
  - bluesky-queueserver
  - bluesky-queueserver-api
  - bluesky-widgets
  - bluesky >=1.8.1
  - databroker-pack
  - databroker =1.2
  - hklpy >=1.0.3  # --- linux-64
  - ophyd >=1.6.3
  - pydm
  # https://github.com/pydata/xarray/issues/6818
  - xarray !=2022.6.0  # incompatible with numpy=1.20

  # --- user-requested packages
  - nexpy
  - punx
  - pvapy
  - pvview
  - pymca
  - pyRestTable
  - spec2nexus
  - stdlogpj
  - xrayutilities

  # --- packaging and publishing
  - conda-build
  - coverage
  - mamba
  - micromamba
  - pydata-sphinx-theme
  - pygithub
  - sphinx
  - sphinxcontrib-napoleon
  - twine
  - versioneer

  # if using this environment at APS, then uncomment these (and apsbss below)
  # - aps-dm-api >=5   # linux-64  osx-64
  # - c2dataviewer  # --- linux-64

  - pip:
    # - apsbss  # only works on APS subnet
    # - happi
    - tiled[all]
    - https://github.com/BCDA-APS/adl2pydm/archive/main.zip
    # --- optional Bluesky framework packages for evaluation
    # - bluesky-webclient is NOT Python software, don't install it this way
    #    https://github.com/bluesky/bluesky-webclient