diff --git a/.github/workflows/publish-pypi.yml b/.github/workflows/publish-pypi.yml index 15a12ec..823105d 100644 --- a/.github/workflows/publish-pypi.yml +++ b/.github/workflows/publish-pypi.yml @@ -7,11 +7,15 @@ jobs: build-n-publish: name: Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI runs-on: ubuntu-latest + environment: release + permissions: + # IMPORTANT: this permission is mandatory for trusted publishing + id-token: write steps: - uses: actions/checkout@v3 with: - ref: master + ref: main - name: Set up Python 3.10 uses: actions/setup-python@v4 with: @@ -27,7 +31,4 @@ jobs: python setup.py sdist bdist_wheel - name: Publish distribution to PyPI - uses: pypa/gh-action-pypi-publish@master - with: - user: __token__ - password: ${{ secrets.pypi_api_key }} + uses: pypa/gh-action-pypi-publish@release/v1 diff --git a/.github/workflows/run_tox.yml b/.github/workflows/run_tox.yml index 26f1629..a768730 100644 --- a/.github/workflows/run_tox.yml +++ b/.github/workflows/run_tox.yml @@ -13,14 +13,13 @@ jobs: python-version: '3.10' - uses: pre-commit/action@v3.0.0 - test: needs: pre-commit runs-on: ubuntu-latest strategy: max-parallel: 4 matrix: - python-version: ['3.8', '3.9', '3.10', '3.11'] + python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] steps: - uses: actions/checkout@v3 diff --git a/,pyup.yml b/.pyup.yml similarity index 100% rename from ,pyup.yml rename to .pyup.yml diff --git a/docs/requirements.txt b/docs/requirements.txt index e48f8fc..ff8bf35 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -1,5 +1,5 @@ # Packages required to build the documentation sphinx == 7.2.6 -sphinx-autodoc-typehints == 1.25.0 -sphinx_rtd_theme == 1.3.0 -sphinx-exec-code == 0.10 +sphinx-autodoc-typehints == 1.25.2 +sphinx_rtd_theme == 2.0.0 +sphinx-exec-code == 0.12 diff --git a/requirements.txt b/requirements.txt index 363f036..a7113b0 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,8 +2,8 @@ -r requirements_setup.txt # testing dependencies -pytest >= 7.4, < 8 -pre-commit >= 3.5, < 4 +pytest == 7.4.4 +pre-commit == 3.6.0 # linter -ruff >= 0.1.5, < 0.2 +ruff == 0.1.11