Skip to content

Commit

Permalink
Add Python 3.12 support and remove EOL 3.7
Browse files Browse the repository at this point in the history
Signed-off-by: Anton Melser <anton.melser@outlook.com>
  • Loading branch information
AntonOfTheWoods committed Oct 15, 2023
1 parent 43501fc commit 973bb19
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion release-pypi-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion release-pypi-macos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion release-pypi-windows.cmd
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 973bb19

Please sign in to comment.