Moves example software up into examples, out of the main src directory. I think this is better because some of the examples are licensed differently (GPLv2) than the main library (MIT), and also this way the examples don't necessarily have to be installed with the main library and import cleanly on the same Python versions as the main library.
Some Py3-compatibility changes in the examples, mostly around print() use.
Catch exceptions with except ExceptionClass instead of unconditional except -- this should avoid trapping things like keyboard interrupts.
In pysony.py, check sys.version_info rather than using six. I noticed six wasn't listed as a library dependency in setup.py or requirements.txt, so let's not rely on it being present unless we have to. We can always add it back if there are other Py3-compatibility issues that are hard to address without it.
Minor version increment.
Adds tox.ini and updates .travis.yaml to make it easier to run tests across different Python versions.
Fixes #56
Changes:
Moves example software up into
examples
, out of the mainsrc
directory. I think this is better because some of the examples are licensed differently (GPLv2) than the main library (MIT), and also this way the examples don't necessarily have to be installed with the main library and import cleanly on the same Python versions as the main library.Some Py3-compatibility changes in the examples, mostly around
print()
use.Catch exceptions with
except ExceptionClass
instead of unconditionalexcept
-- this should avoid trapping things like keyboard interrupts.In
pysony.py
, checksys.version_info
rather than usingsix
. I noticedsix
wasn't listed as a library dependency in setup.py or requirements.txt, so let's not rely on it being present unless we have to. We can always add it back if there are other Py3-compatibility issues that are hard to address without it.Minor version increment.
Adds
tox.ini
and updates.travis.yaml
to make it easier to run tests across different Python versions.