Skip to content

Commit

Permalink
enforce Python>=3.5 at script
Browse files Browse the repository at this point in the history
  • Loading branch information
scivision committed May 16, 2018
1 parent fa2ebf7 commit 873841d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ fast_finish: true
python:
- 3.5
- 3.6

- "3.7-dev"

os:
- linux
# - osx
Expand Down
2 changes: 2 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ You can just run ``findssh.py`` directly, but to allow use from other programs,
or from this repo::

pip install -e .
It is expected that your default `python` version is at least 3.5, which was released in 2015.


Usage
Expand Down
3 changes: 3 additions & 0 deletions findssh.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
Note: timeout value bare minimum is 0.15 seconds for LAN, suggest using higher values say 0.25 or 0.35 if you can stand the wait 254*0.35 seconds
"""
import sys
if sys.version_info < (3,5):
raise RuntimeError('findssh requires at least Python 3.5')
from time import time
import logging
import socket
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

setup(name='findssh',
packages=find_packages(),
version='1.0.3',
version='1.0.4',
author='Michael Hirsch, Ph.D.',
url='https://github.com/scivision/findssh',
long_description=open('README.rst').read(),
Expand Down

0 comments on commit 873841d

Please sign in to comment.