Commit 587d8416 authored by Jason Madden's avatar Jason Madden

Remove references to Travis, and enable pypa/gh-action-pypi-publish to upload...

Remove references to Travis, and enable pypa/gh-action-pypi-publish to upload built wheels on tagged releases.
parent 13673197
...@@ -126,6 +126,14 @@ jobs: ...@@ -126,6 +126,14 @@ jobs:
name: manylinux_aarch64_wheels.zip name: manylinux_aarch64_wheels.zip
- name: Restore pip cache permissions - name: Restore pip cache permissions
run: sudo chown -R $(whoami) ${{ steps.pip-cache.outputs.dir }} run: sudo chown -R $(whoami) ${{ steps.pip-cache.outputs.dir }}
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@v1.4.1
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
with:
user: __token__
password: ${{ secrets.TWINE_PASSWORD }}
skip_existing: true
packages_dir: wheelhouse/
test: test:
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
...@@ -242,6 +250,14 @@ jobs: ...@@ -242,6 +250,14 @@ jobs:
with: with:
name: gevent-${{ runner.os }}-${{ matrix.python-version }}.whl name: gevent-${{ runner.os }}-${{ matrix.python-version }}.whl
path: dist/*whl path: dist/*whl
- name: Publish package to PyPI (mac)
uses: pypa/gh-action-pypi-publish@v1.4.1
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') && startsWith(runner.os, 'Mac')
with:
user: __token__
password: ${{ secrets.TWINE_PASSWORD }}
skip_existing: true
- name: Install gevent - name: Install gevent
# I'd prefer to install the wheel in non-editable mode, but that seems to # I'd prefer to install the wheel in non-editable mode, but that seems to
# screw up coverage reporting. # screw up coverage reporting.
...@@ -493,13 +509,15 @@ jobs: ...@@ -493,13 +509,15 @@ jobs:
name: manylinux_x86_64_wheels.zip name: manylinux_x86_64_wheels.zip
- name: Restore pip cache permissions - name: Restore pip cache permissions
run: sudo chown -R $(whoami) ${{ steps.pip-cache.outputs.dir }} run: sudo chown -R $(whoami) ${{ steps.pip-cache.outputs.dir }}
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@v1.4.1
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
with:
user: __token__
password: ${{ secrets.TWINE_PASSWORD }}
skip_existing: true
packages_dir: wheelhouse/
# TODO: # TODO:
# * Configure caching (XXX: Are these caches updated? The post step doesn't seem to do that.)
# - pip
# - configure and build caches (see .travis.yml)
# - ccache
# * manylinux builds and uploading
# * macos uploading
# * Use YAML syntax to share snippets, like the old .travis.yml did # * Use YAML syntax to share snippets, like the old .travis.yml did
This diff is collapsed.
...@@ -22,25 +22,25 @@ cases, see `the development documentation ...@@ -22,25 +22,25 @@ cases, see `the development documentation
There are a number of systems in place to help ensure gevent is of the There are a number of systems in place to help ensure gevent is of the
highest possible quality: highest possible quality:
- A test suite is run for every push and pull request submitted. Travis - A test suite is run for every push and pull request submitted.
CI is used to test on Linux and macOS, and `AppVeyor`_ runs the builds on Github Actions is used to test on Linux and macOS, and `AppVeyor`_ runs the builds on
Windows. Pull requests with tests that don't pass will be Windows. Pull requests with tests that don't pass will be
automatically failed. automatically failed.
.. image:: https://travis-ci.org/gevent/gevent.svg?branch=master .. image:: https://github.com/gevent/gevent/workflows/gevent%20testing/badge.svg
:target: https://travis-ci.org/gevent/gevent :target: https://github.com/gevent/gevent/actions
.. image:: https://ci.appveyor.com/api/projects/status/q4kl21ng2yo2ixur?svg=true .. image:: https://ci.appveyor.com/api/projects/status/q4kl21ng2yo2ixur?svg=true
:target: https://ci.appveyor.com/project/denik/gevent :target: https://ci.appveyor.com/project/denik/gevent
- Builds on Travis CI automatically submit updates to `coveralls.io`_ to - Builds on Github Actions automatically submit updates to `coveralls.io`_ to
monitor test coverage. Pull requests that don't feature adequate test monitor test coverage. Pull requests that don't feature adequate test
coverage will be automatically failed. coverage will be automatically failed.
.. image:: https://coveralls.io/repos/gevent/gevent/badge.svg?branch=master&service=github .. image:: https://coveralls.io/repos/gevent/gevent/badge.svg?branch=master&service=github
:target: https://coveralls.io/github/gevent/gevent?branch=master :target: https://coveralls.io/github/gevent/gevent?branch=master
- Travis CI builds also run `pylint - Github Actions builds also run `pylint
<https://pylint.readthedocs.io/en/latest/>`_ to enforce code quality <https://pylint.readthedocs.io/en/latest/>`_ to enforce code quality
conventions (PEP8 compliance and the like). conventions (PEP8 compliance and the like).
......
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
gevent gevent
======== ========
.. image:: https://travis-ci.org/gevent/gevent.svg?branch=master .. image:: https://github.com/gevent/gevent/workflows/gevent%20testing/badge.svg
:target: https://travis-ci.org/gevent/gevent :target: https://github.com/gevent/gevent/actions
.. image:: https://ci.appveyor.com/api/projects/status/bqxl88yhpho223jg?svg=true .. image:: https://ci.appveyor.com/api/projects/status/bqxl88yhpho223jg?svg=true
:target: https://ci.appveyor.com/project/denik/gevent :target: https://ci.appveyor.com/project/denik/gevent
......
...@@ -2,18 +2,18 @@ ...@@ -2,18 +2,18 @@
Continuous integration Continuous integration
======================== ========================
A test suite is run for every push and pull request submitted. Travis A test suite is run for every push and pull request submitted. Github Actions
CI is used to test on Linux and macOS, and `AppVeyor`_ runs the builds on CI is used to test on Linux and macOS, and `AppVeyor`_ runs the builds on
Windows. Windows.
.. image:: https://travis-ci.org/gevent/gevent.svg?branch=master .. image:: https://github.com/gevent/gevent/workflows/gevent%20testing/badge.svg
:target: https://travis-ci.org/gevent/gevent :target: https://github.com/gevent/gevent/actions
.. image:: https://ci.appveyor.com/api/projects/status/q4kl21ng2yo2ixur?svg=true .. image:: https://ci.appveyor.com/api/projects/status/q4kl21ng2yo2ixur?svg=true
:target: https://ci.appveyor.com/project/denik/gevent :target: https://ci.appveyor.com/project/denik/gevent
Builds on Travis CI automatically submit updates to `coveralls.io`_ to Builds on Github Actions CI automatically submit updates to `coveralls.io`_ to
monitor test coverage. monitor test coverage.
.. image:: https://coveralls.io/repos/gevent/gevent/badge.svg?branch=master&service=github .. image:: https://coveralls.io/repos/gevent/gevent/badge.svg?branch=master&service=github
......
...@@ -48,7 +48,7 @@ Releasing gevent ...@@ -48,7 +48,7 @@ Releasing gevent
gevent is released using `zest.releaser gevent is released using `zest.releaser
<https://pypi.org/project/zest.releaser/>`_. Binary wheels are <https://pypi.org/project/zest.releaser/>`_. Binary wheels are
published automatically by Travis CI (macOS and manylinux) and published automatically by Github Actions CI (macOS and manylinux) and
Appveyor (Windows) when a tag is uploaded. Appveyor (Windows) when a tag is uploaded.
......
...@@ -87,7 +87,7 @@ Using tox ...@@ -87,7 +87,7 @@ Using tox
Before submitting a pull request, it's a good idea to run the tests Before submitting a pull request, it's a good idea to run the tests
across all supported versions of Python, and to check the code quality across all supported versions of Python, and to check the code quality
using prospector. This is what is done on Travis CI. Locally it using prospector/pylint. This is what is done on CI. Locally it
can be done using tox:: can be done using tox::
pip install tox pip install tox
......
...@@ -36,9 +36,10 @@ export CCACHE_DIR="/ccache" ...@@ -36,9 +36,10 @@ export CCACHE_DIR="/ccache"
GEVENT_WARNFLAGS="-pipe -Wno-strict-aliasing -Wno-comment -Wno-unused-value -Wno-unused-but-set-variable -Wno-sign-compare -Wno-parentheses -Wno-unused-function -Wno-tautological-compare -Wno-strict-prototypes -Wno-return-type -Wno-misleading-indentation" GEVENT_WARNFLAGS="-pipe -Wno-strict-aliasing -Wno-comment -Wno-unused-value -Wno-unused-but-set-variable -Wno-sign-compare -Wno-parentheses -Wno-unused-function -Wno-tautological-compare -Wno-strict-prototypes -Wno-return-type -Wno-misleading-indentation"
export CFLAGS="$GEVENT_WARNFLAGS" export CFLAGS="$GEVENT_WARNFLAGS"
if [ "$DOCKER_IMAGE" == "quay.io/pypa/manylinux2014_aarch64" -a -n "$GITHUB_ACTIONS" ]; then if [ "$DOCKER_IMAGE" == "quay.io/pypa/manylinux2014_aarch64" -a -n "$GITHUB_ACTIONS" ]; then
# Compiling with -Ofast on the arm emulator takes hours. # Compiling with -Ofast on the arm emulator takes hours. The default settings have -O3,
echo "Compiling with -Os" # and adding -Os doesn't help much. So maybe -O1 will.
export CFLAGS="-Os $GEVENT_WARNFLAGS" echo "Compiling with -O1"
export CFLAGS="-O1 $GEVENT_WARNFLAGS"
else else
echo "Compiling with -Ofast" echo "Compiling with -Ofast"
export CFLAGS="-Ofast $GEVENT_WARNFLAGS" export CFLAGS="-Ofast $GEVENT_WARNFLAGS"
...@@ -87,7 +88,7 @@ if [ -d /gevent -a -d /opt/python ]; then ...@@ -87,7 +88,7 @@ if [ -d /gevent -a -d /opt/python ]; then
mkdir /gevent/wheelhouse mkdir /gevent/wheelhouse
OPATH="$PATH" OPATH="$PATH"
which auditwheel which auditwheel
for variant in `ls -d /opt/python/cp{27,35,36,37,38,39}*`; do for variant in `ls -d /opt/python/cp{27,36,37,38,39}*`; do
export PATH="$variant/bin:$OPATH" export PATH="$variant/bin:$OPATH"
echo "Building $variant $(python --version)" echo "Building $variant $(python --version)"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment