-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathsetup.py
73 lines (64 loc) · 2.02 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
71
72
73
#!/usr/bin/env python
import os
import sys
from setuptools import setup, find_packages, Command
class BuildJS(Command):
description = "runs 'npm install && npm run prepack'"
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
npm = "npm" if sys.platform != "win32" else "npm.bat"
os.chdir("ipywidgets_bokeh")
try:
self.spawn([npm, "install"])
self.spawn([npm, "run", "prepack"])
finally:
os.chdir("..")
install_requires = [
"bokeh ==3.*", # TODO 3.2.dev1
"ipywidgets ==8.*",
"ipykernel ==6.*,!=6.18.0", # until ipywidgets 8.0.6
]
dev_dependencies = [
"anywidget>=0.3.0",
"panel>=1.0.4",
"pytest>=7.3.1",
"pytest-cov>=4.1.0",
"pytest-playwright>=0.3.3",
]
setup_args = dict(
name="ipywidgets_bokeh",
version="1.6.0",
install_requires=install_requires,
extras_require={"dev": dev_dependencies},
python_requires=">=3.9",
description="Allows embedding of Jupyter widgets in Bokeh layouts.",
long_description=open("README.md").read(),
long_description_content_type="text/markdown",
author="Bokeh Team",
author_email="info@bokeh.org",
license="BSD-3-Clause",
url="https://github.com/bokeh/ipywidgets_bokeh",
packages=find_packages(),
classifiers=[
"License :: OSI Approved :: BSD License",
"Development Status :: 5 - Production/Stable",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Operating System :: OS Independent",
"Intended Audience :: Science/Research",
"Intended Audience :: Developers",
"Natural Language :: English",
"Topic :: Scientific/Engineering",
"Topic :: Software Development :: Libraries",
],
cmdclass={"build_js": BuildJS},
include_package_data=True,
data_files=[],
)
if __name__ == "__main__":
setup(**setup_args)