Skip to content

Add an action that builds wheels#1039

Merged
corranwebster merged 8 commits into
mainfrom
enh/build-wheel-action
May 2, 2023
Merged

Add an action that builds wheels#1039
corranwebster merged 8 commits into
mainfrom
enh/build-wheel-action

Conversation

@corranwebster
Copy link
Copy Markdown
Contributor

@corranwebster corranwebster commented Apr 18, 2023

This adds a stand-alone build wheel action, and then adds it to the publish to PyPI action for releases. This builds wheels for Mac, Windows and Linux Intel architecture, as well as Linux ARM.

It doesn't handle Mac ARM or Universal, but it potentially could with some more work and testing.

Comment thread setup.py
],
},
zip_safe=False,
python_requires=">=3.7",
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the only change here apart from formatting.

@corranwebster corranwebster marked this pull request as ready for review April 21, 2023 09:00
uses: actions/setup-python@v4
with:
python-version: '3.8'
python-version: '3.11'
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason why the sdist should be created with the latest possible version of Python? I would assume an older version was better (and Cython source would be compiled by the user of the sdist)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No particular reason other than the assumption that most recent python would automatically get the most current packaging infrastructure. Cython shouldn't be an issue because I don't think we ship the generated .cpp files in the sdist any more.

Copy link
Copy Markdown
Contributor Author

@corranwebster corranwebster Apr 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like I was wrong about that:

recursive-include kiva/agg *.py *.i *.cpp *.h *.c

Probably should remove that - the isolated builds should install Cython correctly from the info in the sdist if needed when building.

Edit: Nope, that's all in the agg subdirectory.

And I also spot a stray gl reference in the manifest as well.

Copy link
Copy Markdown
Member

@jwiggins jwiggins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@corranwebster corranwebster merged commit f7fbf77 into main May 2, 2023
@corranwebster corranwebster deleted the enh/build-wheel-action branch May 2, 2023 12:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants