-
Notifications
You must be signed in to change notification settings - Fork 239
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add successful test building with Py_LIMITED_API
- Loading branch information
1 parent
700974b
commit 19db6d4
Showing
2 changed files
with
25 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
from . import test_projects, utils | ||
|
||
basic_project = test_projects.new_c_project( | ||
setup_py_setup_args_add='py_limited_api=True', | ||
) | ||
|
||
|
||
def test_setup_py(tmp_path): | ||
project_dir = tmp_path / 'project' | ||
basic_project.generate(project_dir) | ||
|
||
# build the wheels | ||
actual_wheels = utils.cibuildwheel_run(project_dir, add_env={ | ||
'CIBW_BUILD': 'cp27-* cp35-*', | ||
}) | ||
|
||
# check that the expected wheels are produced | ||
expected_wheels = utils.expected_wheels('spam', '0.1.0', limited_api=True) | ||
assert set(actual_wheels) == set(expected_wheels) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters