] } data_files_spec = [ ('share/jupyter/nbextensions/ipycanvas', nb_path, '*.js*'), ('share/jupyter/lab/extensions', lab_path, '*.tgz'), ('etc/jupyter/nbconfig/notebook.d' , HERE, 'ipycanvas.json') ] cmdclass = create_cmdclass('jsdeps', package_data_spec=package_data_spec, data_files_spec=data_files_spec) cmdclass['jsdeps'] = combine_commands( install_npm(HERE, build_cmd='build:all'), ensure_targets(jstargets), ) setup_args = dict( name=name, description='Interactive widgets library exposing the browser\'s Canvas API', version=version, scripts=glob(pjoin('scripts', '*')), cmdclass=cmdclass, packages=find_packages(), author='Martin Renou', author_email='*****@*****.**', url='https://github.com/martinRenou/ipycanvas', license='BSD', platforms="Linux, Mac OS X, Windows",
] package_data_spec = {name: ["*"]} data_files_spec = [ ("share/jupyter/lab/extensions", lab_path, "*.tgz"), ( "etc/jupyter/jupyter_notebook_config.d", "jupyter-config/jupyter_notebook_config.d", "jupyter_archive.json", ), ] cmdclass = create_cmdclass("jsdeps", package_data_spec=package_data_spec, data_files_spec=data_files_spec) cmdclass["jsdeps"] = combine_commands(install_npm(HERE, build_cmd="build:all"), ensure_targets(jstargets),) setup( name=name.replace("_", "-"), version=version, author="Hadrien Mary", author_email="*****@*****.**", url="https://github.com/hadim/jupyter-archive/", description="A Jupyter/Jupyterlab extension to make, download and extract archive files.", long_description_content_type="text/markdown", cmdclass=cmdclass, packages=find_packages(), classifiers=[ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "Natural Language :: English",
'jupyter-threejs-*.tgz'), ('etc/jupyter/nbconfig', 'jupyter-config', '**/*.json'), ], ) cmdclass['js'] = combine_commands( install_npm( path=os.path.join(here, 'js'), build_dir=os.path.join(here, name, 'static'), source_dir=os.path.join(here, 'js'), build_cmd='build:all' ), ensure_targets([ name + '/static/extension.js', name + '/static/index.js', 'js/src/core/BufferAttribute.autogen.js', name + '/core/BufferAttribute_autogen.py', ]), ) setup_args = { 'name': name, 'version': version, 'description': 'Interactive 3d graphics for the Jupyter notebook, using Three.js from Jupyter interactive widgets.', 'long_description': LONG_DESCRIPTION, 'license': 'BSD', 'include_package_data': True, 'install_requires': [ 'ipywidgets>=7.2.1', 'ipydatawidgets>=1.1.1', 'numpy',
LONG_DESCRIPTION = 'Jupyter notebook extension for 3D visualization.' # Representative files that should exist after a successful build targets = [ os.path.join(here, 'k3d', 'static', 'standalone.js'), os.path.join(here, 'k3d', 'static', 'snapshot_standalone.txt'), os.path.join(here, 'k3d', 'static', 'snapshot_online.txt'), os.path.join(here, 'k3d', 'static', 'extension.js'), os.path.join(here, 'k3d', 'static', 'index.js') ] cmdclass = create_cmdclass(wrappers=[] if skip_npm else ['jsdeps'], data_dirs=[]) cmdclass['jsdeps'] = combine_commands(install_npm(node_root), ensure_targets(targets)) version_ns = {} with open(os.path.join(here, 'k3d', '_version.py')) as f: exec(f.read(), {}, version_ns) setup_args = { 'name': 'K3D', 'version': version_ns['__version__'], 'license': 'MIT', 'description': 'Jupyter notebook extension for 3D visualization.', 'long_description':
'*.js'), ('share/jupyter/nbextensions/jupyter-threejs', name + '/static', '*.js.map'), ('share/jupyter/lab/extensions', 'js/lab-dist', 'jupyter-threejs-*.tgz'), ], ) cmdclass['js'] = combine_commands( install_npm(path=os.path.join(here, 'js'), build_dir=os.path.join(here, name, 'static'), source_dir=os.path.join(here, 'js'), build_cmd='build:all'), ensure_targets([ name + '/static/extension.js', name + '/static/index.js', 'js/src/core/BufferAttribute.autogen.js', name + '/core/BufferAttribute_autogen.py', 'docs/source/_static/jupyter-threejs.js', 'docs/source/_static/three.js', ]), ) setup_args = { 'name': name, 'version': version, 'description': 'Interactive 3d graphics for the Jupyter notebook, using Three.js from Jupyter interactive widgets.', 'long_description': LONG_DESCRIPTION, 'license':
jstargets = [ pjoin(HERE, "lib", "plugin.js"), ] package_data_spec = {name: ["labextension/*.tgz"]} data_files_spec = [ ("share/jupyter/lab/extensions", lab_path, "*.tgz"), ] cmdclass = create_cmdclass( "jsdeps", package_data_spec=package_data_spec, data_files_spec=data_files_spec ) cmdclass["jsdeps"] = combine_commands( install_npm(HERE, build_cmd="build"), ensure_targets(jstargets), ) setup_args = dict( name=name, description="Control JupyterLab from Python notebooks", version=version, scripts=glob(pjoin("scripts", "*")), cmdclass=cmdclass, packages=find_packages(), author="Jeremy Tuloup", author_email="*****@*****.**", url="https://github.com/jtpio/ipylab", license="BSD", platforms="Linux, Mac OS X, Windows",
# Support Jupyter Notebook ('etc/jupyter/nbconfig', str(HERE / 'jupyter-config'), '**/*.json'), ('share/jupyter/nbextensions/jupyter-threejs', str(py_path / 'static'), '**/*.js'), ('share/jupyter/nbextensions/jupyter-threejs', str(py_path / 'static'), '**/*.js.map') ], ) cmdclass['js'] = combine_commands( install_npm(path=str(js_path), build_dir=str(py_path / 'static'), source_dir=str(js_path), build_cmd='build:all'), ensure_targets([ str(py_path / 'static' / 'extension.js'), str(py_path / 'static' / 'index.js'), str(js_path / 'src' / 'core' / 'BufferAttribute.autogen.js'), str(py_path / 'core' / 'BufferAttribute_autogen.py'), ]), ) setup_args = { 'name': name, 'version': version, 'description': ('Interactive 3D graphics for the Jupyter Notebook and JupyterLab, ' 'using Three.js and Jupyter Widgets.'), 'long_description': (HERE / "README.md").read_text(encoding="utf-8"), 'long_description_content_type': 'text/markdown',
('share/jupyter/nbextensions/jupyter-require', NAME + '/static', '*.js.map'), ('etc/jupyter/nbconfig', 'jupyter-config', '**/*.json'), ], ) cmdclass['js'] = combine_commands( # FIXME when migrated to node.js # install_npm( # path=Path(HERE, 'js'), # build_dir=Path(HERE, NAME, 'static'), # source_dir=Path(HERE, 'js'), # build_cmd='build:all' # ), ensure_targets([ NAME + '/static/core.js', # FIXME when migrated to nodes.js NAME + '/static/display.js', # FIXME when migrated to nodes.js NAME + '/static/extension.js', # NAME + '/static/index.js', # FIXME when migrated to nodes.js ]), ) setup(name=ABOUT['__title__'], version=ABOUT['__version__'], author=ABOUT['__author__'], author_email=ABOUT['__email__'], url=ABOUT['__uri__'], license=ABOUT['__license__'], description=ABOUT['__summary__'], long_description=README, long_description_content_type='text/x-rst', classifiers=[ "Development Status :: 2 - Pre-Alpha", "Framework :: IPython", "Framework :: Jupyter", "License :: OSI Approved :: MIT License",
('share/jupyter/nbextensions/nbdime', name + '/notebook_ext', '*.js'), ('share/jupyter/lab/extensions', 'packages/labextension/dist', 'nbdime-jupyterlab-*.tgz'), ('etc/jupyter', 'jupyter-config', '**/*.json'), ] cmdclass = create_cmdclass('js', data_files_spec=data_spec) cmdclass['js'] = combine_commands( install_npm(here, build_targets=jstargets, sources=packages_dir), ensure_targets(jstargets), ) setup_args = dict( name = name, description = "Diff and merge of Jupyter Notebooks", version = version, scripts = glob(pjoin('scripts', '*')), cmdclass = cmdclass, packages = find_packages(here), package_data = package_data, author = 'Jupyter Development Team', author_email = '*****@*****.**', url = 'http://jupyter.org', license = 'BSD',
data_files_spec=[ ('share/jupyter/lab/extensions', 'lab-dist', '*.tgz'), ('etc/jupyter/jupyter_notebook_config.d', 'jupyter-config/jupyter_notebook_config.d', 'jupyterlab-discovery.json'), ], ) cmdclass['js'] = combine_commands( install_npm( path=here, build_dir=os.path.join(here, 'lib'), source_dir=os.path.join(here, 'src'), build_cmd='build:labextension', ), ensure_targets([ pjoin(here, 'lib', 'plugin.js'), ]), ) setup_args = dict( name=name, description= "A JupyterLab extension to facilitate the discovery and installation of other extensions", version=version, scripts=glob(pjoin('scripts', '*')), cmdclass=cmdclass, packages=find_packages(here), package_data=package_data, install_requires=[ 'jupyterlab', 'tornado',
data_files_spec=[ ('share/jupyter/nbextensions/jupyter-threejs', [ name + '/static/*.js', name + '/static/*.js.map', ]), ], ) cmdclass['js'] = combine_commands( install_npm( path=os.path.join(here, 'js'), build_dir=os.path.join(here, name, 'static'), source_dir=os.path.join(here, 'js'), ), ensure_targets([ name + '/static/extension.js', name + '/static/index.js', 'js/src/core/BufferAttribute.autogen.js', name + '/core/BufferAttribute_autogen.py', ]), ) setup_args = { 'name': name, 'version': version, 'description': 'Interactive 3d graphics for the Jupyter notebook, using Three.js from Jupyter interactive widgets.', 'long_description': LONG_DESCRIPTION, 'license': 'BSD',
# Representative files that should exist after a successful build jstargets = [ pjoin(nb_path, 'index.js'), pjoin(HERE, 'lib', 'plugin.js'), ] package_data_spec = {name: ['nbextension/static/*.*js*', 'labextension/*.tgz']} data_files_spec = [('share/jupyter/nbextensions/sanddance', nb_path, '*.js*'), ('share/jupyter/lab/extensions', lab_path, '*.tgz'), ('etc/jupyter/nbconfig/notebook.d', HERE, 'sanddance.json')] cmdclass = create_cmdclass('jsdeps', package_data_spec=package_data_spec, data_files_spec=data_files_spec) cmdclass['jsdeps'] = combine_commands(ensure_targets(jstargets), ) with open("README.md", "r") as fh: long_description = fh.read() setup_args = dict( name=name, description='SandDance data exploration Jupyter Widget', version=version, scripts=glob(pjoin('scripts', '*')), cmdclass=cmdclass, packages=find_packages(), url='https://github.com/microsoft/SandDance/python/jupyter-widget', license='MIT', platforms="Linux, Mac OS X, Windows", keywords=['Jupyter', 'Widgets', 'IPython'],
with io.open('README.md', encoding='utf_8') as f: LONG_DESCRIPTION = f.read() # Wire up the NPM build to the Python package build -- we generate JavaScript # artifacts from the `frontend/` package and then include them as data assets in # the pywwt Python package. nb_path = pjoin(name, 'nbextension', 'static') js_outputs = [ pjoin(nb_path, 'index.js'), ] js_content_command = combine_commands( install_npm('frontend', build_cmd='pywwt-export'), ensure_targets(js_outputs), ) # Custom "command class" that (1) makes sure to create the JS content, (2) # includes that content as extra "package data" in the Python package, and (3) # can install special metadata files in the Python environment root. package_data_spec = { name: [ 'interactive_figure/*.html', 'interactive_figure/*.js', 'labextension/*.tgz', 'nbextension/static/*.*js*', 'tests/data/*/*.png', 'tests/data/*.fits', 'web_static/**',