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"