From ec66c0adfd9a53cb0d04e87af20503ab0090d313 Mon Sep 17 00:00:00 2001 From: Wolfgang Fahl Date: Sun, 24 Dec 2023 13:00:54 +0100 Subject: [PATCH] prepares release --- .github/workflows/upload-to-pypi.yml | 6 +++--- ceurws/wikidatasync.py | 3 +++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/upload-to-pypi.yml b/.github/workflows/upload-to-pypi.yml index 38a9d60..40a91ac 100644 --- a/.github/workflows/upload-to-pypi.yml +++ b/.github/workflows/upload-to-pypi.yml @@ -7,6 +7,9 @@ on: jobs: deploy: runs-on: ubuntu-latest + permissions: + # IMPORTANT: this permission is mandatory for trusted publishing + id-token: write steps: - uses: actions/checkout@v3 - name: Set up Python @@ -22,6 +25,3 @@ jobs: hatch build - name: Publish distribution to PyPI uses: pypa/gh-action-pypi-publish@release/v1 - with: - user: ${{ secrets.PYPI_USERNAME }} - password: ${{ secrets.PYPI_PASSWORD }} diff --git a/ceurws/wikidatasync.py b/ceurws/wikidatasync.py index 7332ab3..ccd6458 100644 --- a/ceurws/wikidatasync.py +++ b/ceurws/wikidatasync.py @@ -822,6 +822,9 @@ class DblpEndpoint: DBLP_EVENT_PREFIX = "https://dblp.org/db/" def __init__(self, endpoint): + """ + constructor + """ self.sparql = SPARQL(endpoint) path = os.path.dirname(__file__) qYamlFile = f"{path}/resources/queries/dblp.yaml"