https://github.com/lucventurini/mikado
Raw File
Tip revision: 6658717d52ebd16ff00bab638d9017d23350199e authored by Luca Venturini on 18 March 2016, 01:54:41 UTC
BF for prepare not setting the strip_cds/strand_specific arguments correctly.
Tip revision: 6658717
setup.py
# coding: utf-8

"""Setup file for PyPI"""

from setuptools import setup, find_packages
from setuptools.extension import Extension
from Cython.Build import cythonize
from codecs import open
from os import path
import glob
import re
import sys

here = path.abspath(path.dirname("__file__"))

with open(path.join(here, "DESCRIPTION.md"), encoding="utf-8") as description:
    long_description = description.read()

version = None
with open(path.join(here, "Mikado", "__init__.py")) as main:
    for line in main:
        if "__version__" in line:
            version = re.sub("'", "", re.sub('"', "", line.rstrip().split()[-1]))
assert version is not None

if sys.version_info.major != 3:
    raise EnvironmentError("""Mikado is a pipeline specifically programmed for python3,
    and is not compatible with Python2. Please upgrade your python before proceeding!""")

setup(
    name="Mikado",
    version=version,
    description="A Python3 annotation program to select the best gene model in each locus",
    long_description=long_description,
    url="https://github.com/lucventurini/mikado",
    author="Luca Venturini",
    author_email="luca.venturini@tgac.ac.uk",
    license="GPL3",
    classifiers=[
        "Development Status :: 4 - Beta",
        "Topic :: Gene Annotation",
        "License :: OSI Approved :: GPL3",
        'Programming Language :: Python :: 3.4'
        "Programming Language :: Python :: 3.5",
        "Operating System :: Linux"
    ],
    ext_modules=cythonize([Extension(path.join("Mikado.utilities.overlap"),
                                     [path.join("Mikado", "utilities", "overlap.pyx")])]),
    zip_safe=False,
    keywords="rna-seq annotation genomics transcriptomics",
    packages=find_packages(),
    scripts=glob.glob("bin/*.py") + glob.glob("util/*.py"),
    install_requires=[line.rstrip() for line in open("requirements.txt", "rt")],
    extras_require={
        "postgresql": ["psycopg2"],
        "mysql": ["mysqlclient>=1.3.6"],
    },
    test_suite="nose.runmodule",
    data_files=[
        ("Mikado/configuration",
         glob.glob("Mikado/configuration/*json") + glob.glob("Mikado/configuration/*yaml"))],

)
back to top