Skip to content

Commit a845f71

Browse files
committed
Removed 2.x support
1 parent 562e047 commit a845f71

File tree

7 files changed

+7
-36
lines changed

7 files changed

+7
-36
lines changed

.travis.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ language:
33
- ruby
44

55
python:
6-
- "2.7"
76
- "3.4"
87
- "3.5"
98
- "3.6"
@@ -20,7 +19,7 @@ script:
2019
- flake8
2120
- pydocstyle pact
2221
- tox
23-
- if [[ $TRAVIS_PYTHON_VERSION == "3.6" ]]; then make package && pip install ./dist/pact-python-*.tar.gz && make e2e; fi
22+
- if [[ $TRAVIS_PYTHON_VERSION == "3.4" ]]; then make package && pip install ./dist/pact-python-*.tar.gz && make e2e; fi
2423

2524
before_deploy:
2625
- export RELEASE_PACKAGE=$(ls dist/pact-python-*.tar.gz)
@@ -33,6 +32,6 @@ deploy:
3332
secure: W8osmmZ2F+XACUrh0gLedBhvN9zjo9FrUKgQQ/bdgeol+Qo9gyn0cu9RJd/jzlOyHHL4GyBxkgPen6J3KKTJE1J8loZF/u0rgl7H8mSq3SAv4zRk2aFBypfqJrUhiTPHcXyn2L3xWC0PfS5F+ANTDuGAIcxS9sUZEu2Snw8H1avTgFhXbEiR+xfg8Qwh9qOVO2TY9YDkTFkpST/wqFLKxstx8z9ek/wSxcAaF6EO55v6oQmtK8vn+AX7VlvwYgbGrTK/D4bdwZpc/YXEnG/zviSBnZKzOpOyg2vIi/yejFsMQVeAlG84xFsax61KrvmZfaNN+NF175hFLBCKNjUMVNaY80bRX9n4inHIBqRYWBsdurlogdfPsDEOBGfPMf2Sy0vWoRFFzRAQk4m6V/g67YdgVjN4Fi+u8CuqD59EoISH8BdwGnFsz22C3KldIZjz2eleMTsvTkq1hX1Y3hlRfIiETpl8YEL9sDMY5nVcnNTCT2ysyHOdEUigzSubzqB5O5WIkBSyDXdkjBW7BiaIAc7jvb3wrnce+M19Y2Aour4C6KEhp05u3ePSGjOBsJtI8U3/kLjrv5wZA40IIarPUDqvKK9tS+LfpEoCqPCEypTJ069lOQRBGsLy+573qsJhcYwwaYx66FcQ7CXVYR2sTQ7m8w5PXBZj60UhOvd1URU=
3433
on:
3534
repo: pact-foundation/pact-python
36-
python: "2.7"
35+
python: "3.4"
3736
tags: true
3837
skip_cleanup: true

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ Currently supports version 2 of the [Pact specification].
1212
For more information about what Pact is, and how it can help you
1313
test your code more efficiently, check out the [Pact documentation].
1414

15+
Note: As of Version 1.0 deprecates support for python 2.7 to allow us to incorporate python 3.x features more readily. If you want to still use Python 2.7 use the 0.x.y versions. Only bug fixes will now be added to that release.
16+
1517
# How to use pact-python
1618

1719
## Installation

docker/py27.Dockerfile

Lines changed: 0 additions & 24 deletions
This file was deleted.

pact/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
"""Pact version info."""
22

3-
__version__ = '0.22.0'
3+
__version__ = '1.0.0'

requirements_dev.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ Flask==1.0
33
configparser==3.5.0
44
codecov==2.0.5
55
coverage==4.3.4
6-
enum34==1.1.6
76
flake8==3.2.1
87
mccabe==0.5.2
98
mock==2.0.0

setup.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,6 @@ def read(filename):
115115
'six>=1.9.0',
116116
]
117117

118-
if sys.version_info.major == 2:
119-
dependencies.append('subprocess32')
120-
dependencies.append('enum34')
121-
122118
if __name__ == '__main__':
123119
setup(
124120
cmdclass={

tox.ini

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
[tox]
2-
envlist=py{27,34,35,36,37,38}-{test,install}
2+
envlist=py{34,35,36,37,38}-{test,install}
33
[testenv]
44
deps=
55
test: -rrequirements_dev.txt
6-
py27-test: subprocess32
7-
commands=
6+
ommands=
87
test: nosetests
98
install: python -c "import pact"

0 commit comments

Comments
 (0)