From 3f45a0fa9875fdf7355a8f242f9bf7449bd8d93b Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade Date: Tue, 26 Jul 2022 20:02:48 +0300 Subject: [PATCH] MAINT: Add support for Python 3.10 (#174) --- .github/workflows/integration.yml | 30 +++++++++++++++--------------- setup.py | 1 + 2 files changed, 16 insertions(+), 15 deletions(-) diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index f08ba93..9e7b6da 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -9,11 +9,11 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - name: Set up Python 3.7 - uses: actions/setup-python@v2 + - uses: actions/checkout@v3 + - name: Set up Python + uses: actions/setup-python@v4 with: - python-version: 3.7 + python-version: "3.x" - name: Install dependencies run: | python -m pip install --upgrade pip @@ -33,9 +33,9 @@ jobs: node-version: [12.x] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} - run: npm ci @@ -48,12 +48,12 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [3.7, 3.8, 3.9] + python-version: ["3.7", "3.8", "3.9", "3.10"] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} - name: Install dependencies @@ -69,24 +69,24 @@ jobs: publish: - name: Publish to PyPi + name: Publish to PyPI needs: [pre-commit, docs] if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') runs-on: ubuntu-latest steps: - name: Checkout source - uses: actions/checkout@v2 - - name: Set up Python 3.8 - uses: actions/setup-python@v1 + uses: actions/checkout@v3 + - name: Set up Python + uses: actions/setup-python@v4 with: - python-version: "3.8" + python-version: "3.x" - name: Build package run: | pip install build git submodule update --init python -m build - name: Publish - uses: pypa/gh-action-pypi-publish@v1.4.2 + uses: pypa/gh-action-pypi-publish@v1.5.1 with: user: __token__ password: ${{ secrets.PYPI_KEY }} diff --git a/setup.py b/setup.py index 5e9ee89..ae870cc 100644 --- a/setup.py +++ b/setup.py @@ -54,6 +54,7 @@ "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3 :: Only", ], python_requires=">=3.7",