-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
70 lines (58 loc) · 1.92 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
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Reimplementation of the hicrep with added support for sparse matrix and multiple chromosomes.
"""
import codecs
import os
import re
from setuptools import setup, find_packages
CLASSIFIERS = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Science/Research",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: GNU General Public License v2 (GPLv2)",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Bio-Informatics",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
"Operating System :: Unix",
"Operating System :: MacOS",
]
NAME = "hicreppy"
LICENSE = "GPLv2"
URL = "https://github.com/cmdoret/hicreppy"
DESCRIPTION = __doc__.strip("\n")
with codecs.open("README.md", encoding="utf-8") as f:
LONG_DESCRIPTION = f.read()
with open("requirements.txt", "r") as f:
REQUIREMENTS = f.read().splitlines()
def get_version():
"""Retrieve pkg version from init file"""
version = re.search(
r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]',
open(os.path.join("hicreppy", "__init__.py")).read(),
re.MULTILINE,
).group(1)
return version
setup(
name=NAME,
author="cmdoret",
author_email="cyril.matthey-doret@pasteur.fr",
description=DESCRIPTION,
long_description=LONG_DESCRIPTION,
version=get_version(),
license=LICENSE,
classifiers=CLASSIFIERS,
url=URL,
packages=find_packages(),
python_requires=">=3.6",
include_package_data=True,
install_requires=REQUIREMENTS,
long_description_content_type="text/markdown",
entry_points={"console_scripts": ["hicreppy=hicreppy.cli:cli"]},
)