-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
65 lines (56 loc) · 1.9 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
import subprocess
from glob import glob
from os import listdir
from os.path import splitext, basename, dirname, realpath, exists, join
from setuptools import setup, find_packages
from setuptools.command.install import install as DistutilsInstall
class Install(DistutilsInstall):
def run(self):
self._install_autodatabase()
def _install_autodatabase(self):
""" clone autodatabase repo from github
"""
currant_dir = dirname(realpath(__file__))
autodatabase_git_dir = join(currant_dir, "autodatabase")
if not exists(autodatabase_git_dir):
subprocess.call("git clone https://github.com/annacprice/autodatabase", cwd=currant_dir, shell=True)
DistutilsInstall.run(self)
with open("README", 'r') as f:
long_description = f.read()
exec(open('src/Afanc/_version.py').read())
setup(
name='Afanc',
version=__version__,
description='General purpose high-resolution metagenomics disambiguation.',
license="MIT",
long_description=long_description,
author='Arthur V. Morris',
author_email='morrisa28@cardiff.ac.uk',
url="https://github.com/ArthurVM/Afanc",
packages=find_packages('src'),
package_dir={'': 'src'},
include_package_data=True,
classifiers=[
"Intended Audience :: Developers",
"Operating System :: Unix",
"Operating System :: POSIX",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Utilities",
],
install_requires=[
'Biopython==1.79',
'numpy==1.20.3',
'pysam==0.18.0',
'pandas==1.3.4',
'scipy==1.7.1'
],
entry_points={
'console_scripts': [
'afanc = Afanc.cli:main',
],
},
# cmdclass={'install': Install},
)