Skip to content

Commit

Permalink
add python 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
alemuntoni committed Dec 12, 2023
1 parent b37cf30 commit d2057c0
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 10 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/BuildAndTest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
fail-fast: false
matrix:
pyversion: ['3.8', '3.9', '3.10', '3.11']
pyversion: ['3.8', '3.9', '3.10', '3.11', '3.12']
os: ['ubuntu-20.04', 'macos-latest', 'windows-latest']
steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -67,7 +67,7 @@ jobs:
strategy:
fail-fast: false
matrix:
pyversion: ['3.8', '3.9', '3.10', '3.11']
pyversion: ['3.8', '3.9', '3.10', '3.11', '3.12']
os: ['ubuntu-20.04', 'macos-latest', 'windows-latest']
steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -100,7 +100,7 @@ jobs:
strategy:
fail-fast: false
matrix:
pyversion: ['3.8', '3.9', '3.10', '3.11']
pyversion: ['3.8', '3.9', '3.10', '3.11', '3.12']
os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
steps:
- name: Download PyMeshLab_${{ runner.os }}_python${{ matrix.pyversion }}
Expand Down Expand Up @@ -135,7 +135,7 @@ jobs:
strategy:
fail-fast: false
matrix:
pyversion: ['3.8', '3.9', '3.10', '3.11']
pyversion: ['3.8', '3.9', '3.10', '3.11', '3.12']
os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
steps:
- name: Download pymeshlab_whl_${{ runner.os }}_python${{ matrix.pyversion }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/BuildDocumentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-20.04
strategy:
matrix:
pyversion: [3.9]
pyversion: [3.11]
steps:
- uses: actions/checkout@v3
with:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/CreateAndTestRelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
needs: update_version
strategy:
matrix:
pyversion: ['3.8', '3.9', '3.10', '3.11']
pyversion: ['3.8', '3.9', '3.10', '3.11', '3.12']
os: ['ubuntu-20.04', 'macos-latest', 'windows-latest']
steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -86,7 +86,7 @@ jobs:
needs: build_pymeshlab
strategy:
matrix:
pyversion: ['3.8', '3.9', '3.10', '3.11']
pyversion: ['3.8', '3.9', '3.10', '3.11', '3.12']
os: ['ubuntu-20.04', 'macos-latest', 'windows-latest']
steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -118,7 +118,7 @@ jobs:
needs: build_pymeshlab
strategy:
matrix:
pyversion: ['3.8', '3.9', '3.10', '3.11']
pyversion: ['3.8', '3.9', '3.10', '3.11', '3.12']
os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
steps:
- name: Download PyMeshLab_${{ runner.os }}_python${{ matrix.pyversion }}
Expand Down Expand Up @@ -152,7 +152,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
pyversion: ['3.8', '3.9', '3.10', '3.11']
pyversion: ['3.8', '3.9', '3.10', '3.11', '3.12']
os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
steps:
- name: Download pymeshlab_whl_${{ runner.os }}_python${{ matrix.pyversion }}
Expand Down
5 changes: 4 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

# read the contents of README file
from os import path
import sys
this_directory = path.abspath(path.dirname(__file__))
with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
Expand All @@ -21,7 +22,9 @@
# if on windows, add msvc-runtime as dependency
osused = platform.system()
if osused == 'Windows':
install_requires.append('msvc-runtime')
# msvc-runtime is still missing for python 3.12
if sys.version_info[1] < 12:
install_requires.append('msvc-runtime')

try:
from wheel.bdist_wheel import bdist_wheel as _bdist_wheel
Expand Down

0 comments on commit d2057c0

Please sign in to comment.