https://github.com/dereneaton/ipyrad
Raw File
Tip revision: da85d5fc386973219e9295a53d26d3b9b26e2cd9 authored by deren on 20 February 2016, 22:23:58 UTC
"Updating ipyrad/__init__.py to version - 0.1.55
Tip revision: da85d5f
setup.py
#!/usr/bin/env python2.7

from setuptools import setup, find_packages
import glob
import re



def requires():
    """ gets packages from requirements.txt """
    with open('requirements.txt') as infile:
        return infile.read().splitlines()


def dependency_links():
    """
    return: the package specifications
    """
    with open('constraints.txt') as infile:
        return infile.read().splitlines()


## Auto-update ipyrad version from git repo tag
# Fetch version from git tags, and write to version.py.
# Also, when git is not available (PyPi package), use stored version.py.
INITFILE = "ipyrad/__init__.py"
CUR_VERSION = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]",
                    open(INITFILE, "r").read(),
                    re.M).group(1)

setup(
    name="ipyrad",
    version=CUR_VERSION,
    url="https://github.com/dereneaton/ipyrad",
    author="Deren Eaton",
    author_email="deren.eaton@yale.edu",
    description="Interactive assembly and analysis of RADseq data sets",
    long_description=open('README.rst').read(),
    packages=find_packages(),
    install_requires=requires(),
    dependencies=dependency_links(),
    entry_points={
            'console_scripts': [
                'ipyrad = ipyrad.__main__:main',
            ],
    },
    data_files=[('bin', glob.glob("./bin/*"))],
    license='GPL',
    classifiers=[
        'Programming Language :: Python',
        'Programming Language :: Python :: 2',
        'Programming Language :: Python :: 2.7',
    ],
)
back to top