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

Merge branch 'f-fix-linting-and-openpyxl' into 'dev'

Fix linting

See merge request !105
parents 0af2ce1e 1bd6fb1d
No related branches found
No related tags found
2 merge requests!107Release v0.11.0,!105Fix linting
Pipeline #52167 failed
......@@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added ###
- XLSX handling: conversion from XLSX to Json
- `linkahead-loadfiles` now also is a standalone script in the installation
### Changed ###
......@@ -18,10 +19,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed ###
- Blacklisted buggy openpyxl version
### Security ###
### Documentation ###
- loadFiles has better `-h` documentation now
## [0.10.0] - 2024-04-24 ##
### Added ###
......
......@@ -166,10 +166,18 @@ def setup_package():
extras_require={"h5-crawler": ["h5py>=3.3.0", ],
"gitignore-parser": ["gitignore-parser >=0.1.0", ],
},
setup_requires=["pytest-runner>=2.0,<3dev"],
tests_require=["pytest",
"pytest-pythonpath",
"pytest-cov",
"coverage>=4.4.2",
],
packages=find_packages('src'),
package_dir={'': 'src'},
setup_requires=["pytest-runner>=2.0,<3dev"],
tests_require=["pytest", "pytest-pythonpath", "pytest-cov", "coverage>=4.4.2"],
entry_points={"console_scripts": [
"linkahead-loadfiles = caosadvancedtools.loadFiles:main",
]
},
)
try:
setup(**metadata)
......
......@@ -190,7 +190,26 @@ def main(argv=None):
sys.argv.extend(argv)
# Setup argument parser
parser = ArgumentParser()
parser = ArgumentParser(description="""
Make files that the LinkAhead server can see available als FILE entities.
In a typical scenario where LinkAhead runs in a Docker container and a host directory `mydir` is
mounted as an extroot with name `myext`, loadfiles could be called like this:
> loadFiles -p foo /opt/caosdb/mnt/extroot/myext/
This call would result in
1. On the LinkAhead server: There are FILE entities for all files in `mydir`.
2. In the `caosroot` directory inside the Docker image, there are symlinks like this:
foo/myext/somefile.txt -> /opt/caosdb/mnt/extroot/myext/somefile.txt
foo/myext/dir/other.bin -> /opt/caosdb/mnt/extroot/myext/dir/other.bin
The FILE entity for `somefile.txt` for example now has the path "foo/myext/somefile.txt" and its
content can be retrieved via LinkAhead's API.
""", formatter_class=argparse.RawDescriptionHelpFormatter)
parser.add_argument("-p", "--prefix", dest="prefix",
help="store files with this prefix into the server's"
" file system.")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment