-
Notifications
You must be signed in to change notification settings - Fork 11
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
Update build, publish mechanism #96
Conversation
This will make installation in MMW faster
aa5720b
to
ee239a6
Compare
Dependency install fails for me unfortunately:
At first I thought it was because of being on Python 3.10.14 instead of 3.10, so I tried recreating my virtual environment to 3.10.0... still no dice:
Removed my virtual environment, and it made further progress but still ultimately did not succeed:
As a final effort, I set the
|
This is very useful, thanks! You're on an M1 Mac? |
It looks like you're doing all the above on |
Thanks so much for the reminder on switching branches! This helped me progress further but unfortunately attempts to install
I was surprised to see the error says there's no matching distribution found for |
So the true error for the above is this one:
which can be solved by the The package is really designed to work in a Linux environment, and the wheels added as part of this PR are for Linux x64 environments. On an ARM MacOS, we'd have to build it locally. This can be done as such: $ cd <project_dir>
$ mkdir test && cd test/
$ python3.10 -m venv .venv
$ source .venv/bin/activate
(.venv) $ pip install -r ../requirements.txt
(.venv) $ pip install build wheel
(.venv) $ pip install -i https://test.pypi.org/simple/ --no-build-isolation gwlf-e==3.2.0 This will create a new virtual environment, install the correct dependencies from the main PyPI index (for they will not be available in TestPyPI so cannot be installed transitively), install the build dependencies, and then compile and install the final piece. Let me know if the above works. |
Good catch. Added instructions in 0bc505d, and made that go to PyPI in 3afb5e6. See demo here: https://test.pypi.org/project/gwlf-e/3.2.1/ ![]() |
Reverted accidental version bump in c0bb882. I had done that locally to push 3.2.1 to TestPyPI. The real version bump will happen when exercising the release workflow, after this is merged. |
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.
Look good, great job! +1
With this gone, PyPI will now use README for its documentation, which is a lot more relevant.
c0bb882
to
9f199c0
Compare
Thanks for shepherding this in! Squashed fixups, will wait for CI to pass before merging. |
Overview
Since gwlf-e is primarily installed on Linux VMs for MMW, it is useful for there to be binary Linux wheels for common Python versions available.
This PR builds and publishes binary Linux wheels for Python 3.8 (current version on MMW), 3.9, and 3.10 (next version on MMW).
It also adds a GitHub Action to do releases instead of the previous manual process, and updates the README. PyPI has been configured to trust this new GitHub Action as a publisher as well.
Demo
https://test.pypi.org/project/gwlf-e/3.2.0/
Testing Instructions
pipenv sync --dev
to install all dependenciespipenv run python -m build --sdist
to build a source distributionpipenv run python -m cibuildwheel --output-dir dist
to build wheelsCloses #92