Skip to content

Commit 8e82b4e

Browse files
committed
Merge branch '1-define-submodules-pointing-to-openbisschema' into 'main'
Define submodules pointing to OpenbisSchema See merge request bam-data-store/bam-data-store!1
2 parents 314af0e + db6be55 commit 8e82b4e

File tree

8 files changed

+326
-66
lines changed

8 files changed

+326
-66
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "bam_data_store/dependencies/openbisschema"]
2+
path = bam_data_store/dependencies/openbisschema
3+
url = https://git.bam.de/bam-data-store/development/openbisschema.git

README.md

Lines changed: 100 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -1,93 +1,130 @@
11
# BAMDataStore
22

3+
This is the main repository of the BAM Data Store project. This is both a Python package and a web connecting the different resources for the Data Store.
34

45

6+
<!--
57
## Getting started
68
7-
To make it easy for you to get started with GitLab, here's a list of recommended next steps.
9+
Add here installation instructions once the package is deployed -->
810

9-
Already a pro? Just edit this README.md and make it your own. Want to make it easy? [Use the template at the bottom](#editing-this-readme)!
11+
## Development
1012

11-
## Add your files
12-
13-
- [ ] [Create](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#create-a-file) or [upload](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#upload-a-file) files
14-
- [ ] [Add files using the command line](https://docs.gitlab.com/ee/gitlab-basics/add-file.html#add-a-file-using-the-command-line) or push an existing Git repository with the following command:
15-
16-
```
17-
cd existing_repo
18-
git remote add origin https://git.bam.de/bam-data-store/bamdatastore.git
19-
git branch -M main
20-
git push -uf origin main
13+
If you want to develop locally this package, clone the project and enter in the workspace folder:
14+
```sh
15+
git clone https://git.bam.de/bam-data-store/bam-data-store.git
16+
cd bam-data-store
2117
```
2218

23-
## Integrate with your tools
24-
25-
- [ ] [Set up project integrations](https://git.bam.de/bam-data-store/bamdatastore/-/settings/integrations)
26-
27-
## Collaborate with your team
28-
29-
- [ ] [Invite team members and collaborators](https://docs.gitlab.com/ee/user/project/members/)
30-
- [ ] [Create a new merge request](https://docs.gitlab.com/ee/user/project/merge_requests/creating_merge_requests.html)
31-
- [ ] [Automatically close issues from merge requests](https://docs.gitlab.com/ee/user/project/issues/managing_issues.html#closing-issues-automatically)
32-
- [ ] [Enable merge request approvals](https://docs.gitlab.com/ee/user/project/merge_requests/approvals/)
33-
- [ ] [Set auto-merge](https://docs.gitlab.com/ee/user/project/merge_requests/merge_when_pipeline_succeeds.html)
34-
35-
## Test and Deploy
36-
37-
Use the built-in continuous integration in GitLab.
19+
Create a virtual environment (you can use Python>3.9) in your workspace:
20+
```sh
21+
python3 -m venv .venv
22+
source .venv/bin/activate
23+
```
3824

39-
- [ ] [Get started with GitLab CI/CD](https://docs.gitlab.com/ee/ci/quick_start/index.html)
40-
- [ ] [Analyze your code for known vulnerabilities with Static Application Security Testing (SAST)](https://docs.gitlab.com/ee/user/application_security/sast/)
41-
- [ ] [Deploy to Kubernetes, Amazon EC2, or Amazon ECS using Auto Deploy](https://docs.gitlab.com/ee/topics/autodevops/requirements.html)
42-
- [ ] [Use pull-based deployments for improved Kubernetes management](https://docs.gitlab.com/ee/user/clusters/agent/)
43-
- [ ] [Set up protected environments](https://docs.gitlab.com/ee/ci/environments/protected_environments.html)
25+
Run the following script:
26+
```sh
27+
./scripts/install_python_dependencies
28+
```
4429

45-
***
4630

47-
# Editing this README
31+
### Run the tests
4832

49-
When you're ready to make this README your own, just edit this file and use the handy template below (or feel free to structure it however you want - this is just a starting point!). Thanks to [makeareadme.com](https://www.makeareadme.com/) for this template.
33+
You can locally run the tests by doing:
34+
```sh
35+
python -m pytest -sv tests
36+
```
5037

51-
## Suggestions for a good README
38+
where the `-s` and `-v` options toggle the output verbosity.
5239

53-
Every project is different, so consider which of these sections apply to yours. The sections used in the template are suggestions for most open source projects. Also keep in mind that while a README can be too long and detailed, too long is better than too short. If you think your README is too long, consider utilizing another form of documentation rather than cutting out information.
40+
You can also generate a local coverage report:
41+
```sh
42+
python -m pytest --cov=src tests
43+
```
5444

55-
## Name
56-
Choose a self-explaining name for your project.
45+
### Run auto-formatting and linting
5746

58-
## Description
59-
Let people know what your project can do specifically. Provide context and add a link to any reference visitors might be unfamiliar with. A list of Features or a Background subsection can also be added here. If there are alternatives to your project, this is a good place to list differentiating factors.
47+
We use [Ruff](https://docs.astral.sh/ruff/) for formatting and linting the code following the rules specified in the `pyproject.toml`. You can run locally:
48+
```sh
49+
ruff check .
50+
```
6051

61-
## Badges
62-
On some READMEs, you may see small images that convey metadata, such as whether or not all the tests are passing for the project. You can use Shields to add some to your README. Many services also have instructions for adding a badge.
52+
This will produce an output with the specific issues found. In order to auto-fix them, run:
53+
```sh
54+
ruff format . --check
55+
```
6356

64-
## Visuals
65-
Depending on what you are making, it can be a good idea to include screenshots or even a video (you'll frequently see GIFs rather than actual videos). Tools like ttygif can help, but check out Asciinema for a more sophisticated method.
57+
If some issues are not possible to fix automatically, you will need to visit the file and fix them by hand.
58+
59+
### Run the local website
60+
61+
**Under construction!**
62+
63+
<!-- ### Debugging
64+
65+
For interactive debugging of the tests, use `pytest` with the `--pdb` flag. We recommend using an IDE for debugging, e.g., _VSCode_. If that is the case, add the following snippet to your `.vscode/launch.json`:
66+
```json
67+
{
68+
"configurations": [
69+
{
70+
"name": "<descriptive tag>",
71+
"type": "debugpy",
72+
"request": "launch",
73+
"cwd": "${workspaceFolder}",
74+
"program": "${workspaceFolder}/.pyenv/bin/pytest",
75+
"justMyCode": true,
76+
"env": {
77+
"_PYTEST_RAISE": "1"
78+
},
79+
"args": [
80+
"-sv",
81+
"--pdb",
82+
"<path-to-plugin-tests>",
83+
]
84+
}
85+
]
86+
}
87+
```
6688
67-
## Installation
68-
Within a particular ecosystem, there may be a common way of installing things, such as using Yarn, NuGet, or Homebrew. However, consider the possibility that whoever is reading your README is a novice and would like more guidance. Listing specific steps helps remove ambiguity and gets people to using your project as quickly as possible. If it only runs in a specific context like a particular programming language version or operating system or has dependencies that have to be installed manually, also add a Requirements subsection.
89+
where `<path-to-plugin-tests>` must be changed to the local path to the test module to be debugged.
6990
70-
## Usage
71-
Use examples liberally, and show the expected output if you can. It's helpful to have inline the smallest example of usage that you can demonstrate, while providing links to more sophisticated examples if they are too long to reasonably include in the README.
91+
The settings configuration file `.vscode/settings.json` automatically applies the linting and formatting upon saving the modified file. -->
7292

73-
## Support
74-
Tell people where they can go to for help. It can be any combination of an issue tracker, a chat room, an email address, etc.
93+
### Documentation on Github pages
7594

76-
## Roadmap
77-
If you have ideas for releases in the future, it is a good idea to list them in the README.
95+
To view the documentation locally, make sure to have installed the extra packages (this is part of the `scripts/install_python_dependencies.sh`, so if you ran this script before, you don't need to do it again now):
96+
```sh
97+
uv pip install -e '[docu]'
98+
```
7899

79-
## Contributing
80-
State if you are open to contributions and what your requirements are for accepting them.
100+
The first time, build the server:
101+
```sh
102+
mkdocs build
103+
```
81104

82-
For people who want to make changes to your project, it's helpful to have some documentation on how to get started. Perhaps there is a script that they should run or some environment variables that they need to set. Make these steps explicit. These instructions could also be useful to your future self.
105+
Run the documentation server:
106+
```sh
107+
mkdocs serve
108+
```
83109

84-
You can also document commands to lint the code or run tests. These steps help to ensure high code quality and reduce the likelihood that the changes inadvertently break something. Having instructions for running tests is especially helpful if it requires external setup, such as starting a Selenium server for testing in a browser.
110+
The output looks like:
111+
```sh
112+
INFO - Building documentation...
113+
INFO - Cleaning site directory
114+
INFO - [14:07:47] Watching paths for changes: 'docs', 'mkdocs.yml'
115+
INFO - [14:07:47] Serving on http://127.0.0.1:8000/
116+
```
85117

86-
## Authors and acknowledgment
87-
Show your appreciation to those who have contributed to the project.
118+
Simply click on `http://127.0.0.1:8000/`. The changes in the `md` files of the documentation are inmediately reflected when the files are saved (the local web will automatically refresh).
88119

89-
## License
90-
For open source projects, say how it is licensed.
120+
## Main contributors
91121

92-
## Project status
93-
If you have run out of energy or time for your project, put a note at the top of the README saying that development has slowed down or stopped completely. Someone may choose to fork your project or volunteer to step in as a maintainer or owner, allowing your project to keep going. You can also make an explicit request for maintainers.
122+
| Name | E-mail | Role |
123+
|------|------------|--------|
124+
| Dr. Angela Ariza | [[email protected]](mailto:[email protected]) | Outreach and Training |
125+
| Caroline Demidova | [[email protected]](mailto:[email protected]) | Outreach and Training |
126+
| Daniel Kosztyla | [[email protected]](mailto:[email protected]) | IT |
127+
| Carlos Madariaga | [[email protected]](mailto:[email protected]) | Software Developer |
128+
| Kristina Meindl | [[email protected]](mailto:[email protected]) | Project Manager |
129+
| Dr. Jose M. Pizarro | [[email protected]](mailto:[email protected]) | Data Management |
130+
| Jörg Rädler | [[email protected]](mailto:[email protected]) | IT |
File renamed without changes.
Submodule openbisschema added at f27dda9

pyproject.toml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ bam_data_store = "bam_data_store.cli:cli"
6161

6262
[tool.ruff]
6363
# Exclude a variety of commonly ignored directories.
64+
include = ["bam_data_store/*.py", "tests/*.py"]
6465
exclude = [
6566
".bzr",
6667
".direnv",
@@ -83,6 +84,7 @@ exclude = [
8384
"dist",
8485
"node_modules",
8586
"venv",
87+
"dependencies",
8688
]
8789
# Same as Black.
8890
line-length = 88
@@ -134,10 +136,12 @@ no_strict_optional = true
134136
disable_error_code = "import, annotation-unchecked"
135137

136138
[tool.setuptools]
137-
package-dir = { "" = "src" }
139+
package-dir = { "" = "bam_data_store" }
138140

139141
[tool.setuptools.packages.find]
140-
where = ["src"]
142+
where = ["bam_data_store"]
143+
exclude = ["dependencies*"]
144+
namespaces = false
141145

142146
[tool.setuptools_scm]
143-
write_to = "src/bam_data_store/_version.py"
147+
write_to = "bam_data_store/_version.py"

requirements.txt

Lines changed: 160 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,160 @@
1+
alabaster==1.0.0
2+
anyio==4.6.2.post1
3+
argon2-cffi==23.1.0
4+
argon2-cffi-bindings==21.2.0
5+
arrow==1.3.0
6+
astroid==3.3.5
7+
asttokens==2.4.1
8+
async-lru==2.0.4
9+
attrs==24.2.0
10+
babel==2.16.0
11+
bam-data-store==0.1.dev2+g314af0e.d20241125
12+
beautifulsoup4==4.12.3
13+
bleach==6.2.0
14+
certifi==2024.8.30
15+
cffi==1.17.1
16+
charset-normalizer==3.4.0
17+
click==8.1.7
18+
colorama==0.4.6
19+
comm==0.2.2
20+
coverage==7.6.8
21+
debugpy==1.8.9
22+
decorator==5.1.1
23+
defusedxml==0.7.1
24+
docutils==0.21.2
25+
et_xmlfile==2.0.0
26+
exceptiongroup==1.2.2
27+
executing==2.1.0
28+
fastjsonschema==2.20.0
29+
fqdn==1.5.1
30+
furo==2024.8.6
31+
ghp-import==2.1.0
32+
greenlet==3.1.1
33+
h11==0.14.0
34+
httpcore==1.0.7
35+
httpx==0.27.2
36+
idna==3.10
37+
imagesize==1.4.1
38+
importlib_metadata==8.5.0
39+
iniconfig==2.0.0
40+
ipykernel==6.29.5
41+
ipython==8.29.0
42+
ipywidgets==8.1.5
43+
isoduration==20.11.0
44+
jedi==0.19.2
45+
Jinja2==3.1.4
46+
json5==0.9.28
47+
jsonpointer==3.0.0
48+
jsonschema==4.23.0
49+
jsonschema-specifications==2024.10.1
50+
jupyter-cache==1.0.1
51+
jupyter_client==8.6.3
52+
jupyter_core==5.7.2
53+
jupyter-events==0.10.0
54+
jupyter-lsp==2.2.5
55+
jupyter_server==2.14.2
56+
jupyter_server_terminals==0.5.3
57+
jupyterlab==4.3.1
58+
jupyterlab_pygments==0.3.0
59+
jupyterlab_server==2.27.3
60+
jupyterlab_widgets==3.0.13
61+
Markdown==3.7
62+
markdown-it-py==3.0.0
63+
MarkupSafe==3.0.2
64+
matplotlib-inline==0.1.7
65+
mdit-py-plugins==0.4.2
66+
mdurl==0.1.2
67+
mergedeep==1.3.4
68+
mistune==3.0.2
69+
mkdocs==1.6.1
70+
mkdocs-click==0.8.1
71+
mkdocs-get-deps==0.2.0
72+
mkdocs-material==9.5.45
73+
mkdocs-material-extensions==1.3.1
74+
mypy==1.0.1
75+
mypy-extensions==1.0.0
76+
myst-nb==1.1.2
77+
myst-parser==4.0.0
78+
nbclient==0.10.0
79+
nbconvert==7.16.4
80+
nbformat==5.10.4
81+
nest-asyncio==1.6.0
82+
networkx==3.4.2
83+
notebook==7.0.7
84+
notebook_shim==0.2.4
85+
numpy==2.1.3
86+
openbis-schema==0.1.dev33+gf27dda9
87+
openpyxl==3.1.5
88+
overrides==7.7.0
89+
packaging==24.2
90+
paginate==0.5.7
91+
pandas==2.2.3
92+
pandocfilters==1.5.1
93+
parso==0.8.4
94+
pathspec==0.12.1
95+
pexpect==4.9.0
96+
pip==24.3.1
97+
platformdirs==4.3.6
98+
pluggy==1.5.0
99+
prometheus_client==0.21.0
100+
prompt_toolkit==3.0.48
101+
psutil==6.1.0
102+
ptyprocess==0.7.0
103+
pure_eval==0.2.3
104+
PyBIS==1.37.0
105+
pycparser==2.22
106+
Pygments==2.18.0
107+
pymdown-extensions==10.12
108+
pytest==8.3.3
109+
pytest-cov==6.0.0
110+
pytest-timeout==2.3.1
111+
python-dateutil==2.9.0.post0
112+
python-json-logger==2.0.7
113+
pytz==2024.2
114+
PyYAML==6.0.2
115+
pyyaml_env_tag==0.1
116+
pyzmq==26.2.0
117+
referencing==0.35.1
118+
regex==2024.11.6
119+
requests==2.32.3
120+
rfc3339-validator==0.1.4
121+
rfc3986-validator==0.1.1
122+
rpds-py==0.21.0
123+
ruff==0.8.0
124+
Send2Trash==1.8.3
125+
setuptools==65.5.0
126+
six==1.16.0
127+
sniffio==1.3.1
128+
snowballstemmer==2.2.0
129+
soupsieve==2.6
130+
Sphinx==8.1.3
131+
sphinx-autoapi==3.3.3
132+
sphinx-basic-ng==1.0.0b2
133+
sphinxcontrib-applehelp==2.0.0
134+
sphinxcontrib-devhelp==2.0.0
135+
sphinxcontrib-htmlhelp==2.1.0
136+
sphinxcontrib-jsmath==1.0.1
137+
sphinxcontrib-qthelp==2.0.0
138+
sphinxcontrib-serializinghtml==2.0.0
139+
SQLAlchemy==2.0.36
140+
stack-data==0.6.3
141+
tabulate==0.9.0
142+
terminado==0.18.1
143+
texttable==1.7.0
144+
tinycss2==1.4.0
145+
tomli==2.1.0
146+
tornado==6.4.2
147+
traitlets==5.14.3
148+
types-python-dateutil==2.9.0.20241003
149+
typing_extensions==4.12.2
150+
tzdata==2024.2
151+
uri-template==1.3.0
152+
urllib3==2.2.3
153+
uv==0.5.4
154+
watchdog==6.0.0
155+
wcwidth==0.2.13
156+
webcolors==24.11.1
157+
webencodings==0.5.1
158+
websocket-client==1.8.0
159+
widgetsnbextension==4.0.13
160+
zipp==3.21.0

0 commit comments

Comments
 (0)