-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsetup.py
47 lines (42 loc) · 1.75 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
from setuptools import setup
from io import open
import sys
install_requires = ['setuptools >= 0.7']
if sys.version_info[0] == 2 and sys.version_info[1] == 6:
install_requires.extend(['argparse'])
def get_version(string):
""" Parse the version number variable __version__ from a script. """
import re
version_re = r"^__version__ = ['\"]([^'\"]*)['\"]"
version_str = re.search(version_re, string, re.M).group(1)
return version_str
setup(
name='hamstring',
provides='hamstring',
version=get_version(open('hamstring.py', encoding='utf-8').read()),
author='Matthew Shirley',
author_email='[email protected]',
url='http://mattshirley.com',
description=
'This python module generates, checks, and corrects quaternary Hamming barcodes.',
long_description=open('Readme.md', encoding='utf-8').read(),
license='BSD',
scripts=[
'scripts/checkBarcodes.py', 'scripts/fixFastq.py',
'scripts/generateBarcodes.py', 'scripts/tagReads.py'
],
install_requires=install_requires,
classifiers=[
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: BSD License", "Environment :: Console",
"Intended Audience :: Science/Research", "Natural Language :: English",
"Operating System :: Unix", "Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Scientific/Engineering :: Bio-Informatics"
])