diff options
author | Jason Madden <jamadden@gmail.com> | 2021-02-26 07:41:55 -0600 |
---|---|---|
committer | Jason Madden <jamadden@gmail.com> | 2021-02-26 08:43:43 -0600 |
commit | a99dc79884acac5e9e35de2fd222266365bd7c53 (patch) | |
tree | 31764afb7ef9b0a9dff096683a8d3bf93a1d75f0 /.manylinux-install.sh | |
parent | bf0de08af2d53261d7eb0ce1e31f574f93524ef6 (diff) | |
download | zope-interface-a99dc79884acac5e9e35de2fd222266365bd7c53.tar.gz |
First pass at github actions.
Fixes #225. Someone will need to add a `TWINE_PASSWORD` GitHub repository secret that is
a token for `zope.eggbuilder` to upload to zope.interface.
Builds and uploads manylinux32/64/aarch64 wheels.
Builds and uploads Mac wheels.
Builds the docs.
Runs tests with the C extension and without the C extension.
Reports coverage to coveralls.
Has the start of an environment to do linting.
Removes .travis.yml
Diffstat (limited to '.manylinux-install.sh')
-rwxr-xr-x | .manylinux-install.sh | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/.manylinux-install.sh b/.manylinux-install.sh index ea41c49..c403ed4 100755 --- a/.manylinux-install.sh +++ b/.manylinux-install.sh @@ -2,6 +2,25 @@ set -e -x +# Running inside docker +# Set a cache directory for pip. This was +# mounted to be the same as it is outside docker so it +# can be persisted. +export XDG_CACHE_HOME="/cache" +# XXX: This works for macOS, where everything bind-mounted +# is seen as owned by root in the container. But when the host is Linux +# the actual UIDs come through to the container, triggering +# pip to disable the cache when it detects that the owner doesn't match. +# The below is an attempt to fix that, taken frob bcrypt. It seems to work on +# Github Actions. +if [ -n "$GITHUB_ACTIONS" ]; then + echo Adjusting pip cache permissions + mkdir -p $XDG_CACHE_HOME/pip + chown -R $(whoami) $XDG_CACHE_HOME +fi +ls -ld /cache +ls -ld /cache/pip + # Compile wheels for PYBIN in /opt/python/*/bin; do if [[ "${PYBIN}" == *"cp27"* ]] || \ |