-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathsetup.py
72 lines (59 loc) · 2.08 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
66
67
68
69
70
71
72
#!/usr/bin/env python3
import os
import sys
from pathlib import Path
try:
from setuptools import *
except ImportError:
from distribute_setup import use_setuptools
use_setuptools()
finally:
from setuptools import *
from glob import glob
if sys.version_info < (3, 7):
print >>sys.stderr, "ERROR: pyinseq requires python 3.7 or greater"
sys.exit()
__version__ = open(os.path.join("pyinseq", "VERSION")).read().strip()
SCRIPTS = glob("scripts/*")
with open("README.md", "r") as fh:
long_description = fh.read()
# Collect paths to Snakefile's and ENVS
snake_data = [
"pyinseq/workflows/PyinseqWorkflow/Snakefile",
"pyinseq/workflows/DemultiplexWorkflow/Snakefile",
"pyinseq/workflows/GenomeprepWorkflow/Snakefile",
"pyinseq/envs/bowtie.yaml",
]
def main():
setup(
name="pyinseq",
version=__version__,
description="Analysis of transposon insertion sequencing (INSeq) data in Python",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/mjmlab/pyinseq",
author="Mark J. Mandel,Emanuel Burgos,Camille Scott,Loren Velasquez,Benjamin K. Johnson",
author_email="[email protected]",
license="BSD",
packages=find_packages(),
include_package_data=True,
package_dir={'pyinseq': 'pyinseq'},
package_data={'pyinseq': snake_data},
scripts=SCRIPTS,
setup_requires=["pytest-runner"],
tests_require=["pytest"],
python_requires='!=3.9.*,>=3.7.*',
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Operating System :: MacOS :: MacOS X",
"Operating System :: POSIX",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Topic :: Scientific/Engineering :: Bio-Informatics",
],
zip_safe=False,
)
if __name__ == "__main__":
main()