Skip to content
Snippets Groups Projects
Commit 86f05616 authored by Henrik tom Wörden's avatar Henrik tom Wörden
Browse files

Merge branch 'f-optional-h5' into 'dev'

REL: Make h5py optional

See merge request !11
parents 27d4959c 2ee88fad
No related branches found
No related tags found
2 merge requests!22Release 0.3,!11REL: Make h5py optional
Pipeline #10769 passed
......@@ -29,6 +29,6 @@ RUN pip3 install recommonmark sphinx-rtd-theme
COPY . /git
RUN rm -r /git/.git \
&& mv /git/.docker/pycaosdb.ini /git/integrationtests
RUN cd /git && pip3 install .
RUN cd /git && pip3 install .[h5-crawler]
WORKDIR /git/integrationtests
CMD /wait-for-it.sh caosdb-server:10443 -t 500 -- ./test.sh
......@@ -28,6 +28,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Crawler documentation
- Proof-of-concept integration with Bloxberg.
- Introduce a cfood that can create a Record structure based on the contents of a hdf5 file
h5py is now an optional dependency
### Changed ###
......
......@@ -12,6 +12,11 @@ Dependencies will be installed automatically if you use the below described proc
- `caosdb>=0.4.0`
- `openpyxl>=3.0.0`
- `xlrd>=1.2.0`
- `pandas>=1.2.0`
- `numpy>=1.17.3`
If you want to use the optional h5-crawler the following dependencies will be installed additionally:
- `h5py>=3.3.0`
For testing:
- `tox`
......@@ -21,6 +26,9 @@ For testing:
- `pip install . --user`
- `pip install tox --user`
Optional h5-crawler:
- `pip install .[h5-crawler] --user`
## Run Unit Tests
`tox`
......
......@@ -159,8 +159,9 @@ def setup_package():
"pandas>=1.2.0",
"numpy>=1.17.3",
"xlrd>=2.0",
"h5py",
],
extras_require={"h5-crawler": ["h5py>=3.3.0", ],
},
packages=find_packages('src'),
package_dir={'': 'src'},
setup_requires=["pytest-runner>=2.0,<3dev"],
......
......@@ -9,4 +9,5 @@ deps=nose
pytest-cov
openpyxl
xlrd == 1.2
h5py
commands=py.test --cov=caosadvancedtools -vv {posargs}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment