diff --git a/.dockerignore b/.dockerignore index 533c866ae..d0ad62a6b 100644 --- a/.dockerignore +++ b/.dockerignore @@ -5,8 +5,10 @@ !/*.py !/*LICENSE* !/setup.cfg -!/pygeos/** +!/pyproject.toml +!/shapely/** !/src/** +!/tests/** # Ignore unnecessary files inside allowed directories # This should go after the allowed directories diff --git a/docker/Dockerfile.arm64 b/docker/Dockerfile.arm64 index fb81e6ee9..23273a7c2 100644 --- a/docker/Dockerfile.arm64 +++ b/docker/Dockerfile.arm64 @@ -1,8 +1,8 @@ -# This docker container is used for testing pygeos in ARM64 emulation mode. +# This docker container is used for testing shapely in ARM64 emulation mode. # To build it: -# docker build . -f ./docker/Dockerfile.arm64 -t pygeos/arm64 -# Then run the pygeos test suite: -# docker run --rm pygeos/arm64:latest python3 -m pytest -vv +# docker build . -f ./docker/Dockerfile.arm64 -t shapely/arm64 +# Then run the shapely test suite: +# docker run --rm shapely/arm64:latest python3 -m pytest -vv FROM --platform=linux/arm64/v8 arm64v8/ubuntu:20.04 diff --git a/docker/Dockerfile.valgrind b/docker/Dockerfile.valgrind index 17575e7d4..fc4374e39 100644 --- a/docker/Dockerfile.valgrind +++ b/docker/Dockerfile.valgrind @@ -1,7 +1,7 @@ -# This docker is used for memory leak testing of pygeos. To use it, first build: -# docker build . -f ./docker/Dockerfile.valgrind -t pygeos/valgrind +# This docker is used for memory leak testing of shapely. To use it, first build: +# docker build . -f ./docker/Dockerfile.valgrind -t shapely/valgrind # Then run the pytest suite with valgrind enabled: -# docker run --rm pygeos/valgrind:latest valgrind --show-leak-kinds=definite --log-file=/tmp/valgrind-output python -m pytest -vv --valgrind --valgrind-log=/tmp/valgrind-output > valgrind.log +# docker run --rm shapely/valgrind:latest valgrind --show-leak-kinds=definite --log-file=/tmp/valgrind-output python -m pytest -vv --valgrind --valgrind-log=/tmp/valgrind-output > valgrind.log FROM python:3.9-slim-buster @@ -29,5 +29,5 @@ RUN export GEOS_VERSION=3.10.3 && \ COPY . /code -# Build pygeos +# Build shapely RUN python setup.py build_ext --inplace && python setup.py install