klayout/ci-scripts/docker
Matthias Koefferlein bdc8fc2801 WIP: some fixes at unit test level 2022-05-15 21:47:15 +02:00
..
development_notes Adding documentation regarding manylinux, CI, and PyPI wheels 2018-12-20 16:10:55 -05:00
README.md Adding documentation regarding manylinux, CI, and PyPI wheels 2018-12-20 16:10:55 -05:00
docker_build.sh Using recent auditwheel program as the original one does not support manylinux2014 2021-05-01 20:09:30 +02:00
docker_build_jenkins.sh Using Jenkins for PyPI deployment. Travis stopped their generous open source support 2021-10-30 18:45:44 +02:00
docker_prepare.sh WIP: some fixes at unit test level 2022-05-15 21:47:15 +02:00

README.md

Author: Thomas Ferreira de Lima email: thomas@tlima.me

This folder contains scripts to be run inside docker images. See instructions on how to test this yourself in ci-scripts/docker/development_notes.

docker_build.sh

We need two environment variables to get going:

DOCKER_IMAGE="quay.io/pypa/manylinux1_x86_64"
PY_VERSION="cp37-cp37m"

The script must be run inside an image pulled from $DOCKER_IMAGE and with klayout's git repo cloned in /io. Inside the git clone folder, run:

docker run --rm -e DOCKER_IMAGE -e PY_VERSION -v `pwd`:/io $DOCKER_IMAGE $PRE_CMD "/io/ci-scripts/docker/docker_build.sh";
# $PRE_CMD is empty for now (useless currently).

This command will generate a wheel and place it in wheelhouse/klayout-*manylinux1*.whl. This is the wheel that needs to be uploaded to PyPI via twine. See ci-scripts/twine/README.md.