-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathsetup.py
60 lines (53 loc) · 1.76 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
import io
import os
import re
from setuptools import find_packages, setup
def read_version():
init_file = os.path.join(os.path.dirname(__file__), "hypergraphx", "__init__.py")
with open(init_file, "r") as f:
content = f.read()
version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", content, re.M)
if version_match:
return version_match.group(1)
raise RuntimeError("Unable to find version string.")
def read(*paths, **kwargs):
content = ""
with io.open(
os.path.join(os.path.dirname(__file__), *paths),
encoding=kwargs.get("encoding", "utf8"),
) as open_file:
content = open_file.read().strip()
return content
setup(
name="hypergraphx",
version=read_version(),
license="BSD-3-Clause license",
description="HGX is a multi-purpose, open-source Python library for higher-order network analysis",
long_description=read("README.md"),
long_description_content_type="text/markdown",
author="HGX-Team",
author_email="lotitoqf@gmail.com",
url="https://github.com/HGX-Team/hypergraphx",
keywords=["hypergraphs", "networks"],
packages=find_packages(exclude=["tests", ".github"]),
install_requires=[
"numpy",
"scipy",
"networkx",
"pandas",
"scikit-learn",
"pytest",
"matplotlib",
"seaborn",
],
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Topic :: Software Development :: Build Tools",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
],
)