base: require Python 3.6

Instead of failing with a syntax error on format strings, actually bail out
instead. Likewise for setup.py, require 3.6 and add this to the classifiers
too while we're there.

Related to #71
This commit is contained in:
Peter Hutterer 2018-02-07 09:01:33 +10:00 committed by Benjamin Tissoires
parent c86c318d6b
commit ad145cc078
2 changed files with 5 additions and 0 deletions

View File

@ -18,5 +18,7 @@ setup(name='tuhi',
'Development Status :: 3 - Alpha',
'License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6'
],
python_requires='>=3.6'
)

View File

@ -321,6 +321,9 @@ class Tuhi(GObject.Object):
def main(args=sys.argv):
if sys.version_info < (3, 6):
sys.exit('Python 3.6 or later required')
desc = 'Daemon to extract the pen stroke data from Wacom SmartPad devices'
parser = argparse.ArgumentParser(description=desc)
parser.add_argument('-v', '--verbose',