Skip to content

Commit c584b0d

Browse files
committed
Attempt to build stable ABI wheels
1 parent 4f587cb commit c584b0d

4 files changed

Lines changed: 8 additions & 9 deletions

File tree

.github/workflows/main.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ jobs:
1212
os:
1313
- ubuntu-latest
1414
python-version:
15-
- 3.5
1615
- 3.6
1716
- 3.7
1817
- 3.8
@@ -47,7 +46,6 @@ jobs:
4746
os:
4847
- macos-latest
4948
python-version:
50-
- 3.5
5149
- 3.6
5250
- 3.7
5351
- 3.8
@@ -82,7 +80,6 @@ jobs:
8280
os:
8381
- windows-latest
8482
python-version:
85-
- 3.5
8683
- 3.6
8784
- 3.7
8885
- 3.8
@@ -147,6 +144,7 @@ jobs:
147144
env:
148145
WRAPT_INSTALL_EXTENSIONS: true # Require extensions.
149146
CIBW_SKIP: pp* # Skip wheels for PyPy.
147+
CIBW_BUILD: cp36-* # only build on 3.6 for stable cp36-abi3
150148
- uses: actions/upload-artifact@v2
151149
with:
152150
name: dist

setup.cfg

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ classifiers =
1717
Development Status :: 5 - Production/Stable
1818
License :: OSI Approved :: BSD License
1919
Programming Language :: Python :: 3
20-
Programming Language :: Python :: 3.5
2120
Programming Language :: Python :: 3.6
2221
Programming Language :: Python :: 3.7
2322
Programming Language :: Python :: 3.8
@@ -32,7 +31,7 @@ project_urls =
3231

3332
[options]
3433
zip_safe = false
35-
python_requires = >= 3.5
34+
python_requires = >= 3.6
3635
packages = find:
3736
package_dir =
3837
=src
@@ -45,6 +44,7 @@ where=src
4544

4645
[bdist_wheel]
4746
universal = false
47+
py_limited_api=cp36
4848

4949
# --- Test and coverage configuration ------------------------------------------
5050

@@ -74,13 +74,11 @@ envlist =
7474

7575
[gh-actions]
7676
python =
77-
3.5: py35, py35-without-extensions, py35-install-extensions, py35-disable-extensions
7877
3.6: py36, py36-without-extensions, py36-install-extensions, py36-disable-extensions
7978
3.7: py37, py37-without-extensions, py37-install-extensions, py37-disable-extensions
8079
3.8: py38, py38-without-extensions, py38-install-extensions, py38-disable-extensions
8180
3.9: py39, py39-without-extensions, py39-install-extensions, py39-disable-extensions
8281
3.10: py310, py310-without-extensions, py310-install-extensions, py310-disable-extensions
83-
pypy-2.7: pypy-without-extensions
8482
pypy-3.6: pypy-without-extensions
8583
pypy-3.7: pypy-without-extensions
8684

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"wrapt._wrappers",
2525
sources=["src/wrapt/_wrappers.c"],
2626
optional=not force_extensions,
27+
py_limited_api=True,
2728
)
2829
]
2930

src/wrapt/_wrappers.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
/* ------------------------------------------------------------------------- */
22

3-
/* stable ABI Python >= 3.5 */
4-
#define Py_LIMITED_API 0x03050000
3+
#ifndef Py_LIMITED_API
4+
/* stable ABI Python >= 3.6, keep in sync with setup.cfg py_limited_api */
5+
#define Py_LIMITED_API 0x03060000
6+
#endif
57

68
#include "Python.h"
79

0 commit comments

Comments
 (0)