From 3bdccb26d8e23df4a3dc73a41932f95f9c2c5fa9 Mon Sep 17 00:00:00 2001 From: agrouaze Date: Fri, 30 Jun 2023 16:07:13 +0200 Subject: [PATCH] tune requirements for pypi , and install via pip --- ci/requirements/docs.yaml | 20 ++++++++++++++++++ ci/requirements/environment.yaml | 35 ++++++++++++++++++++++++++++++++ setup.py | 9 +++++++- 3 files changed, 63 insertions(+), 1 deletion(-) create mode 100644 ci/requirements/docs.yaml create mode 100644 ci/requirements/environment.yaml diff --git a/ci/requirements/docs.yaml b/ci/requirements/docs.yaml new file mode 100644 index 0000000..7604038 --- /dev/null +++ b/ci/requirements/docs.yaml @@ -0,0 +1,20 @@ +name: grdwindinversion-docs +channels: + - conda-forge +dependencies: + - python=3.10 + - sphinx>=4 + - sphinx-book-theme + - ipython + - myst-parser + - jinja2<=3.03 + - pandoc + - numpydoc + - sphinx-rtd-theme + - nbsphinx + - jupyter-sphinx + - sphinxcontrib-programoutput + - aiohttp + - holoviews + - pip: + - -e ../.. diff --git a/ci/requirements/environment.yaml b/ci/requirements/environment.yaml new file mode 100644 index 0000000..7bc3d02 --- /dev/null +++ b/ci/requirements/environment.yaml @@ -0,0 +1,35 @@ +name: grdwindinversion-tests +channels: + - conda-forge +dependencies: + - python=3.10 + # development + - ipython + - pre-commit + - jupyterlab + - jupyterlab_code_formatter + - isort + - black + - dask-labextension + # testing + - pytest + - pytest-reportlog + - hypothesis + - coverage + # I/O + - rioxarray + - h5netcdf + - zarr + - scipy + # data + - xarray + - xarray-datatree + - dask + - numpy + - pandas + - shapely + # processing + - more-itertools + - tqdm + - lxml + - importlib_resources diff --git a/setup.py b/setup.py index 61e5b0a..7320e94 100644 --- a/setup.py +++ b/setup.py @@ -10,7 +10,14 @@ with open('HISTORY.rst') as history_file: history = history_file.read() -requirements = ['xsarsea'] +requirements = [ + 'xsarsea', + 'xsar', + 'pyyaml', + 'numpy', + 'xarray', + 'scipy' + ] test_requirements = [ ]