Skip to content

Commit bc96804

Browse files
authored
Fix publish with Python 3 (#27)
* Use Python2 image
1 parent dc8f322 commit bc96804

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22
# docker build github.com/aspose-barcode-cloud/aspose-barcode-cloud-python -t barcode-cloud-python:$(git describe --tags)
33
# docker run barcode-cloud-python:$(git describe --tags) publish -e "TEST_CONFIGURATION_ACCESS_TOKEN=" -e "TWINE_PASSWORD="
44

5-
FROM python:latest
5+
FROM python:2
6+
7+
RUN apt-get update \
8+
&& apt-get install -y python3-pip \
9+
&& rm -rf /var/lib/apt/lists/*
610

711
WORKDIR /aspose-barcode-cloud-python
812
COPY . .

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ publish: check_git test clean dist
4040

4141
.PHONY: init-docker
4242
init-docker:
43-
pip install -r publish-requirements.txt
43+
python3 -m pip install -r publish-requirements.txt
4444

4545
.PHONY: publish-docker
4646
publish-docker: init-docker test dist

0 commit comments

Comments
 (0)