Skip to content

Commit d79e708

Browse files
committed
Building wheels for Python 3.11
1 parent 73b9d41 commit d79e708

File tree

3 files changed

+12
-10
lines changed

3 files changed

+12
-10
lines changed

.github/workflows/deploy-wheels.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
runs-on: ${{ matrix.os }}
5151
strategy:
5252
matrix:
53-
python: ['3.6', '3.7', '3.8', '3.9', '3.10']
53+
python: ['3.6', '3.7', '3.8', '3.9', '3.10', '3.11']
5454
include:
5555
- os: [windows-latest]
5656
arch: ["x86"]
@@ -81,7 +81,7 @@ jobs:
8181
runs-on: ${{ matrix.os }}
8282
strategy:
8383
matrix:
84-
python: ['3.6', '3.7', '3.8', '3.9', '3.10']
84+
python: ['3.6', '3.7', '3.8', '3.9', '3.10', '3.11']
8585
include:
8686
- os: [windows-latest]
8787
arch: ["AMD64"]
@@ -112,7 +112,7 @@ jobs:
112112
runs-on: ${{ matrix.os }}
113113
strategy:
114114
matrix:
115-
python: ['3.6', '3.7', '3.8', '3.9', '3.10']
115+
python: ['3.6', '3.7', '3.8', '3.9', '3.10', '3.11']
116116
include:
117117
- os: [ubuntu-20.04] #ubuntu-latest doesn't supports cp36
118118
arch: ["x86_64"]
@@ -142,7 +142,7 @@ jobs:
142142
runs-on: ${{ matrix.os }}
143143
strategy:
144144
matrix:
145-
python: ['3.6', '3.7', '3.8', '3.9', '3.10']
145+
python: ['3.6', '3.7', '3.8', '3.9', '3.10', '3.11']
146146
include:
147147
- os: [macos-latest]
148148
arch: ["x86_64"]
@@ -172,7 +172,7 @@ jobs:
172172
runs-on: ${{ matrix.os }}
173173
strategy:
174174
matrix:
175-
python: ['3.8', '3.9', '3.10']
175+
python: ['3.8', '3.9', '3.10', '3.11']
176176
include:
177177
- os: [macos-latest]
178178
arch: ["arm64"]

delphifmx/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def findmodule():
1313
libdir = None
1414
libext = None
1515

16-
if not (pyver in ["3.6", "3.7", "3.8", "3.9", "3.10"]):
16+
if not (pyver in ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11"]):
1717
raise PyVerNotSupported(f"DelphiFMX doesn't support Python{pyver}.")
1818

1919
if ossys == "Windows":

setup.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,11 @@ def get_release_version():
5656
raise ValueError("Unsupported platform.")
5757

5858
#Copy the doc files to the package folder into the doc subfolder
59-
pkg_doc_dir = os.path.join(pkg_dir, "doc")
60-
if not os.path.exists(pkg_doc_dir):
59+
if os.path.exists(os.path.join("docs", "xml", "docs.xml")):
60+
pkg_doc_dir = os.path.join(pkg_dir, "doc")
61+
if not os.path.exists(pkg_doc_dir):
6162
os.mkdir(pkg_doc_dir)
62-
distutils.file_util.copy_file(os.path.join("docs", "xml", "docs.xml"), os.path.join(pkg_doc_dir, "docs.xml"))
63+
distutils.file_util.copy_file(os.path.join("docs", "xml", "docs.xml"), os.path.join(pkg_doc_dir, "docs.xml"))
6364

6465
#Create the package data.
6566
pkgdata = []
@@ -91,7 +92,7 @@ def get_release_version():
9192
license="Other/Proprietary License",
9293
license_files=["LICENSE.md"],
9394
url = "https://github.com/Embarcadero/DelphiFMX4Python",
94-
python_requires=">=3.3<=3.10",
95+
python_requires=">=3.3<=3.11",
9596
packages=[pkgname],
9697
package_data={pkgname: pkgdata},
9798
classifiers=[
@@ -105,6 +106,7 @@ def get_release_version():
105106
'Programming Language :: Python :: 3.8',
106107
'Programming Language :: Python :: 3.9',
107108
'Programming Language :: Python :: 3.10',
109+
'Programming Language :: Python :: 3.11',
108110
'Programming Language :: Python :: 3 :: Only',
109111
'Operating System :: Microsoft :: Windows',
110112
'Operating System :: POSIX',

0 commit comments

Comments
 (0)