modified: pixi.toml
[GalaxyCodeBases.git] / BioInfo / BS-Seq / bwa-meth / setup.py
blobd099d9ef1e53b2473a76631f8576f06a32d70c30
1 import ez_setup
2 import sys
3 ez_setup.use_setuptools()
4 from setuptools import setup
6 # from mpld3
7 def get_version(path):
8 """Get the version info from the mpld3 package without importing it"""
9 import ast
11 with open(path) as init_file:
12 module = ast.parse(init_file.read())
14 version = (ast.literal_eval(node.value) for node in ast.walk(module)
15 if isinstance(node, ast.Assign)
16 and node.targets[0].id == "__version__")
17 try:
18 return next(version)
19 except StopIteration:
20 raise ValueError("version could not be located")
22 install_requires = ['toolshed']
23 if sys.version_info[:2] < (2, 7):
24 install_requires.extend(["argparse", "ordereddict"])
26 setup(name='bwameth',
27 version=get_version("bwameth.py"),
28 description="align BS-Seq reads with bwa mem",
29 py_modules=['bwameth'],
30 author="Brent Pedersen",
31 author_email="bpederse@gmail.com",
32 license="MIT",
33 install_requires=install_requires,
34 long_description=open('README.md').read(),
35 classifiers=[
36 'Topic :: Scientific/Engineering :: Bio-Informatics',
37 'Programming Language :: Python :: 2',
38 'Programming Language :: Python :: 3'
40 scripts=['bwameth.py']