Commit 087f2626 authored by Jeroen F.J. Laros's avatar Jeroen F.J. Laros
Browse files

Packaging.

parent cca18120
*.pyc
*.egg-info
build
dist
"""
backtranslate: Functions for reverse translation.
Copyright (c) 2015 Leiden University Medical Center <humgen@lumc.nl>
Copyright (c) 2015 Jeroen F.J. Laros <j.f.j.laros@lumc.nl>
Licensed under the MIT license, see the LICENSE file.
"""
__version_info__ = ('0', '0', '1')
__version__ = '.'.join(__version_info__)
__author__ = 'LUMC, Jeroen F.J. Laros'
__contact__ = 'J.F.J.Laros@lumc.nl'
__homepage__ = 'https://github.com/mutalyzer/backtranslate'
usage = __doc__.split("\n\n\n")
def docSplit(func):
return func.__doc__.split("\n\n")[0]
def version(name):
return "%s version %s\n\nAuthor : %s <%s>\nHomepage : %s" % (name,
__version__, __author__, __contact__, __homepage__)
......@@ -29,7 +29,7 @@ def find_positions(sequence, offset):
return result
def stop(input_handle, output_handle, offset):
def find_stops(input_handle, output_handle, offset):
"""
"""
sequence = str(SeqIO.parse(input_handle, 'fasta').next().seq)
......@@ -55,7 +55,7 @@ def main():
except IOError as error:
parser.error(error)
stop(args.input_handle, args.output_handle, args.offset - 1)
find_stops(args.input_handle, args.output_handle, args.offset - 1)
if __name__ == '__main__':
......
import sys
from setuptools import setup
if sys.version_info < (2, 6):
raise Exception('backtranslate requires Python 2.6 or higher.')
# Todo: How does this play with pip freeze requirement files?
requires = ['biopython', 'python-Levenshtein', 'description-extractor']
# Python 2.6 does not include the argparse module.
try:
import argparse
except ImportError:
requires.append('argparse')
import backtranslate as distmeta
setup(
name='backtranslate',
version=distmeta.__version__,
description=distmeta.usage[0],
long_description=distmeta.__doc__,
author=distmeta.__author__,
author_email=distmeta.__contact__,
url=distmeta.__homepage__,
license='MIT License',
platforms=['any'],
packages=['backtranslate'],
install_requires=requires,
entry_points = {
'console_scripts': [
'find_stops = backtranslate.find_stops:main',
]
},
classifiers = [
'Development Status :: 3 - Alpha',
'Intended Audience :: Science/Research',
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Scientific/Engineering',
],
keywords='bioinformatics'
)
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