From 37abbd6fde769b6d961c81f0cc52afd68006695c Mon Sep 17 00:00:00 2001 From: MJedr Date: Wed, 13 Sep 2023 08:47:59 +0200 Subject: [PATCH] fix requirements --- .github/workflows/build-and-release.yml | 11 ++++++++--- setup.py | 2 ++ tests/test_tasks.py | 3 ++- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-and-release.yml b/.github/workflows/build-and-release.yml index 4dd5bd7..87016b2 100644 --- a/.github/workflows/build-and-release.yml +++ b/.github/workflows/build-and-release.yml @@ -41,13 +41,17 @@ jobs: matrix: include: - python: python2 - pip: pip + pip: pip2.7 steps: - name: Checkout uses: actions/checkout@v2 with: - python-version: ${{ matrix.python }} fetch-depth: 0 + + - name: Install pip2 + run: | + wget https://bootstrap.pypa.io/pip/2.7/get-pip.py + sudo python2.7 get-pip.py - name: Install python dependencies run: | @@ -58,7 +62,8 @@ jobs: - name: Show python dependencies run: | - pip freeze + ${{ matrix.python }} --version + ${{ matrix.pip }} freeze - name: Run tests run: | diff --git a/setup.py b/setup.py index 635810f..e0213e0 100644 --- a/setup.py +++ b/setup.py @@ -98,7 +98,9 @@ "SQLAlchemy-Continuum==1.3.9", "invenio_db==1.0.4", "invenio-records-rest==1.6.4", + "jsonref==0.2", "jsonresolver==0.2.1", + "itsdangerous<=2.0.1", "Flask-Breadcrumbs==0.4.0", "invenio-base==1.2.0", "invenio-i18n==1.1.1", diff --git a/tests/test_tasks.py b/tests/test_tasks.py index 0adb6be..174ede3 100644 --- a/tests/test_tasks.py +++ b/tests/test_tasks.py @@ -139,7 +139,8 @@ def test_tasks(app, db, halt_workflow, sample_records_uri): assert 'extra_data' in extra_data['source_data'] expected_extra_data = { 'crawler_job_id': job_id, - 'crawler_results_path': urlparse(sample_records_uri).path + 'crawler_results_path': urlparse(sample_records_uri).path, + 'source_file': 'desy_records.xml' } assert expected_extra_data == extra_data['source_data']['extra_data']