-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
62 lines (53 loc) · 1.88 KB
/
Copy pathsetup.py
File metadata and controls
62 lines (53 loc) · 1.88 KB
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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import io, os
# import sys
# from shutil import rmtree
from setuptools import setup
#
NAME = 'offtracker'
DESCRIPTION = 'Tracking-seq data analysis'
AUTHOR = 'Runda Xu'
EMAIL = 'xrd18@tsinghua.org.cn'
URL = 'https://github.com/Lan-lab/offtracker'
REQUIRES_PYTHON = '>=3.6.0'
here = os.path.abspath(os.path.dirname(__file__))
package_folder = NAME.lower().replace("-", "_").replace(" ", "_")
with open(os.path.join(here, package_folder, '_version.py'),'r',encoding='utf-8') as f:
for line in f:
if line.startswith("__version__"):
VERSION = line.strip().split("=")[1].strip().replace('"', '')
break
# requirements
REQUIRED = [
'pandas', 'polars>=1.19.0', 'numpy', 'scipy', 'matplotlib', 'biopython<=1.85', 'pybedtools', 'pyarrow', 'pyyaml', 'psutil',
# 'os','sys','re', 'glob', 'time','itertools','argparse', 'multiprocessing', 'shutil', 'yaml', 'math'
]
## pybedtools may be not supported in Windows
try:
with io.open(os.path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = '\n' + f.read()
except FileNotFoundError:
long_description = DESCRIPTION
setup(
name=NAME,
version=VERSION,
description=DESCRIPTION,
long_description=long_description,
long_description_content_type='text/markdown',
author=AUTHOR,
author_email=EMAIL,
url=URL,
python_requires=REQUIRES_PYTHON,
packages=['offtracker'],
package_data={'offtracker': ['snakefile/*','utility/*']},
scripts = [ 'scripts/offtracker_init.py',
'scripts/offtracker_qc.py',
'scripts/offtracker_config.py',
'scripts/offtracker_candidates.py',
'scripts/offtracker_analysis.py',
'scripts/offtracker_correction.py',
'scripts/offtracker_plot.py'],
install_requires=REQUIRED,
include_package_data=True
)