Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Python 3.10
- name: Set up Python 3.11
uses: actions/setup-python@v2
with:
python-version: "3.10"
python-version: "3.11"

- name: Cache pip dependencies
uses: actions/cache@v4
Expand Down Expand Up @@ -58,10 +58,10 @@ jobs:
uses: actions/checkout@v4


- name: Set up Python 3.10
- name: Set up Python 3.11
uses: actions/setup-python@v2
with:
python-version: "3.10"
python-version: "3.11"

- name: Install dependencies
run: |
Expand All @@ -74,4 +74,4 @@ jobs:
source env/bin/activate
echo "$GL_URL"
echo "$GH_URL"
python manage.py test tests
python manage.py test tests
2 changes: 1 addition & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ test_job:
# - echo "$CI_PERSONAL_TOKEN_KEY_GL"
- python manage.py test tests

image: python:3.10
image: python:3.11
4 changes: 1 addition & 3 deletions meta_creator/hermes_process.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
from .token_handling_in_toml import update_token_to_toml, remove_token_from_toml
from .utils import merge_people_metadata

# hermes_utils.py

def run_hermes_commands(url, token=None):
errors = []
Expand All @@ -21,7 +20,7 @@ def run_hermes_commands(url, token=None):

# Step 2: Run hermes harvest with the specified URL
print("Running hermes harvest with URL...")
harvest_process = subprocess.run(['hermes', 'harvest', '--path', url], capture_output=True, text=True, cwd=base_directory)
harvest_process = subprocess.run(['hermes', 'harvest', '--url', url, '--token', token], capture_output=True, text=True, cwd=base_directory)

hermes_dir = os.path.join(base_directory, ".hermes", "harvest")
# Print harvested files
Expand Down Expand Up @@ -181,4 +180,3 @@ def run_hermes_commands(url, token=None):
'errors': errors,
'metadata': hermes_metadata_dict if hermes_metadata_dict else {}
}

2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ GitPython>=3.1.41

# Git-based packages pinned to specific commits/branches
git+https://github.com/softwarepub/hermes-plugin-github-gitlab
git+https://github.com/Aidajafarbigloo/hermes@14fc040afd4b7f7268b937477dce56bd7695fbf3#egg=hermes
git+https://github.com/Aidajafarbigloo/hermes.git@feature/harvesting-metadata-from-a-provided-repository-URL-via-cloning#egg=hermes