forked from snakemake/snakemake
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
34 lines (28 loc) · 885 Bytes
/
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
import os
from pathlib import Path
import sys
from setuptools import setup
# ensure the current directory is on sys.path so versioneer can be imported
# when pip uses PEP 517/518 build rules.
# https://github.com/python-versioneer/python-versioneer/issues/193
source_dir = Path(__file__).parent
sys.path.append(str(source_dir))
import versioneer # noqa: E402
# import Assets, while avoiding that the rest of snakemake is imported here before
# setup has been called.
sys.path.append(str(source_dir / "snakemake"))
from assets import Assets
# download online assets
Assets.deploy()
setup(
name="snakemake",
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
package_data={
"snakemake": [
"assets/data/**/*",
"report/html_reporter/template/**/*",
"report/html_reporter/template/*",
]
},
)