You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This library- due to infrequent updates keeping it off my radar most of the time- has slipped through the cracks of best practise and is missing some CI and deployment workflows that could help externalise some of the steps I (having half forgotten) perform when a new release is required.
Releases are so infrequent that this might not be worth the hassle, but maybe we should:
Implement GItHub workflow to build library and check it compiles
Implement GitHub workflow to deploy tagged releases to PyPi (Potentially?)
The text was updated successfully, but these errors were encountered:
I looked at this, I think something like this would work. Building universal wheels in this lib I don't think will work on GH actions so the build on push is not much use since it is only sdist. Piwheels should do it for RPi anyway, so just sdist should be good enough for users.
name: Publish Python 🐍 distributions 📦 to PyPI and TestPyPIon:
push:
release:
types: [released]jobs:
build-n-publish:
name: Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPIruns-on: ubuntu-lateststeps:
- uses: actions/checkout@masterwith:
submodules: recursive
- name: Set up Python 3.7uses: actions/setup-python@v1with:
python-version: 3.7
- name: Install build toolsrun: | python -m pip install --upgrade pip setuptools wheel
- name: Build a source tarballrun: | cd library python setup.py sdist
- name: Publish distribution 📦 to Test PyPIif: github.event_name == 'release'uses: pypa/gh-action-pypi-publish@masterwith:
password: ${{ secrets.TEST_PYPI_API_TOKEN }}repository_url: https://test.pypi.org/legacy/
- name: Publish distribution 📦 to PyPIif: github.event_name == 'release'uses: pypa/gh-action-pypi-publish@masterwith:
password: ${{ secrets.PYPI_API_TOKEN }}
@Gadgetoid Let me know what you think, maybe publishing 4.2.6 can be it's test run... though it may be better to test this exclusively on TestPyPi first. I may be able to make a PR to do this, I'll see how it goes.
This library- due to infrequent updates keeping it off my radar most of the time- has slipped through the cracks of best practise and is missing some CI and deployment workflows that could help externalise some of the steps I (having half forgotten) perform when a new release is required.
Releases are so infrequent that this might not be worth the hassle, but maybe we should:
The text was updated successfully, but these errors were encountered: