Skip to content
Snippets Groups Projects
Verified Commit 2f34d766 authored by Daniel Hornung's avatar Daniel Hornung
Browse files

MAINT: Pipeline cleanup.

parent dce79e16
No related branches found
No related tags found
2 merge requests!128MNT: Added a warning when column metadata is not configured, and a better...,!122Explicit dependencies for testing, documentation, ...
Pipeline #58148 failed
...@@ -139,9 +139,8 @@ unittest_py38: ...@@ -139,9 +139,8 @@ unittest_py38:
stage: unittest stage: unittest
image: python:3.8 image: python:3.8
script: &python_test_script script: &python_test_script
- pip install pynose pandas
- pip install git+https://gitlab.indiscale.com/caosdb/src/caosdb-pylib.git@dev - pip install git+https://gitlab.indiscale.com/caosdb/src/caosdb-pylib.git@dev
- pip install .[test,h5-crawler,gitignore-parser] - pip install .[all]
- pytest --cov=caosadvancedtools unittests - pytest --cov=caosadvancedtools unittests
unittest_py310: unittest_py310:
......
...@@ -9,7 +9,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ...@@ -9,7 +9,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added ### ### Added ###
* Official support for Python 3.13 * Official support for Python 3.13
* New setup extras `test` and `doc` which install the dependencies for testing and documentation.
### Changed ### ### Changed ###
...@@ -17,6 +16,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ...@@ -17,6 +16,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
following exposed names / features: following exposed names / features:
- `models.data_model.LINKAHEAD_INTERNAL_PROPERTIES` - `models.data_model.LINKAHEAD_INTERNAL_PROPERTIES`
- `export_related.export` exports to `linkahead_data.xml` now. - `export_related.export` exports to `linkahead_data.xml` now.
- Renamed (and added) installation "extra" options:
- `h5` instead of `h5-crawler`
- `doc`, `test` and `all` are new, they install the dependencies for testing, documentation and
everything.
### Deprecated ### ### Deprecated ###
......
...@@ -163,7 +163,7 @@ def setup_package(): ...@@ -163,7 +163,7 @@ def setup_package():
"pandas>=1.2.0", "pandas>=1.2.0",
"xlrd>=2.0", "xlrd>=2.0",
], ],
extras_require={"h5-crawler": ["h5py>=3.3.0", ], extras_require={"h5": ["h5py>=3.3.0", ],
"gitignore-parser": ["gitignore-parser >=0.1.0", ], "gitignore-parser": ["gitignore-parser >=0.1.0", ],
"doc": [ "doc": [
"sphinx", "sphinx",
...@@ -171,13 +171,16 @@ def setup_package(): ...@@ -171,13 +171,16 @@ def setup_package():
"sphinx-rtd-theme", "sphinx-rtd-theme",
"recommonmark >= 0.6.0", "recommonmark >= 0.6.0",
], ],
"test": [ "test": [ # include: h5, gitignore-parser
"gitignore-parser",
"pytest", "pytest",
"pytest-pythonpath", "pytest-pythonpath",
"pytest-cov", "pytest-cov",
"coverage>=4.4.2", "coverage>=4.4.2",
"caosadvancedtools[h5, gitignore-parser]",
], ],
"all": [ # include: doc, test
"caosadvancedtools[doc, test]",
]
}, },
setup_requires=["pytest-runner>=2.0,<3dev"], setup_requires=["pytest-runner>=2.0,<3dev"],
packages=find_packages('src'), packages=find_packages('src'),
......
[tox] [tox]
envlist=py38, py39, py310, py311, py312, py313 envlist = py38, py39, py310, py311, py312, py313
skip_missing_interpreters = true skip_missing_interpreters = true
[testenv] [testenv]
deps=nose deps =
pandas
git+https://gitlab.indiscale.com/caosdb/src/caosdb-pylib.git@dev git+https://gitlab.indiscale.com/caosdb/src/caosdb-pylib.git@dev
pytest extras = test
pytest-cov commands = py.test --cov=caosadvancedtools --cov-report=html:.tox/cov_html -vv {posargs}
gitignore-parser
openpyxl >= 3.0.7
xlrd == 1.2
h5py
commands=py.test --cov=caosadvancedtools --cov-report=html:.tox/cov_html -vv {posargs}
[flake8] [flake8]
max-line-length=100 max-line-length=100
......
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