Skip to content

Commit e9287af

Browse files
committed
Revert "Remove Python2 from the tests"
This reverts commit 4a810b4.
1 parent eccbe10 commit e9287af

9 files changed

Lines changed: 10 additions & 3 deletions

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ dist: xenial
33
cache: pip
44

55
python:
6+
- "2.7"
67
- "3.5"
78
- "3.6"
89
- "3.7"

test/Dockerfile_archlinux

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
FROM archlinux:20200505
22
RUN yes | pacman -Syyu --overwrite '*'
3-
RUN yes | pacman -S python file which
3+
RUN yes | pacman -S python python2 file which
44
COPY . /python-magic
55
CMD cd /python-magic/test && python3 ./run.py

test/Dockerfile_bionic

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
FROM ubuntu:bionic
22
RUN apt-get update
3+
RUN apt-get -y install python
34
RUN apt-get -y install python3
45
RUN apt-get -y install locales
56
RUN locale-gen en_US.UTF-8

test/Dockerfile_centos7

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
FROM centos:7
22
RUN yum -y update
3-
RUN yum -y install file-devel python3 which
3+
RUN yum -y install file-devel python3 python2 which
44
COPY . /python-magic
55
CMD cd /python-magic/test && python3 ./run.py

test/Dockerfile_centos8

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
FROM centos:8
22
RUN yum -y update
3-
RUN yum -y install file-libs python3 which
3+
RUN yum -y install file-libs python3 python2 which
44
COPY . /python-magic
55
CMD cd /python-magic/test && python3 ./run.py

test/Dockerfile_focal

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
FROM ubuntu:focal
22
RUN apt-get update
3+
RUN apt-get -y install python2
34
RUN apt-get -y install python3
45
RUN apt-get -y install locales
56
RUN locale-gen en_US.UTF-8

test/Dockerfile_xenial

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
FROM ubuntu:xenial
22
RUN apt-get update
3+
RUN apt-get -y install python
34
RUN apt-get -y install python3
45
RUN apt-get -y install locales
56
RUN locale-gen en_US.UTF-8

test/run.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,6 @@ def run_test(versions):
2929
if not found:
3030
sys.exit("No versions found: " + str(versions))
3131

32+
run_test(["python2", "python2.7"])
3233
run_test(["python3.5", "python3.6", "python3.7", "python3.8", "python3.9"])
34+

tox.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[tox]
22
envlist =
33
coverage-clean,
4+
py27,
45
py35,
56
py36,
67
py37,

0 commit comments

Comments
 (0)