Skip to content

Commit

Permalink
Set Python support to 3.4 and 3.5, see #105 (#115)
Browse files Browse the repository at this point in the history
  • Loading branch information
donnemartin authored Mar 25, 2017
1 parent faf719c commit e80e997
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,10 @@ def run(self):


def main():
if sys.version_info[0] < 3:
sys.exit('gitsome currently requires Python 3.4+')
python3 = sys.version_info[0] == 3
python34_or_35 = python3 and sys.version_info[1] in (4, 5)
if not python34_or_35:
sys.exit('gitsome currently requires Python 3.4 or 3.5')
try:
if '--name' not in sys.argv:
print(logo)
Expand All @@ -86,7 +88,6 @@ def main():
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Topic :: Software Development',
'Topic :: Software Development :: Libraries :: Python Modules',
],
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# and then run "tox" from this directory.

[tox]
envlist = py34, py35, py36
envlist = py34, py35

[testenv]
passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH
Expand Down

0 comments on commit e80e997

Please sign in to comment.