Commit 664223ce authored by Laros's avatar Laros
Browse files

Setup fix retry 2.

parent e9ca13fe
# Validate this file using http://lint.travis-ci.org/
language: python
python:
- "2.6"
- "2.7"
- "3.3"
- "3.4"
......
......@@ -7,14 +7,24 @@ package = 'backtranslate'
package_name = 'BackTranslate'
description = '{}: Functions for reverse translation.'.format(package_name)
documentation = 'README.md'
license = 'MIT License'
keywords = ['bioinformatics']
dependencies = ['biopython', 'future', 'python-Levenshtein']
supported = [(2, 7), (3, 3), (3, 4)]
classifiers = [
'Development Status :: 3 - Alpha',
'Intended Audience :: Science/Research',
'Intended Audience :: Developers',
'Topic :: Scientific/Engineering :: Bio-Informatics',
]
if sys.version_info < (2, 6):
raise Exception('{} requires Python 2.6 or higher.'.format(package))
if sys.version_info < supported[0]:
raise Exception('{} requires Python {}.{} or higher.'.format(
package, *supported[0]))
if sys.version_info[:2] == (2, 6):
if sys.version_info[:2] == supported[0]:
dependencies.extend(['argparse', 'importlib'])
# This is quite the hack, but we don't want to import our package from here
......@@ -39,6 +49,16 @@ try:
except IOError:
long_description = 'See ' + distmeta['__homepage__']
language_string = 'Programming Language :: Python'
classifiers += [
'License :: OSI Approved :: {}'.format(license),
'Operating System :: OS Independent',
language_string,
'{} :: {}'.format(language_string, supported[0][0]),
'{} :: {}'.format(language_string, supported[-1][0])] + \
['{} :: {}.{}'.format(language_string, *version) for version in supported]
print classifiers
setup(
name=package_name,
version=distmeta['__version_info__'],
......@@ -47,27 +67,13 @@ setup(
author=distmeta['__author__'],
author_email=distmeta['__contact__'],
url=distmeta['__homepage__'],
license='MIT License',
license=license,
platforms=['any'],
packages=[package],
install_requires=dependencies,
entry_points={
'console_scripts': ['{0} = {0}.{0}:main'.format(package)]
},
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Science/Research',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Topic :: Scientific/Engineering :: Bio-Informatics',
],
keywords='bioinformatics'
classifiers=classifiers,
keywords=' '.join(keywords)
)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment