Skip to content

Modernize build system to use pyproject.toml and build wheels #267

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 24 commits into from
Aug 28, 2024

Conversation

mayantaylor
Copy link
Collaborator

@mayantaylor mayantaylor commented Aug 4, 2024

This PR aims to (1) modernize the build system to use pyproject.toml with the existing setup.py structure (see python docs), and (2) set up Github Actions to build wheels automatically (using cibuildwheel) for distribution via Pypi.

Full instructions for creating and publishing wheels have been added to the wiki.

@mayantaylor mayantaylor force-pushed the maya/modernize-build branch from 10cbc46 to 1fd4889 Compare August 5, 2024 01:37
@mayantaylor mayantaylor force-pushed the maya/modernize-build branch from d1aa3a0 to 3a5a413 Compare August 5, 2024 12:49
manually specifying package dir

formatting

typo

manual cibuildwheel command?

one dir down?

adding debug info

typo

testing git installation

clean up print statements

typos

removing 'build' dependency

separating workflows

adding testpypi workflow
@mayantaylor mayantaylor force-pushed the maya/modernize-build branch from 5aeff4b to 24a546c Compare August 25, 2024 15:38
ritvikrao
ritvikrao previously approved these changes Aug 28, 2024
@ritvikrao
Copy link
Collaborator

@matthiasdiener can you look at this as well? I think everything works here, but I wanted you to look over this as well

@mayantaylor
Copy link
Collaborator Author

mayantaylor commented Aug 28, 2024

I'll be opening another PR to add tests to the binary distribution, unless it makes more sense to add that here.

uses: actions/checkout@v4
with:
repository: charmplusplus/charm
token: ${{ secrets.GITHUB_TOKEN }}
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need the token here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Looks like we don't, I removed it

matthiasdiener
matthiasdiener previously approved these changes Aug 28, 2024
Copy link
Contributor

@matthiasdiener matthiasdiener left a comment

Choose a reason for hiding this comment

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

Besides my two minor comments, this looks good!

@ritvikrao ritvikrao dismissed stale reviews from matthiasdiener and themself via 9b102c5 August 28, 2024 19:10
@ritvikrao ritvikrao self-requested a review August 28, 2024 20:51
@ritvikrao ritvikrao merged commit 652bc79 into main Aug 28, 2024
5 checks passed
@mayantaylor mayantaylor deleted the maya/modernize-build branch September 11, 2024 14:04
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.

3 participants