Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
6794205
Dataverse Deposit Plugin & init Integration
nheeb Jun 10, 2025
e684d85
DataverseDeposit flake style changes
nheeb Jun 10, 2025
7ed8c03
DataverseDeposit: isort & customizable hermes branch for init
nheeb Jun 10, 2025
d1a5db3
Added Rodare as DepositOption (not tested)
nheeb Jun 17, 2025
98355ae
Validate auth token on init with dataverse
nheeb Jun 24, 2025
0a852bb
Implementation of requested changes (mainly renaming)
nheeb Jun 25, 2025
d4bd84b
Init choose access_right & dataverse check_if_all_valid
nheeb Jul 8, 2025
b180ff8
dataverse small fix
nheeb Jul 8, 2025
f049287
Adding trigger by tag to hermes init
nheeb Sep 16, 2025
e6592d6
Dataverse Deposit Plugin & init Integration
nheeb Jun 10, 2025
4478777
DataverseDeposit flake style changes
nheeb Jun 10, 2025
e2a242c
DataverseDeposit: isort & customizable hermes branch for init
nheeb Jun 10, 2025
5b5176d
Added Rodare as DepositOption (not tested)
nheeb Jun 17, 2025
43bd1b5
Validate auth token on init with dataverse
nheeb Jun 24, 2025
0f5814f
Implementation of requested changes (mainly renaming)
nheeb Jun 25, 2025
ae1e492
Init choose access_right & dataverse check_if_all_valid
nheeb Jul 8, 2025
42e4ae5
dataverse small fix
nheeb Jul 8, 2025
d0d3e88
extract first and last name function
nheeb Nov 28, 2025
26c6f2b
Using jinja to edit the custom ci-templates during init
nheeb Nov 28, 2025
03545ea
removed unused import line
nheeb Dec 2, 2025
4485b2c
Merge branch 'develop' into feature/452-using-jinja-for-ci-templates
nheeb Dec 2, 2025
35a0845
Merge branch 'feature/59-deposit-on-dataverse' into feature/457-incre…
nheeb Dec 2, 2025
fc2f4b3
Merge branch 'feature/59-deposit-on-dataverse' of https://github.com/…
nheeb Dec 2, 2025
9f92d52
Merge branch 'feature/59-deposit-on-dataverse' into feature/457-incre…
nheeb Dec 2, 2025
f519c27
poetry lock
nheeb Dec 2, 2025
5f6ee93
glory to flake8
nheeb Dec 2, 2025
941da22
glory to flake8!
nheeb Dec 2, 2025
5dd900a
Warning when running outdated init.
nheeb Dec 16, 2025
958af6f
Adapt for jinja & new init-templates folder
nheeb Jan 9, 2026
93ff718
removing dataverse stuff
nheeb Jan 9, 2026
55e08f6
merged with develop
nheeb Jan 9, 2026
90c58fe
merge with develop (0.9.1)
nheeb Jan 13, 2026
04a4cfb
Better hermes version info on init start
nheeb Jan 16, 2026
093e4c6
updating ci script for creating branch from tag
nheeb Jan 23, 2026
a1db42c
Fixing bug: no archive command without archive
nheeb Feb 3, 2026
7d3f7ae
Merge branch 'develop' into feature/457-good-init-no-dataverse
nheeb Feb 3, 2026
8d9b4f4
updated gitlab tag pattern condition
nheeb Feb 6, 2026
62eac83
Updating references to match the new ci-template paths
nheeb Feb 6, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions docs/source/tutorials/automated-publication-with-ci.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ This also works with many Jupyter Hubs, no need for a Linux computer!
```{code-block} bash
python -m pip install hermes
```
If already installed, make sure you have the latest version by running:
```{code-block} bash
python -m pip install hermes --upgrade
```
5. Once installed, navigate to the main directory of your project.
```{code-block} bash
cd myproject/
Expand Down
6 changes: 3 additions & 3 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 1 addition & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ dependencies = [
"pydantic-settings>=2.1.0, <3.0.0",
"requests-oauthlib>=2.0.0, <3.0.0",
"pynacl>=1.6.2, <2.0.0",
"jinja2 (>=3.1.6,<4.0.0)",
]
requires-python = ">=3.11, <4.0.0"

Expand All @@ -48,12 +49,10 @@ documentation = "https://hermes.software-metadata.pub"
repository = "https://github.com/softwarepub/hermes.git"
issues = "https://github.com/softwarepub/hermes/issues"


[project.scripts]
hermes = "hermes.commands.cli:main"
hermes-marketplace = "hermes.commands.marketplace:main"


[project.entry-points."hermes.harvest"]
cff = "hermes.commands.harvest.cff:CffHarvestPlugin"
codemeta = "hermes.commands.harvest.codemeta:CodeMetaHarvestPlugin"
Expand Down Expand Up @@ -106,22 +105,19 @@ reuse = "^1.1.2"
sphinxcontrib-datatemplates = "~=0.11"



[tool.taskipy.tasks]
docs-build = "poetry run sphinx-build -M html docs/source docs/build -W"
docs-clean = "poetry run sphinx-build -M clean docs/source docs/build"
docs-live = "poetry run sphinx-autobuild docs/source docs/build"
flake8 = "poetry run flake8 ./test/ ./src/ --count --select=E9,F63,F7,F82 --statistics"


[tool.pytest.ini_options]
norecursedirs = "docs/*"
testpaths = [
"test"
]
addopts = "--cov=hermes --cov-report term"


[build-system]
requires = [
"poetry-core>=2.1.3, <3.0.0"
Expand Down
15 changes: 0 additions & 15 deletions src/hermes/commands/deposit/invenio.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,21 +267,6 @@ def __init__(self, command: HermesDepositCommand, ctx: CodeMetaContext, client=N

if client is None:
auth_token = self.config.auth_token

# TODO reactivate this code again, once we use Zenodo OAuth again (once the refresh token works)
# If auth_token is a refresh-token, get the auth-token from that.
# if str(auth_token).startswith("REFRESH_TOKEN:"):
# _log.debug(f"Getting token from refresh_token {auth_token}")
# # TODO How do we know if this targets sandbox or not?
# # Now we assume it's sandbox
# connect_zenodo.setup(True)
# tokens = connect_zenodo.oauth_process() \
# .get_tokens_from_refresh_token(auth_token.split("REFRESH_TOKEN:")[1])
# _log.debug(f"Tokens: {str(tokens)}")
# auth_token = tokens.get("access_token", "")
# _log.debug(f"Auth Token: {auth_token}")
# # TODO Update the secret (github/lab token is needed)

if not auth_token:
raise DepositionUnauthorizedError("No valid auth token given for deposition platform")
self.client = self.invenio_client_class(self.config,
Expand Down
Loading