-
Notifications
You must be signed in to change notification settings - Fork 23
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
Conversation
10cbc46
to
1fd4889
Compare
d1aa3a0
to
3a5a413
Compare
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
5aeff4b
to
24a546c
Compare
@matthiasdiener can you look at this as well? I think everything works here, but I wanted you to look over this as well |
I'll be opening another PR to add tests to the binary distribution, unless it makes more sense to add that here. |
.github/workflows/build_wheels.yml
Outdated
uses: actions/checkout@v4 | ||
with: | ||
repository: charmplusplus/charm | ||
token: ${{ secrets.GITHUB_TOKEN }} |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
There was a problem hiding this 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!
9b102c5
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.