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
# .travis.yml based on
# https://github.com/DRMacIver/hypothesis/blob/master/.travis.yml
# Setting the language to C overrides our CC environment variable
# and disables ccache.
# Setting it to python overrides our TRAVIS_PYTHON_VERSION (which
# we're only using in hopes of being able to go *back* to using
# python: one day so making the migration simpler). "shell" and
# "minimal" are aliases.
language: shell
dist: bionic
group: travis_latest
os:
- linux
- osx
osx_image: xcode11.4
addons:
homebrew:
packages:
- ccache
env:
global:
- BUILD_RUNTIMES=$HOME/.runtimes
- PYTHONHASHSEED=8675309
- PYTHONUNBUFFERED=1
- PYTHONDONTWRITEBYTECODE=1
- PIP_UPGRADE_STRATEGY=eager
# Don't get warnings about Python 2 support being deprecated. We
# know. The env var works for pip 20.
- PIP_NO_PYTHON_VERSION_WARNING=1
- PIP_NO_WARN_SCRIPT_LOCATION=1
- CC="ccache gcc"
- CCACHE_NOCPP2=true
- CCACHE_SLOPPINESS=file_macro,time_macros,include_file_ctime,include_file_mtime
- CCACHE_NOHASHDIR=true
- BUILD_LIBS=$HOME/.libs
- GEVENTSETUP_EV_VERIFY=1
# Disable some warnings produced by libev especially and also some Cython generated code.
# Note that changing the value of these variables invalidates configure caches
- CFLAGS="-Ofast -pipe -Wno-strict-aliasing -Wno-comment"
- CPPFLAGS="-I$BUILD_LIBS/include -DEV_VERIFY=1"
- LDFLAGS="-L$BUILD_LIBS/lib"
- LD_LIBRARY_PATH="$BUILD_LIBS/lib"
# Uploading built wheels for releases.
# TWINE_PASSWORD is encrypted and stored directly in the
# travis repo settings.
- TWINE_USERNAME="__token__"
# Note that this list is again *manually* expanded
# for the 'build-gevent' stage. The benefit of doing this (instead of
# only listing a single version here, or using a different 'language')
# is that we get separate caches per version. This keeps them small,
# and prevents stepping on each other when we change Python minor
# versions.
# We do it here, rather than with the python: keyword
# because the way travis handles pypy is pretty messed up.
# Recall that unless otherwise specified, jobs inherit
# the first entry in this list.
jobs:
- TRAVIS_PYTHON_VERSION=2.7
- TRAVIS_PYTHON_VERSION=3.5
- TRAVIS_PYTHON_VERSION=3.6
- TRAVIS_PYTHON_VERSION=3.7
- TRAVIS_PYTHON_VERSION=3.8
- TRAVIS_PYTHON_VERSION=3.9
- TRAVIS_PYTHON_VERSION=pypy2.7
- TRAVIS_PYTHON_VERSION=pypy3.6
- TRAVIS_PYTHON_VERSION=2.7 GEVENTSETUP_EMBED=0 GEVENTSETUP_EV_VERIFY=1
cache:
pip: true
directories:
- $HOME/.venv
- $HOME/.runtimes
- $HOME/.wheelhouse
- $HOME/.ccache
- $BUILD_LIBS
- $HOME/Library/Caches/pip
before_cache:
- rm -f $HOME/.cache/pip/log/debug.log
# Store the configure caches. Having a cache can speed up c-ares
# configure from 2-3 minutes to 20 seconds.
- mkdir -p $BUILD_LIBS
- if [ -f deps/c-ares/config.cache ]; then cp deps/c-ares/config.cache $BUILD_LIBS/config.cache.ares ; fi
- if [ -f deps/libev/config.cache ]; then cp deps/libev/config.cache $BUILD_LIBS/config.cache.libev ; fi
- if [ -f deps/libuv/config.cache ]; then cp deps/libuv/config.cache $BUILD_LIBS/config.cache.libuv ; fi
before_install:
- export PATH=$BUILD_RUNTIMES/snakepit/$TRAVIS_PYTHON_VERSION.d/bin:$PATH
- export G_SITE=$BUILD_RUNTIMES/snakepit/$TRAVIS_PYTHON_VERSION.d/lib/*/site-packages/
# Restore the configure caches
- if [ -f $BUILD_LIBS/config.cache.ares ]; then cp $BUILD_LIBS/config.cache.ares deps/c-ares/config.cache ; fi
- if [ -f $BUILD_LIBS/config.cache.libev ]; then cp $BUILD_LIBS/config.cache.libev deps/libev/config.cache ; fi
- if [ -f $BUILD_LIBS/config.cache.libuv ]; then cp $BUILD_LIBS/config.cache.libuv deps/libuv/config.cache ; fi
- echo Running in stage $TRAVIS_BUILD_STAGE_NAME
- |
if [[ "$TRAVIS_OS_NAME" == "osx" && "$TRAVIS_BUILD_STAGE_NAME" != "test" ]]; then
export PATH="/usr/local/opt/ccache/libexec:$PATH"
export CFLAGS="$CFLAGS -Wno-parentheses-equality"
fi
before_script:
# Show some details of interest
- |
python --version
python -c 'import greenlet; print(greenlet, greenlet.__version__)'
python -c 'import gevent.core; print(gevent.core.loop)'
python -c 'import gevent.ares; print(gevent.ares)'
# Installing is taken care of by the first stage.
install:
- ls -l $BUILD_RUNTIMES/snakepit/
- echo $BUILD_RUNTIMES/snakepit/$TRAVIS_PYTHON_VERSION.d
- ls -l $BUILD_RUNTIMES/snakepit/$TRAVIS_PYTHON_VERSION.d
- python -c 'import gevent; print(gevent.__version__)'
- python -c 'from gevent._compat import get_clock_info; print(get_clock_info("perf_counter"))'
script:
# The generic script for the matrix expansion is to
# test the defaults.
- &test-basic python -m gevent.tests
# Now, the non-default threaded file object.
# In the past, we included all test files that had a reference to 'subprocess'' somewhere in their
# text. The monkey-patched stdlib tests were specifically included here.
# However, we now always also test on AppVeyor (Windows) which only has GEVENT_FILE=thread,
# so we can save a lot of CI time by reducing the set and excluding the stdlib tests without
# losing any coverage. Which is good, because coverage fails when run this way.
- (cd src/gevent/tests && GEVENT_FILE=thread python -mgevent.tests test__*subprocess*.py)
# Submit coverage info
after_success:
- python -m coverage combine || true
- python -m coverage report -i || true
- python -m coveralls || true
- |
if [[ -n "$DOCKER_IMAGE" ]]; then
ls -l wheelhouse
twine check wheelhouse/*
if [[ $TRAVIS_TAG ]]; then
twine upload --skip-existing wheelhouse/*
fi
fi
stages:
- build-gevent
- test
jobs:
fast_finish: true
exclude:
- os: osx
env: TRAVIS_PYTHON_VERSION=3.5
- os: osx
env: TRAVIS_PYTHON_VERSION=3.9
- os: osx
env: TRAVIS_PYTHON_VERSION=pypy2.7
- os: osx
env: TRAVIS_PYTHON_VERSION=pypy3.6
- os: osx
env: TRAVIS_PYTHON_VERSION=2.7 GEVENTSETUP_EMBED=0 GEVENTSETUP_EV_VERIFY=1
include:
- &build-gevent
stage: build-gevent
install:
# Install the Python runtime
- &build-gevent-python time travis_wait ./scripts/install.sh $TRAVIS_PYTHON_VERSION
# Install gevent. Yes, this will create different files each time,
# leading to a fresh cache. But because of CCache stats, we had already been doing
# that (before we learned about CCACHE_NOSTATS).
# We don't install using the requirements file for speed (reduced deps) and because an editable
# install doesn't work in the cache.
# First, the build dependencies (see setup.cfg)
# so that we don't have to use build isolation and can better use the cache;
# Note that we can't use -U for cffi and greenlet on PyPy.
# The -q is because PyPy2 sometimes started raising
# UnicodeEncodeError: 'ascii' codec can't encode character u'\u2588' in position 6: ordinal not in range(128)
# when downloading files. This started sometime in mid 2020. It's from
# pip's vendored progress.bar class.
- &build-gevent-deps pip install -U -q setuptools wheel twine && pip install -q -U 'faulthandler; python_version == "2.7" and platform_python_implementation == "CPython"' 'cffi;platform_python_implementation=="CPython"' 'cython>=3.0a5' 'greenlet>=1.0a1;platform_python_implementation=="CPython"'
# Next, build the wheel *in place*. This helps ccache, and also lets us cache the configure
# output (pip install uses a random temporary directory, making this difficult)
- python setup.py bdist_wheel
- ls -l dist
- twine check dist/*
- pip uninstall -y gevent
- pip install -U --no-compile `ls dist/*whl`[test]
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then if [[ $TRAVIS_TAG ]]; then twine upload --skip-existing dist/*; fi; fi;
script: ccache -s
before_script: true
after_success: true
- <<: *build-gevent
env: TRAVIS_PYTHON_VERSION=3.8
- <<: *build-gevent
env: TRAVIS_PYTHON_VERSION=3.5
- <<: *build-gevent
env: TRAVIS_PYTHON_VERSION=3.6
- <<: *build-gevent
env: TRAVIS_PYTHON_VERSION=3.7
- <<: *build-gevent
env: TRAVIS_PYTHON_VERSION=3.9
- <<: *build-gevent
env: TRAVIS_PYTHON_VERSION=pypy2.7
- <<: *build-gevent
env: TRAVIS_PYTHON_VERSION=pypy3.6
- <<: *build-gevent
env: TRAVIS_PYTHON_VERSION=2.7
os: osx
- <<: *build-gevent
env: TRAVIS_PYTHON_VERSION=3.6
os: osx
- <<: *build-gevent
env: TRAVIS_PYTHON_VERSION=3.7
os: osx
- <<: *build-gevent
env: TRAVIS_PYTHON_VERSION=3.8
os: osx
- <<: *build-gevent
env: TRAVIS_PYTHON_VERSION=2.7 GEVENTSETUP_EMBED=0 GEVENTSETUP_EV_VERIFY=1
install:
# Install the Python runtime
- *build-gevent-python
- *build-gevent-deps
# Install the C dependencies to a known location. This is used
# to test 'no embed' cases. It might seem like it would prime
# the CCache for when we *do* embed if we did it as part of
# the generic build stage, but overall it just seems to slow
# things down. The Travis caching and CCache is not working as
# well as we would hope. (XXX: Probably because in the past we
# used pip install which used temporary directories.)
- pushd deps/libev && ./configure -C --prefix=$BUILD_LIBS && make install && popd
- pushd deps/c-ares && ./configure -C --prefix=$BUILD_LIBS && make -j4 install && popd
- autoconf --version
- automake --version
- ls -l deps/libuv/m4
- pushd deps/libuv && ./autogen.sh && ./configure -C --disable-static --prefix=$BUILD_LIBS && make -j4 install && popd
# libev builds a manpage each time, and it includes today's date, so it frequently changes.
# delete to avoid repacking the archive
- rm -rf $BUILD_LIBS/share/man/
- ls -l $BUILD_LIBS $BUILD_LIBS/lib $BUILD_LIBS/include
- python setup.py bdist_wheel
- pip uninstall -y gevent
- pip install -U `ls dist/*whl`[test]
# Test that we're actually linking
# to the .so file.
- objdump -p $G_SITE/gevent/libev/_corecffi*so | grep "NEEDED.*libev.so"
- objdump -p $G_SITE/gevent/libev/corecext*so | grep "NEEDED.*libev.so"
- objdump -p $G_SITE/gevent/libuv/_corecffi*so | grep "NEEDED.*libuv.so"
script:
# Verify that we got non-embedded builds
- python -c 'import gevent.libev.corecffi as CF; assert not CF.LIBEV_EMBED'
- python -c 'import gevent.libuv.loop as CF; assert not CF.libuv.LIBUV_EMBED'
# Ok, now we switch to the test stage. These are all in addition
# to the jobs created by the matrix (and should override the
# `script` command).
# The manylinux builds and tests.
# These take awhile, so get them started while others proceed in parallel.
- stage: test
name: 64-bit manylinux wheels (all Pythons)
language: python
services: docker
env: DOCKER_IMAGE=quay.io/pypa/manylinux2010_x86_64
install: docker pull $DOCKER_IMAGE
script: bash scripts/releases/make-manylinux
before_script:
- python -mpip install -U pip twine
- chmod a+w $HOME/.cache
- mkdir -p $HOME/.cache/pip
- chmod a+w $HOME/.cache/pip
# 32-bit manylinux temporarily commentted out.
# https://github.com/cython/cython/issues/3840 has surfaced again.
# - stage: test
# name: 32-bit manylinux wheels (all Pythons)
# language: python
# services: docker
# env: DOCKER_IMAGE=quay.io/pypa/manylinux2010_i686 PRE_CMD=linux32
# install: docker pull $DOCKER_IMAGE
# script: bash scripts/releases/make-manylinux
# before_script:
# - python -mpip install -U pip twine
# - chmod a+rwx $HOME/.cache
# - mkdir -p $HOME/.cache/pip
# - chmod a+rwx $HOME/.cache/pip
# Lint the code. Because this is a separate job, even if it fails fast
# the tests will still run. Put it at the top for fast feedback.
# We only need to do this on one version, and it should be Python 3, because
# pylint has stopped updating for Python 2.
- stage: test
# We need pylint, since above we're not installing a
# requirements file.
install: pip install -U pylint
script: python -m pylint --limit-inference-results=1 --rcfile=.pylintrc gevent
env: TRAVIS_PYTHON_VERSION=3.8
name: Run pylint on Python 3.8
# Now the various functional test groups.
# We organize these by interpreter, rather than functional test group,
# so that it's easy to see which interpreters are in which group.
# First, default (cpython 2.7). This tests essentially all the groups.
# Test the c-ares resolver. It's implemented in C, so don't bother with coverage.
# Also, we don't support it on PyPy for production, so don't bother to test PyPy.
- &test-ares-jobs
stage: test
script: GEVENT_RESOLVER=ares python -mgevent.tests --ignore tests_that_dont_use_resolver.txt
name: c-ares resolver (Python 2.7)
# Run dnspython with coverage enabled, it's implemented in python whereas ares is C.
# PyPy is supported.
- &test-dnspython-jobs
script:
- GEVENT_RESOLVER=dnspython python -mgevent.tests --coverage --ignore tests_that_dont_use_resolver.txt
name: dnspython resolver (Python 2.7)
# Now test the alternate backends, starting with libuv-cffi, which should be present everywhere
- &test-libuv-jobs
script: GEVENT_LOOP=libuv python -mgevent.tests --coverage
name: libuv backend (Python 2.7)
# Next the libev-cffi backend, which is only needed on CPython (default on PyPy)
- &test-libev-jobs
script: GEVENT_LOOP=libev-cffi python -mgevent.tests --coverage
name: libev-cffi backend (Python 2.7)
# No compiled cython modules on CPython, using the default backend. Get coverage here.
# We should only need to run this for a single Python 2 and a Python 3
- &test-pure-jobs
script: PURE_PYTHON=1 python -mgevent.tests --coverage
name: No Cython modules (Python 2.7)
# Run the leaktests; this seems to be extremely slow on Python 3.7
# XXX: Figure out why. Can we reproduce locally?
- &test-leak-jobs
script: GEVENTTEST_LEAKCHECK=1 python -m gevent.tests --ignore tests_that_dont_do_leakchecks.txt
name: Checking for reference leaks (Python 2.7)
# Now, in order of the matrix, tests for particular versions.
# For the CPython interpreters, unless we have reason to expect
# different behaviour across the versions (e.g., as measured by coverage)
# it's sufficient to run the full suite on the current version
# and oldest version.
# 3.8
- <<: *test-libuv-jobs
env: TRAVIS_PYTHON_VERSION=3.9
name: libuv backend (Python 3.9)
- <<: *test-libev-jobs
env: TRAVIS_PYTHON_VERSION=3.9
name: libev-cffi backend (Python 3.9)
- <<: *test-ares-jobs
env: TRAVIS_PYTHON_VERSION=3.9
name: c-ares resolver (Python 3.9)
- <<: *test-dnspython-jobs
env: TRAVIS_PYTHON_VERSION=3.9
name: dnspython resolver (Python 3.9)
- <<: *test-pure-jobs
env: TRAVIS_PYTHON_VERSION=3.9
name: No Cython modules (Python 3.9)
# 2.7, no-embed. Run the tests that exercise the libraries we
# linked to.
- <<: *test-ares-jobs
# This job exercises both the non-embedded ares resolver
# and the non-embedded Cython libev loop.
env: TRAVIS_PYTHON_VERSION=2.7 GEVENTSETUP_EMBED=0 GEVENTSETUP_EV_VERIFY=1
name: c-ares resolver, external (Python 2.7)
# These exercise the CFFI versions.
- <<: *test-libuv-jobs
env: TRAVIS_PYTHON_VERSION=2.7 GEVENTSETUP_EMBED=0 GEVENTSETUP_EV_VERIFY=1
name: libuv backend, external (Python 2.7)
- <<: *test-libev-jobs
env: TRAVIS_PYTHON_VERSION=2.7 GEVENTSETUP_EMBED=0 GEVENTSETUP_EV_VERIFY=1
name: libev backend, external (Python 2.7)
# PyPy 2.7
- <<: *test-dnspython-jobs
env: TRAVIS_PYTHON_VERSION=pypy2.7
name: dnspython resolver (PyPy 2.7)
- <<: *test-libuv-jobs
env: TRAVIS_PYTHON_VERSION=pypy2.7
name: libuv backend (PyPy 2.7)
notifications:
email: false
...@@ -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