forked from scikit-tda/DREiMac
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
55 lines (48 loc) · 1.8 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
from setuptools import setup
## Get version information from _version.py
import re
VERSIONFILE = "dreimac/_version.py"
verstrline = open(VERSIONFILE, "rt").read()
VSRE = r"^__version__ = ['\"]([^'\"]*)['\"]"
mo = re.search(VSRE, verstrline, re.M)
if mo:
verstr = mo.group(1)
else:
raise RuntimeError("Unable to find version string in %s." % (VERSIONFILE,))
# Use README.md as the package long description
with open("README.md") as f:
long_description = f.read()
# get requirements
def requirements():
with open("requirements.txt") as f:
return [line.strip() for line in f if line.strip()]
setup(
name="dreimac",
version=verstr,
description="DREiMac: Dimensionality reduction with Eilenberg-MacLane coordinates",
long_description=long_description,
long_description_content_type="text/markdown",
author="Jose A. Perea, Luis Scoccola, Chris Tralie",
author_email="ctralie@alumni.princeton.edu",
license="Apache2",
packages=["dreimac"],
install_requires=requirements(),
extras_require={
"testing": ["pytest"],
"docs": ["sphinx", "sphinx_rtd_theme", "numpydoc", "ipykernel", "nbsphinx"],
},
python_requires=">=3.8,<3.12",
classifiers=[
"Intended Audience :: Science/Research",
"Intended Audience :: Education",
"Intended Audience :: Financial and Insurance Industry",
"Intended Audience :: Healthcare Industry",
"Topic :: Scientific/Engineering :: Information Analysis",
"Topic :: Scientific/Engineering :: Mathematics",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
],
keywords="topological data analysis, dimensionality reduction",
)