-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
54 lines (48 loc) · 1.67 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
#!/usr/bin/env python3
import os
import io
import re
import ast
from setuptools import setup, find_packages
DEPENDENCIES=['click', 'snakemake', 'pygraphviz', 'Jinja2']
EXCLUDE_FROM_PACKAGES=["contrib", "docs", "tests*"]
CURDIR=os.path.abspath(os.path.dirname(__file__))
with io.open(os.path.join(CURDIR, "README.md"), "r", encoding="utf-8") as readme_file:
readme=readme_file.read()
def get_version():
main_file=os.path.join(CURDIR, "cellqc", "__init__.py")
_version_re=re.compile(r"__version__\s+=\s+(?P<version>.*)")
with open(main_file, "r", encoding="utf8") as f:
match=_version_re.search(f.read())
version=match.group("version") if match is not None else '"unknown"'
return str(ast.literal_eval(version))
setup(
name="cellqc",
author="Jin Li",
author_email="[email protected]",
python_requires=">=3.6",
description="Cellqc standardizes the qualiy control of single-cell RNA-Seq (scRNA) data to render clean feature count matrices.",
install_requires=DEPENDENCIES,
packages=find_packages(exclude=EXCLUDE_FROM_PACKAGES),
long_description=readme,
long_description_content_type="text/markdown",
include_package_data=True,
keywords=[],
scripts=[],
setup_requires=[],
entry_points={
"console_scripts": [
"cellqc=cellqc.cellqc:main",
]
},
url="https://github.com/lijinbio/cellqc",
version=get_version(),
zip_safe=False,
license="MIT license",
classifiers=[
"Development Status :: 2 - Pre-Alpha",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Programming Language :: Python :: 3",
],
)