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