Skip to content

Commit 6073ce8

Browse files
authored
Merge pull request #7 from OpenNFT/update-python-and-dependencies
Update minimal python version to 3.11 and update dependencies
2 parents 1f1de20 + d6d78e7 commit 6073ce8

File tree

5 files changed

+166
-207
lines changed

5 files changed

+166
-207
lines changed

.github/workflows/build-publish.yaml

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
name: Build and Publish
22

3-
on:
4-
push:
5-
branches:
6-
- "!*"
7-
tags:
8-
- "v*"
3+
on: workflow_dispatch
94

105
permissions:
116
actions: write
@@ -17,17 +12,17 @@ jobs:
1712
steps:
1813
- uses: actions/checkout@v4
1914
- name: Set up Python
20-
uses: actions/setup-python@v4
15+
uses: actions/setup-python@v5
2116
with:
22-
python-version: "3.9"
17+
python-version: "3.11"
2318

2419
- name: Install dependencies
2520
run: python -m pip install -U pip setuptools
2621

2722
- name: Build manylinux Python wheels
2823
uses: RalfG/[email protected]_x86_64
2924
with:
30-
python-versions: 'cp39-cp39 cp310-cp310 cp311-cp311 cp312-cp312'
25+
python-versions: 'cp311-cp311 cp312-cp312'
3126
build-requirements: 'pybind11'
3227

3328
- name: Upload wheels
@@ -45,12 +40,12 @@ jobs:
4540
matrix:
4641
platform:
4742
- macos-latest
48-
python-version: ["3.9", "3.10", "3.11", "3.12" ]
43+
python-version: [ "3.11", "3.12" ]
4944

5045
steps:
5146
- uses: actions/checkout@v4
5247
- name: Set up Python ${{ matrix.python-version }}
53-
uses: actions/setup-python@v4
48+
uses: actions/setup-python@v5
5449
with:
5550
python-version: ${{ matrix.python-version }}
5651

@@ -75,12 +70,12 @@ jobs:
7570
matrix:
7671
platform:
7772
- windows-latest
78-
python-version: ["3.9", "3.10", "3.11", "3.12" ]
73+
python-version: [ "3.11", "3.12" ]
7974

8075
steps:
8176
- uses: actions/checkout@v4
8277
- name: Set up Python ${{ matrix.python-version }}
83-
uses: actions/setup-python@v4
78+
uses: actions/setup-python@v5
8479
with:
8580
python-version: ${{ matrix.python-version }}
8681

@@ -111,9 +106,9 @@ jobs:
111106
steps:
112107
- uses: actions/checkout@v4
113108
- name: Set up Python
114-
uses: actions/setup-python@v4
109+
uses: actions/setup-python@v5
115110
with:
116-
python-version: "3.9"
111+
python-version: "3.11"
117112

118113
- name: Install dependencies
119114
run: |

buildext.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
1010
poetry install
1111
12-
Or directly via distutils 'build' command:
12+
Or directly via setuptools 'build' command:
1313
1414
python buildext.py build
1515
python buildext.py build --debug # for debug symbols
@@ -22,8 +22,7 @@
2222

2323
from pybind11.setup_helpers import Pybind11Extension, build_ext
2424

25-
from setuptools import setup
26-
from distutils.core import Distribution
25+
from setuptools import Distribution, setup
2726

2827

2928
MODULE_NAME = '_rtspm'

0 commit comments

Comments
 (0)