diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index b7ad7b618..439906862 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -12,18 +12,18 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [3.7, 3.8, 3.9, '3.10', '3.11'] + python-version: [3.8, 3.9, '3.10', '3.11', '3.12'] steps: - uses: actions/checkout@v2 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v1 + uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} - name: Install dependencies run: | python -m pip install --upgrade pip - pip install flake8 pytest wheel + pip install flake8 pytest wheel setuptools if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - name: Lint with flake8 run: | diff --git a/.github/workflows/release-pypi.yml b/.github/workflows/release-pypi.yml index c9f6e91b3..a422454b9 100644 --- a/.github/workflows/release-pypi.yml +++ b/.github/workflows/release-pypi.yml @@ -19,7 +19,7 @@ jobs: docker run --rm -v "${PWD}:/opt/OpenCC" \ -e TWINE_USERNAME=__token__ \ -e TWINE_PASSWORD=${{ secrets.PYPI_TOKEN }} \ - ubuntu:18.04 /bin/bash /opt/OpenCC/release-pypi-linux.sh + ubuntu:22.04 /bin/bash /opt/OpenCC/release-pypi-linux.sh - name: Build package and upload (macOS) if: runner.os == 'macOS' diff --git a/release-pypi-linux.sh b/release-pypi-linux.sh index 537e0dc2b..8e5cb3c4f 100644 --- a/release-pypi-linux.sh +++ b/release-pypi-linux.sh @@ -25,7 +25,7 @@ bash ${MINICONDA_FILENAME} -b -f -p $HOME/miniconda3 export PATH=$HOME/miniconda3/bin:$PATH eval "$(conda shell.bash hook)" -for VERSION in 3.7 3.8 3.9 3.10 3.11; do +for VERSION in 3.8 3.9 3.10 3.11 3.12; do # Create and activate environment conda config --add channels conda-forge conda config --set channel_priority strict diff --git a/release-pypi-macos.sh b/release-pypi-macos.sh index e1ddcaddd..f2dffe9a3 100644 --- a/release-pypi-macos.sh +++ b/release-pypi-macos.sh @@ -12,7 +12,7 @@ bash ${MINICONDA_FILENAME} -b -f -p $HOME/miniconda3 export PATH=$HOME/miniconda3/bin:$PATH eval "$(conda shell.bash hook)" -for VERSION in 3.7 3.8 3.9 3.10 3.11; do +for VERSION in 3.8 3.9 3.10 3.11 3.12; do # Create and activate environment conda config --add channels conda-forge conda config --set channel_priority strict diff --git a/release-pypi-windows.cmd b/release-pypi-windows.cmd index afd0ec0de..0cb08729b 100644 --- a/release-pypi-windows.cmd +++ b/release-pypi-windows.cmd @@ -1,7 +1,7 @@ @echo off setlocal EnableDelayedExpansion -SET VERSIONS=3.7 3.8 3.9 3.10 3.11 +SET VERSIONS=3.8 3.9 3.10 3.11 3.12 SET SOURCEDIR=%cd% REM Build packages