-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
20 additions
and
12 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 |
---|---|---|
|
@@ -30,7 +30,7 @@ jobs: | |
- uses: actions/checkout@v3 | ||
|
||
- name: Build wheels | ||
uses: pypa/[email protected].2 | ||
uses: pypa/[email protected].3 | ||
env: | ||
CIBW_BUILD: ${{ github.event.inputs.cibw_build }} | ||
CIBW_SKIP: ${{ github.event.inputs.cibw_skip }} | ||
|
@@ -43,5 +43,5 @@ jobs: | |
|
||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: wheels | ||
name: program_wheels | ||
path: wheelhouse/*.whl |
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
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 |
---|---|---|
@@ -1,16 +1,24 @@ | ||
## gemmi executable in a wheel | ||
|
||
Packaging [gemmi](https://gemmi.readthedocs.io/en/latest/utils.html), | ||
a command-line program from a crystallographic / structural biology project | ||
also called [gemmi](https://gemmi.readthedocs.io/en/latest/utils.html), | ||
as a python wheel that installable with pip. | ||
Here we provide the command-line program | ||
[gemmi](https://gemmi.readthedocs.io/en/latest/utils.html) | ||
in [wheels](https://github.com/project-gemmi/gemmi_program_wheel). | ||
|
||
It is, in PyPI, distributed separately from the Python extension module | ||
[gemmi](https://pypi.org/project/gemmi/), | ||
because, unlike the module, it does not depend on Python version. | ||
|
||
### how to make wheels after gemmi release | ||
### notes for myself -- how to make wheels after gemmi release | ||
|
||
* update `GIT_TAG` in CMakeLists.txt and `version` in pyproject.toml | ||
* (optionally) update version of cibuildwheel in .github/workflows/wheels.yml | ||
and scikit-build-core in pyproject.toml | ||
* test locally with `pip wheel .` | ||
* make source distribution of this repo: `python -m build --sdist` | ||
* build wheels in GitHub Actions | ||
* download the wheels, check them, upload sdist and wheels to PyPI | ||
* git push changes to build wheels in [GitHub Actions][1] | ||
* download the wheels, check them, upload sdist and wheels to PyPI: | ||
|
||
twine upload dist/gemmi-program-$VERSION.tar.gz | ||
twine upload wheels/gemmi_program-$VERSION-*.whl | ||
|
||
[1]: https://github.com/project-gemmi/gemmi_program_wheel/actions |
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