Skip to content

Commit

Permalink
🐛 Add python2 not supported warning
Browse files Browse the repository at this point in the history
Related: #9, #10
  • Loading branch information
relekang committed Jul 29, 2015
1 parent a71b536 commit e84c4d8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Expand Up @@ -4,9 +4,10 @@ Automatic semantic versioning for python projects

## Install
```
pip install python-semantic-release
pip3 install python-semantic-release
```
This project currently supports only Python 3.

Python 2 is currently not supported. See [#10] for more information.

## Usage
The general idea is to have some sort of tag in commit messages that indicates certain types of changes.
Expand Down Expand Up @@ -55,3 +56,4 @@ to meet what you want them to be. The different tags are listed below with their
* **Patch change:** `patch_tag = :bug:` :bug:

[last-build]: https://ci.frigg.io/relekang/python-semantic-release/last/
[#10]: https://github.com/relekang/python-semantic-release/issues/10
5 changes: 5 additions & 0 deletions setup.py
Expand Up @@ -24,6 +24,11 @@ def _read_long_description():
except ImportError:
pass

if sys.version_info[0] == 2:
print('Python 2 is currently not supported. '
'See https://github.com/relekang/python-semantic-release/issues/10')
exit(1)

setup(
name='python-semantic-release',
version=version,
Expand Down

0 comments on commit e84c4d8

Please sign in to comment.