Skip to content
Snippets Groups Projects
Commit cb6403ad authored by Florian Spreckelsen's avatar Florian Spreckelsen
Browse files

Merge branch 'f-fix-spss-script' into 'dev'

Fix spss script

See merge request !202
parents bd2b12a2 36e94783
No related branches found
No related tags found
2 merge requests!217TST: Make NamedTemporaryFiles Windows-compatible,!202Fix spss script
Pipeline #58330 passed
...@@ -16,6 +16,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ...@@ -16,6 +16,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
example be used by CustomConverters. example be used by CustomConverters.
- ZipFileConverter that opens zip files and exposes their contents as - ZipFileConverter that opens zip files and exposes their contents as
File and Directory structure elements. File and Directory structure elements.
- `linkahead-crawler` script as alias for `caosdb-crawler`.
### Changed ### ### Changed ###
...@@ -25,6 +26,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ...@@ -25,6 +26,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed ### ### Fixed ###
- `spss_to_datamodel` script works again.
### Security ### ### Security ###
### Documentation ### ### Documentation ###
...@@ -54,9 +57,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ...@@ -54,9 +57,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Units for properties. They can be specified by giving the property as a dict in the form - Units for properties. They can be specified by giving the property as a dict in the form
```yaml ```yaml
MyRecord: MyRecord:
my_prop: my_prop:
value: 5 value: 5
unit: m unit: m
``` ```
- Support for Python 3.13 - Support for Python 3.13
- ROCrateConverter, ELNFileConverter and ROCrateEntityConverter for crawling ROCrate and .eln files - ROCrateConverter, ELNFileConverter and ROCrateEntityConverter for crawling ROCrate and .eln files
......
...@@ -39,8 +39,9 @@ per-file-ignores = __init__.py:F401 ...@@ -39,8 +39,9 @@ per-file-ignores = __init__.py:F401
[options.entry_points] [options.entry_points]
console_scripts = console_scripts =
linkahead-crawler = caoscrawler.crawl:main
caosdb-crawler = caoscrawler.crawl:main caosdb-crawler = caoscrawler.crawl:main
spss_to_datamodel = caoscrawler.conv_impl.spss:spss_to_datamodel_main spss_to_datamodel = caoscrawler.converters.spss:spss_to_datamodel_main
csv_to_datamodel = caoscrawler.scripts.generators:csv_to_datamodel_main csv_to_datamodel = caoscrawler.scripts.generators:csv_to_datamodel_main
[options.extras_require] [options.extras_require]
......
#!/usr/bin/env python3
# This file is a part of the LinkAhead project.
#
# Copyright (C) 2024 IndiScale GmbH <www.indiscale.com>
# Copyright (C) 2024 Daniel Hornung <d.hornung@indiscale.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
"""Test if the scripts work as expected.
"""
from subprocess import run
SCRIPTS = [
"linkahead-crawler",
"caosdb-crawler",
"spss_to_datamodel",
"csv_to_datamodel",
]
def test_script_loading():
"""Run the scripts with "-h"."""
for script in SCRIPTS:
run([script, "-h"], check=True)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment