* :mod:`hooke.config`
* :mod:`hooke.compat`
"""
+
+import sys as _sys
+
try:
from .license import LICENSE as __license__
-except ImportError, e:
+except ImportError as e:
import logging
logging.warn('could not load LICENSE from hooke.license')
__license__ = 'All rights reserved.'
-from .util import yaml # extend YAML to parse Hooke-specific items.
+if _sys.version_info < (3,0):
+ # yaml library not yet compatible with Python 3
+ from .util import yaml # extend YAML to parse Hooke-specific items.
__version__ = (1, 0, 0, 'alpha', None, 'Ninken')
"""Version tuple::
"Tools for analyzing force spectroscopy data."
+import codecs
from distutils.core import setup
from os import walk
import os.path
license = "GNU Lesser General Public License (LGPL)",
platforms = ["all"],
description = __doc__,
- long_description=open(os.path.join(_this_dir, 'README'), 'r').read(),
- classifiers = filter(None, classifiers.split("\n")),
+ long_description=codecs.open(
+ os.path.join(_this_dir, 'README'), 'r', encoding='utf-8').read(),
+ classifiers = list(filter(None, classifiers.split("\n"))),
scripts = ['bin/hk.py'],
packages = packages,
provides = packages,