https://github.com/dereneaton/ipyrad
Tip revision: c19d0e07941cebe202b63033be134922cccbef25 authored by isaacovercast on 13 December 2016, 17:13:23 UTC
"Updating ipyrad/__init__.py to version - 0.5.11
"Updating ipyrad/__init__.py to version - 0.5.11
Tip revision: c19d0e0
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',
'tetrad = ipyrad.analysis.__tetrad_cli__:main',
],
},
data_files=[('bin', glob.glob("./bin/*"))],
license='GPL',
classifiers=[
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
],
)