Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ COPY ./requirements /impyute/requirements
RUN pip2.7 install -r /impyute/requirements/dev.txt && \
pip3.4 install -r /impyute/requirements/dev.txt && \
pip3.5 install -r /impyute/requirements/dev.txt && \
pip3.6 install -r /impyute/requirements/dev.txt
pip3.6 install -r /impyute/requirements/dev.txt && \
pip3.7 install -r /impyute/requirements/dev.txt

COPY ./setup.py ./setup.cfg ./README.rst /impyute/
COPY ./docs /impyute/docs
Expand All @@ -14,6 +15,7 @@ WORKDIR /impyute
RUN pip2.7 install -e . && \
pip3.4 install -e . && \
pip3.5 install -e . && \
pip3.6 install -e .
pip3.6 install -e . && \
pip3.7 install -e .

CMD ["python3.6", "-m", "pytest"]
31 changes: 31 additions & 0 deletions Dockerfile.pybase
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
FROM ubuntu:16.04

RUN apt-get update && \
apt-get -y install software-properties-common \
python-software-properties && \
add-apt-repository -y ppa:deadsnakes/ppa && apt-get update && \
apt-get autoclean

RUN apt-get -y install \
python2.7 python2.7-dev \
python3.4 python3.4-dev \
python3.5 python3.5-dev \
python3.6 python3.6-dev \
python3.7 python3.7-dev && \
apt-get autoclean

RUN apt-get install wget && \
wget https://bootstrap.pypa.io/get-pip.py && \
python2.7 get-pip.py && \
python3.4 get-pip.py && \
python3.5 get-pip.py && \
python3.6 get-pip.py && \
python3.7 get-pip.py && \
rm get-pip.py && \
apt-get autoclean

RUN python2.7 -m pip install --upgrade pip && \
python3.4 -m pip install --upgrade pip && \
python3.5 -m pip install --upgrade pip && \
python3.6 -m pip install --upgrade pip && \
python3.7 -m pip install --upgrade pip
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
DOCKER_ID_USER=eltonlaw

.PHONY: all build test upload install docs

all: test
Expand All @@ -11,6 +13,7 @@ test: build
docker run impyute python3.4 -m pytest
docker run impyute python3.5 -m pytest
docker run impyute python3.6 -m pytest
docker run impyute python3.7 -m pytest

upload: build test docs
python3 setup.py bdist_wheel --universal
Expand All @@ -22,3 +25,7 @@ install:

docs:
cd docs && $(MAKE) html

push_pybase:
docker build -t $(DOCKER_ID_USER)/pybase -f Dockerfile.pybase
docker push $(DOCKER_ID_USER)/pybase