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:
name: manylinux_aarch64_wheels.zip
- name: Restore pip cache permissions
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:
runs-on: ${{ matrix.os }}
......@@ -242,6 +250,14 @@ jobs:
with:
name: gevent-${{ runner.os }}-${{ matrix.python-version }}.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
# I'd prefer to install the wheel in non-editable mode, but that seems to
# screw up coverage reporting.
......@@ -493,13 +509,15 @@ jobs:
name: manylinux_x86_64_wheels.zip
- name: Restore pip cache permissions
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:
# * 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
This diff is collapsed.
......@@ -22,25 +22,25 @@ cases, see `the development documentation
There are a number of systems in place to help ensure gevent is of the
highest possible quality:
- A test suite is run for every push and pull request submitted. Travis
CI is used to test on Linux and macOS, and `AppVeyor`_ runs the builds on
- A test suite is run for every push and pull request submitted.
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
automatically failed.
.. image:: https://travis-ci.org/gevent/gevent.svg?branch=master
:target: https://travis-ci.org/gevent/gevent
.. image:: https://github.com/gevent/gevent/workflows/gevent%20testing/badge.svg
:target: https://github.com/gevent/gevent/actions
.. image:: https://ci.appveyor.com/api/projects/status/q4kl21ng2yo2ixur?svg=true
: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
coverage will be automatically failed.
.. image:: https://coveralls.io/repos/gevent/gevent/badge.svg?branch=master&service=github
: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
conventions (PEP8 compliance and the like).
......
......@@ -2,8 +2,8 @@
gevent
========
.. image:: https://travis-ci.org/gevent/gevent.svg?branch=master
:target: https://travis-ci.org/gevent/gevent
.. image:: https://github.com/gevent/gevent/workflows/gevent%20testing/badge.svg
:target: https://github.com/gevent/gevent/actions
.. image:: https://ci.appveyor.com/api/projects/status/bqxl88yhpho223jg?svg=true
:target: https://ci.appveyor.com/project/denik/gevent
......
......@@ -2,18 +2,18 @@
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
Windows.
.. image:: https://travis-ci.org/gevent/gevent.svg?branch=master
:target: https://travis-ci.org/gevent/gevent
.. image:: https://github.com/gevent/gevent/workflows/gevent%20testing/badge.svg
:target: https://github.com/gevent/gevent/actions
.. image:: https://ci.appveyor.com/api/projects/status/q4kl21ng2yo2ixur?svg=true
: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.
.. image:: https://coveralls.io/repos/gevent/gevent/badge.svg?branch=master&service=github
......
......@@ -48,7 +48,7 @@ Releasing gevent
gevent is released using `zest.releaser
<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.
......
......@@ -87,7 +87,7 @@ Using tox
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
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::
pip install tox
......
......@@ -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"
export CFLAGS="$GEVENT_WARNFLAGS"
if [ "$DOCKER_IMAGE" == "quay.io/pypa/manylinux2014_aarch64" -a -n "$GITHUB_ACTIONS" ]; then
# Compiling with -Ofast on the arm emulator takes hours.
echo "Compiling with -Os"
export CFLAGS="-Os $GEVENT_WARNFLAGS"
# Compiling with -Ofast on the arm emulator takes hours. The default settings have -O3,
# and adding -Os doesn't help much. So maybe -O1 will.
echo "Compiling with -O1"
export CFLAGS="-O1 $GEVENT_WARNFLAGS"
else
echo "Compiling with -Ofast"
export CFLAGS="-Ofast $GEVENT_WARNFLAGS"
......@@ -87,7 +88,7 @@ if [ -d /gevent -a -d /opt/python ]; then
mkdir /gevent/wheelhouse
OPATH="$PATH"
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"
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