forked from ASSNAKE/assnake
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
64 lines (56 loc) · 2.29 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
from setuptools import setup, find_packages
from setuptools.command.develop import develop
from setuptools.command.install import install
import fastentrypoints
import os
import configparser
from pathlib import Path
def write_internal_config():
internal_config_loc = os.path.join(str(Path.home()), '.config/assnake/internal_config.yaml')
internal_config_dir = os.path.join(str(Path.home()), '.config/assnake/')
os.makedirs(internal_config_dir, exist_ok=True)
if not os.path.isfile(internal_config_loc):
with open(internal_config_loc, 'w+') as file:
file.write('instance_config_loc: not_set')
class PostDevelopCommand(develop):
"""Post-installation for development mode."""
def run(self):
write_internal_config()
develop.run(self)
class PostInstallCommand(install):
"""Post-installation for installation mode."""
def run(self):
write_internal_config()
install.run(self)
setup(name='assnake',
version='0.9.0.1',
include_package_data=True,
license='MIT',
description = 'System for metagenomics data analysis',
author = 'Dmitry Fedorov',
author_email = '[email protected]',
url = 'https://github.com/ASSNAKE/assnake',
download_url = 'https://github.com/ASSNAKE/assnake/archive/v0.8.8.tar.gz', # I explain this later on
keywords = ['ILLUMINA', 'NGS', 'METAGENOMIC', 'DATA'],
packages=find_packages(),
install_requires=[
'numpy', 'Click', 'pyyaml>=', 'pandas',
'tabulate', 'snakemake', 'drmaa',
'parse', 'pycallgraph', 'tqdm', 'scipy', 'plotly', 'matplotlib'
],
entry_points='''
[console_scripts]
assnake=assnake.cli.assnake_cli:main
''',
classifiers=[
'Development Status :: 2 - Pre-Alpha', # Chose either "3 - Alpha", "4 - Beta" or "5 - Production/Stable" as the current state of your package
'Intended Audience :: Science/Research', # Define that your audience are developers
'Topic :: Scientific/Engineering :: Bio-Informatics',
'License :: OSI Approved :: MIT License', # Again, pick a license
'Programming Language :: Python :: 3.6',
],
cmdclass={
'develop': PostDevelopCommand,
'install': PostInstallCommand,
}
)