Skip to content

Commit

Permalink
Merge pull request #115 from michamos/no-author-conflicts-arxiv-on-pu…
Browse files Browse the repository at this point in the history
…blisher

config: ignore arXiv author updates when published
  • Loading branch information
michamos authored Jan 22, 2024
2 parents f7e2ffe + 22666dd commit 6deeaf6
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 25 deletions.
15 changes: 0 additions & 15 deletions .github/actions/install-python-dependencies/action.yml

This file was deleted.

21 changes: 12 additions & 9 deletions .github/workflows/build-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,31 +11,34 @@ jobs:
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: [2.7, 3.6]
include:
- python: python3
pip: pip3
- python: python2
pip: pip

steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Cache Python
uses: actions/[email protected]
id: cache
with:
path: ${{ env.pythonLocation }}
key: ${{ runner.os }}-pip-${{ matrix.python-version }}-${{ github.sha }}
key: ${{ runner.os }}-pip-${{ matrix.python }}-${{ github.sha }}

- name: Install python dependencies
uses: ./.github/actions/install-python-dependencies
run: |
${{ matrix.pip }} install --user --upgrade pip
${{ matrix.pip }} --no-cache-dir install --user setuptools wheel "urllib3==1.25.11"
${{ matrix.pip }} --no-cache-dir install --user -r requirements.txt
- name: Show python dependencies
run: pip freeze
${{ matrix.python }} --version
${{ matrix.pip }} freeze

- name: Run tests
uses: ./.github/actions/run-tests
Expand Down
1 change: 0 additions & 1 deletion inspire_json_merger/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,6 @@ class ArxivOnPublisherOperations(MergerConfigurationOperations):
'abstracts': U.KEEP_UPDATE_AND_HEAD_ENTITIES_HEAD_FIRST,
'arxiv_eprints': U.KEEP_UPDATE_AND_HEAD_ENTITIES_HEAD_FIRST,
'arxiv_eprints.categories': U.KEEP_ONLY_UPDATE_ENTITIES,
'authors': U.KEEP_UPDATE_ENTITIES_CONFLICT_ON_HEAD_DELETE,
'authors.ids': U.KEEP_UPDATE_AND_HEAD_ENTITIES_HEAD_FIRST,
'authors.raw_affiliations': U.KEEP_ONLY_HEAD_ENTITIES,
'core': D.FALLBACK_KEEP_HEAD,
Expand Down

0 comments on commit 6deeaf6

Please sign in to comment.