Skip to content

Commit 8016793

Browse files
authored
Merge pull request #480 from softwarepub/refactor/data-model
(Draft) New Data Model
2 parents 6152838 + 42e30de commit 8016793

136 files changed

Lines changed: 107524 additions & 4458 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.flake8

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,10 @@ max-complexity = 15
77
max-line-length = 120
88
per-file-ignores =
99
src/hermes/commands/marketplace.py:E231
10+
exclude =
11+
migrations
12+
__pycache__
13+
manage.py
14+
settings.py
15+
venv
16+
.venv

.github/workflows/hermes-zenodo.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ jobs:
4141
- uses: actions/checkout@v4
4242
- uses: actions/setup-python@v5
4343
with:
44-
python-version: '3.10'
45-
- run: pip install hermes hermes-plugin-python
44+
python-version: '3.11'
45+
- run: pip install git+https://github.com/softwarepub/hermes.git
4646
- run: hermes harvest
4747
- run: hermes process
4848
- run: hermes curate
@@ -85,13 +85,13 @@ jobs:
8585
- uses: actions/checkout@v4
8686
- uses: actions/setup-python@v5
8787
with:
88-
python-version: '3.10'
89-
- run: pip install hermes
88+
python-version: '3.11'
89+
- run: pip install git+https://github.com/softwarepub/hermes.git
9090

9191
# ADAPT
9292
# If you want to publish artifacts (e.g., a zipped snapshot of your repository),
9393
# you can prepare this here.
94-
- run: git archive --format zip HEAD src > hermes.zip
94+
- run: git archive --format zip HEAD > hermes.zip
9595

9696
# Run the HERMES deposition and postprocessing steps.
9797
# ADAPT

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
runs-on: ubuntu-latest
1616
strategy:
1717
matrix:
18-
python-version: ["3.12"] # Ignore Python < 3.11, they are unsupported
18+
python-version: ["3.11"] # Ignore Python < 3.11, they are unsupported
1919

2020
steps:
2121
- uses: actions/checkout@v4

LICENSE.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ SPDX-FileContributor: Stephan Druskat
1111
## Licenses
1212

1313
The work contained in this repository is licensed under different licenses:
14-
- Source code is licensed under [`Apache-2.0`](LICENSES/Apache-2.0.txt).
15-
- Documentation (including images) is licensed under [`CC BY-SA 4.0`](LICENSES/CC-BY-SA-4.0.txt).
16-
- The HERMES visual ("logo") is licensed under [`CC BY-ND 4.0`](LICENSES/CC-BY-ND-4.0.txt).
17-
- Other files are licensed under [`CC0-1.0`](LICENSES/CC0-1.0.txt).
18-
14+
- Source code is licensed under [`Apache-2.0`](/../../LICENSES/Apache-2.0.txt). <!-- Paths start at docs/source/ -->
15+
- Documentation (including images) is licensed under [`CC BY-SA 4.0`](/../../LICENSES/CC-BY-SA-4.0.txt).
16+
- The HERMES visual ("logo") is licensed under [`CC BY-ND 4.0`](/../../LICENSES/CC-BY-ND-4.0.txt).
17+
- Other files are licensed under [`CC0-1.0`](/../../LICENSES/CC0-1.0.txt).
18+
1919
Please see the individual files for more accurate information.
2020
Please also let us know in a new issue if you find content that seems to be unlicensed.
2121

LICENSES/CC-BY-SA-3.0.txt

Lines changed: 359 additions & 0 deletions
Large diffs are not rendered by default.

LICENSES/W3C-20150513.txt

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
This work is being provided by the copyright holders under the following license.
2+
3+
License
4+
By obtaining and/or copying this work, you (the licensee) agree that you have read, understood, and will comply with the following terms and conditions.
5+
6+
Permission to copy, modify, and distribute this work, with or without modification, for any purpose and without fee or royalty is hereby granted, provided that you include the following on ALL copies of the work or portions thereof, including modifications:
7+
8+
• The full text of this NOTICE in a location viewable to users of the redistributed or derivative work.
9+
• Any pre-existing intellectual property disclaimers, notices, or terms and conditions. If none exist, the W3C Software and Document Short Notice should be included.
10+
• Notice of any changes or modifications, through a copyright statement on the new code or document such as "This software or document includes material copied from or derived from [title and URI of the W3C document]. Copyright (c) [YEAR] W3C® (MIT, ERCIM, Keio, Beihang)."
11+
12+
Disclaimers
13+
THIS WORK IS PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE OR DOCUMENT WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS.
14+
15+
COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE OR DOCUMENT.
16+
17+
The name and trademarks of copyright holders may NOT be used in advertising or publicity pertaining to the work without specific, written prior permission. Title to copyright in this work will at all times remain with copyright holders.

REUSE.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,9 @@ path = ["REUSE.toml"]
1717
precedence = "aggregate"
1818
SPDX-FileCopyrightText = "German Aerospace Center (DLR), Helmholtz-Zentrum Dresden-Rossendorf, Forschungszentrum Jülich"
1919
SPDX-License-Identifier = "CC0-1.0"
20+
21+
[[annotations]]
22+
path = ["src/**/*.py", "test/**/*.py"]
23+
precedence = "aggregate"
24+
SPDX-FileCopyrightText = "German Aerospace Center (DLR), Helmholtz-Zentrum Dresden-Rossendorf, Forschungszentrum Jülich"
25+
SPDX-License-Identifier = "Apache-2.0"

conftest.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# SPDX-FileCopyrightText: 2026 German Aerospace Center (DLR)
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
4+
5+
# SPDX-FileContributor: Michael Fritzsche
6+
7+
# add option to pass zenodo sandbox auth token to pytest to run ./test/hermes_test/commands/deposit/test_invenio_e2e.py
8+
def pytest_addoption(parser):
9+
parser.addoption("--sandbox_auth", action="store", default=None)

0 commit comments

Comments
 (0)