Skip to content

Commit caa4e13

Browse files
authored
Merge pull request #89 from keep94/travis_setup_py
Bring back version check in setup.py in travis.yml.
2 parents fbf2bfb + a5bf7c7 commit caa4e13

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

.travis.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ before_script:
1919
- python -m pydocstyle
2020
script:
2121
- python -m unittest discover
22-
22+
- if [[ "${TRAVIS_PULL_REQUEST}" != "false" ]]; then
23+
test -n "$(git diff -G version= $TRAVIS_COMMIT_RANGE setup.py)";
24+
fi
2325
deploy:
2426
- provider: pypi
2527
user: wavefront-cs

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -494,5 +494,12 @@ total_failures = wavefront_sender.get_failure_count()
494494

495495
## How to Get Support and Contribute
496496

497+
* When submitting changes, be sure to increment the version number in setup.py.
498+
The version number is documented as such in setup.py.
499+
We follow semantic versioning. For bug fixes, increment the patch version
500+
(last number). For backward compatible changes to the API, update the
501+
minor version (second number), and zero out the patch version. For breaking
502+
changes to the API, increment the major version (first number) and zero out
503+
the minor and patch versions.
497504
* Reach out to us on our public [Slack channel](https://www.wavefront.com/join-public-slack).
498505
* If you run into any issues, let us know by creating a GitHub issue.

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
setuptools.setup(
1616
name='wavefront-sdk-python',
17-
version='1.8.1',
17+
version='1.8.2', # The version number. Update with each pull request.
1818
author='Wavefront by VMware',
1919
author_email='chitimba@wavefront.com',
2020
url='https://github.com/wavefrontHQ/wavefront-sdk-python',

0 commit comments

Comments
 (0)