Skip to content

Commit 66cf151

Browse files
Add RELEASING.md closes #18
1 parent 3f61c91 commit 66cf151

File tree

5 files changed

+59
-23
lines changed

5 files changed

+59
-23
lines changed

CHANGELOG.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
### v0.4.0
2+
* 8bec271 - Setup Travis CI to publish to PyPi (Matthew Balvanz, Wed May 24 16:51:05 2017 -0500)
3+
* d67a015 - Merge pull request #14 from pact-foundation/verify-pacts (Matthew Balvanz, Wed May 24 16:46:49 2017 -0500)
4+
* 78bd029 - Add CONTRIBUTING.md file resolves #4 (Matthew Balvanz, Mon May 22 20:41:09 2017 -0500)
5+
* d7c32c4 - Repository badges (Matthew Balvanz, Mon May 22 20:22:14 2017 -0500)
6+
* 97122f1 - Merge pull request #13 from pact-foundation/update-developer-documentation (Matthew Balvanz, Sat May 20 20:55:06 2017 -0500)
7+
* ea015eb - Increment project to v0.4.0 (Matthew Balvanz, Fri May 19 23:46:00 2017 -0500)
8+
* 51eb338 - Command line application for verifying pacts (Matthew Balvanz, Fri May 19 22:24:06 2017 -0500)
9+
* 4b0bbd7 - Update the developer instructions (Matthew Balvanz, Fri May 19 22:05:54 2017 -0500)
10+
11+
### v0.3.0
12+
* 3130f9a - Merge pull request #11 from pact-foundation/update-mock-service (Matthew Balvanz, Sun May 14 09:03:43 2017 -0500)
13+
* 9b20d36 - Updated Versions of Pact Ruby applications (Matthew Balvanz, Sat May 13 09:43:44 2017 -0500)
14+
15+
### v0.2.0
16+
* 140f583 - Merge pull request #8 from pact-foundation/manage-mock-service (Matthew Balvanz, Sat May 13 09:18:40 2017 -0500)
17+
* 5994c3a - pact-python manages the mock service for the user (Matthew Balvanz, Tue May 9 21:58:08 2017 -0500)
18+
* 4bf7b8b - pact-python manages the mock service for the user (Matthew Balvanz, Mon May 1 20:12:53 2017 -0500)
19+
* 0a278af - pact-python manages the mock service for the user (Matthew Balvanz, Tue Apr 18 21:23:18 2017 -0500)
20+
* fd68b41 - Merge pull request #2 from pact-foundation/package-ruby-apps (Matthew Balvanz, Sat Apr 22 10:55:48 2017 -0500)
21+
* 75a96dc - Package the Ruby Mock Service and Verifier (Matthew Balvanz, Tue Apr 4 23:14:11 2017 -0500)
22+
23+
### v0.1.0
24+
* 189c647 - Merge pull request #3 from pact-foundation/travis-ci (Jose Salvatierra, Fri Apr 7 21:40:02 2017 +0100)
25+
* 559efb8 - Add Travis CI build (Matthew Balvanz, Fri Apr 7 11:12:01 2017 -0500)
26+
* 8f074a0 - Merge pull request #1 from pact-foundation/initial-framework (Matthew Balvanz, Fri Apr 7 09:55:34 2017 -0500)
27+
* f5caf9c - Initial pact-python implementation (Matthew Balvanz, Mon Apr 3 09:16:59 2017 -0500)
28+
* bfb8380 - Initial pact-python implementation (Matthew Balvanz, Thu Mar 30 20:41:05 2017 -0500)

CHANGES.txt

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

Makefile

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
11
DOCS_DIR := ./docs
22

3-
define VERSION_CHECK
4-
import setup
5-
import pact
6-
msg = 'pact.__version__ must match the last version in CHANGES.txt'
7-
assert setup.get_version() == pact.__version__, msg
8-
endef
9-
103

114
help:
125
@echo ""
@@ -71,12 +64,8 @@ pact/bin:
7164
scripts/build.sh
7265

7366

74-
export VERSION_CHECK
7567
.PHONY: test
7668
test: deps pact/bin
77-
@echo "Checking version consistency..."
78-
python -c "$$VERSION_CHECK"
79-
8069
flake8
8170
pydocstyle pact
8271
coverage erase

RELEASING.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Releasing
2+
3+
1. Increment the version according to semantic versioning rules in `pact/__init__.py`
4+
5+
2. To upgrade the the versions of `pact-mock_service` and `pact-provider-verifier`, change the
6+
appropriate `GEM_VESRION` variable in `scripts/build.sh` to the new version.
7+
8+
3. Update the `CHANGELOG.md` using:
9+
10+
$ git log --pretty=format:' * %h - %s (%an, %ad)' vX.Y.Z..HEAD
11+
12+
4. Add files to git
13+
14+
$ git add CHANGELOG.md pact/__init__.py
15+
16+
5. Commit
17+
18+
$ git commit -m "Releasing version X.Y.Z"
19+
20+
6. Tag
21+
22+
$ git tag -a vX.Y.Z -m "Releasing version X.Y.Z" && git push origin --tags
23+
24+
7. Wait until travis has run and the new tag is available at https://github.com/pact-foundation/pact-python/releases/tag/vX.Y.Z
25+
26+
8. Set the title to `pact-python-X.Y.Z`
27+
28+
9. Save

setup.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
from setuptools import setup
99
from setuptools.command.install import install
1010

11+
import pact
12+
1113

1214
class PactPythonInstallCommand(install):
1315
"""
@@ -67,13 +69,6 @@ def verifier(self, bin_path):
6769
f.extractall(os.path.join(bin_path, 'verifier'))
6870

6971

70-
def get_version():
71-
"""Return latest version noted in CHANGES.txt."""
72-
lastline = [line for line in read('CHANGES.txt').split('\n') if line][-1]
73-
version = lastline.split(',')[0]
74-
return version[1:]
75-
76-
7772
def read(filename):
7873
"""Read file contents."""
7974
path = os.path.realpath(os.path.join(os.path.dirname(__file__), filename))
@@ -89,7 +84,7 @@ def read(filename):
8984
setup_args = dict(
9085
cmdclass={'install': PactPythonInstallCommand},
9186
name='pact-python',
92-
version=get_version(),
87+
version=pact.__version__,
9388
description=('Tools for creating and verifying consumer driven contracts'
9489
' using the Pact framework.'),
9590
long_description=read('README.md'),

0 commit comments

Comments
 (0)