This repository has been archived by the owner on Mar 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 144
/
setup.py
58 lines (47 loc) · 1.73 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
#!/usr/bin/env python
# Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import re
import os
import sys
import importlib.util
from pathlib import Path
from typing import Dict, List
import setuptools
from distutils.core import setup
requirements: Dict[str, List[str]] = {}
for extra in ["dev", "main"]:
# Skip `package @ git+[repo_url]` because not supported by pypi
requirements[extra] = [r
for r in Path(f"requirements/{extra}.txt").read_text().splitlines()
if '@' not in r
]
# Find version number
spec = importlib.util.spec_from_file_location("hiplot.pkginfo", str(Path(__file__).parent / "hiplot" / "pkginfo.py"))
pkginfo = importlib.util.module_from_spec(spec)
spec.loader.exec_module(pkginfo)
version = pkginfo.version
def readme() -> str:
return open("README.md").read()
setup(
name="hiplot",
version=version,
description="High dimensional Interactive Plotting tool",
long_description=readme(),
long_description_content_type="text/markdown",
url='https://github.com/facebookresearch/hiplot',
author="Facebook AI Research",
packages=["hiplot"],
install_requires=requirements["main"],
extras_require={"dev": requirements["dev"]},
package_data={"hiplot": ["py.typed", "static/*", "static/built/*", "static/built/streamlit_component/*", "templates/*"]},
include_package_data=True,
entry_points={
'console_scripts': [
'hiplot = hiplot.server:run_server_main',
'hiplot-render = hiplot.render:hiplot_render_main',
]
},
python_requires='>=3.6',
)