forked from jiarong/VirSorter2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
50 lines (45 loc) · 1.6 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
import os
from setuptools import setup, find_packages
# read the contents of your README file
this_directory = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(this_directory, 'README.md')) as f:
long_description = f.read()
def get_version(relpath):
'''Read version info from a file without importing it'''
for line in open(os.path.join(os.path.dirname(__file__), relpath)):
if '__version__' in line:
v = line.strip().split('=', 1)[1]
v = v.strip().strip('"\' ')
return v
else:
sys.write('*** No version info found..\n')
return ''
setup(
name='virsorter',
version=get_version("virsorter/__init__.py"),
url='https://github.com/jiarong/VirSorter2',
license='GPL-2',
author='Jiarong Guo',
author_email='[email protected]',
description=('VirSorter2: A multi-classifier, expert-guided approach to '
'detect diverse DNA and RNA virus genomes'),
long_description=long_description,
long_description_content_type='text/markdown',
packages=['virsorter'],
#package_data={
# #'': ["virsorter/*", ]
# # include anything under virsorter;
# 'virsorter': ['*']
#},
include_package_data=True, # include all files in MANIFEST.in
data_files=[(".", ["README.md", "LICENSE"])],
install_requires= [
],
# install via conda: click, ruamel.yaml, snakemake
entry_points={
'console_scripts': [
'virsorter = virsorter.virsorter:cli'
]
},
classifiers=["Topic :: Scientific/Engineering :: Bioinformatics"],
)