-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
69 lines (61 loc) · 2.07 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
# coding: utf-8
import os
import re
import setuptools
def ascii_bytes_from(path, *paths):
"""
Return the ASCII characters in the file specified by *path* and *paths*.
The file path is determined by concatenating *path* and any members of
*paths* with a directory separator in between.
"""
file_path = os.path.join(path, *paths)
with open(file_path, encoding="utf-8") as f:
ascii_bytes = f.read()
return ascii_bytes
# read required text from files
thisdir = os.path.dirname(__file__)
init_py = ascii_bytes_from(thisdir, "src", "umapviz", "__init__.py")
readme = ascii_bytes_from(thisdir, "README.md")
# This allows users to check installed version with:
# `python -c 'from umapviz import __version__; print(__version__)'`
version = re.search('__version__ = "([^"]+)"', init_py).group(1)
install_requires = [
"bokeh",
"numpy",
"pandas",
"scikit-learn",
"numba",
"hdbscan",
"umap-learn",
"pytrousse @ git+git://github.com/HK3-Lab-Team/pytrousse@stable#egg=pytrousse",
]
test_requires = ["pytest", "coverage", "pytest-cov", "coveralls"]
setuptools.setup(
name="umapviz",
version=version,
maintainer="umapviz Developers",
maintainer_email="[email protected]",
author="L. Gorini, A. Marcolini",
description="",
long_description=readme,
long_description_content_type="text/markdown",
url="https://github.com/HK3-Lab-Team/umapviz/",
install_requires=install_requires,
tests_require=test_requires,
extras_require={"testing": test_requires},
packages=setuptools.find_packages("src", exclude=["tests"]),
classifiers=[
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Intended Audience :: Science/Research",
],
package_dir={"": "src"},
include_package_data=True,
entry_points={},
test_suite="pytest",
zip_safe=True,
python_requires=">=3.6",
)