Skip to content

Commit c68ccb7

Browse files
Merge pull request #140 from elliottmurray/python2_deprecate
Python2 deprecate
2 parents 562e047 + 8bc6d48 commit c68ccb7

File tree

8 files changed

+34
-35
lines changed

8 files changed

+34
-35
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

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
### 0.22.0
23
* d112a4a - Merge pull request #134 from elliottmurray/multiple-custom-provider-header (Elliott Murray, Mon May 11 16:32:49 2020 +0100)
34
* 58f8e6b - Fix some style issues (Elliott Murray, Wed Apr 29 12:35:00 2020 +0100)

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.

release_prep.sh

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#!/bin/bash
2+
3+
VERSION=$1
4+
5+
if [[ $VERSION =~ ^[0-9]+\.[0-9]+\.[0-9]*$ ]]; then
6+
echo "Updating version $VERSION."
7+
else
8+
echo "Invalid version number $VERSION"
9+
exit 1;
10+
fi
11+
12+
TAG_NAME="v$VERSION"
13+
14+
echo "Releasing $TAG_NAME"
15+
16+
echo -e "`git log --pretty=format:' * %h - %s (%an, %ad)' $TAG_NAME..HEAD`\n$(cat CHANGELOG.md)" > CHANGELOG.md
17+
18+
echo "Appended Changelog to $VERSION"
19+
20+
git add CHANGELOG.md pact/__version__.py
21+
git commit -m "Releasing version $VERSION"
22+
23+
git tag -a "$TAG_NAME" -m "Releasing version $VERSION"
24+
25+
# && git push origin master --tags`
26+
27+

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)