'successfully' % t) raise ValueError(msg) if 'sdist' not in sys.argv and 'bdist_wheel' not in sys.argv: return target = pjoin(HERE, NAME, 'static', 'package.json') with open(target) as fid: version = json.load(fid)['jupyterlab']['version'] if LooseVersion(version) != LooseVersion(VERSION): raise ValueError('Version mismatch, please run `build:update`') cmdclass = create_cmdclass('jsdeps', data_files_spec=data_files_spec, package_data_spec=package_data_spec, exclude=exclude) cmdclass['jsdeps'] = combine_commands( install_npm(build_cmd='build:prod', path=staging, source_dir=staging, build_dir=pjoin(HERE, NAME, 'static'), npm=npm), command_for_func(check_assets)) class JupyterlabDevelop(develop): """A custom develop command that runs yarn""" def run(self): if not skip_npm: if not which('node'): error_message = """
name: [ 'tests/files/*.*', 'tests/filters/*.py', '*.schema.json', 'webapp/static/*.*', 'webapp/templates/*.*', 'webapp/testnotebooks/*.*', 'notebook_ext/*.*', ] } data_spec = [ ('share/jupyter/nbextensions/nbdime', name + '/notebook_ext', '*.js'), ] cmdclass = create_cmdclass('js', data_files_spec=data_spec) cmdclass['js'] = combine_commands( install_npm(here), 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='*****@*****.**',
create_cmdclass, install_node_modules, run_gradle, get_version, get_data_files, here ) import os cmdclass = create_cmdclass(develop_wrappers=[ 'js', 'js-lab', 'java', 'javadoc', ], distribute_wrappers=[ 'js', 'js-lab', 'java', 'javadoc', ]) cmdclass['js'] = install_node_modules( path='../js/notebook', build_dir=os.path.join(here, '../js/notebook', 'dist'), source_dir=os.path.join(here, '../js/notebook', 'src') ) cmdclass['js-lab'] = install_node_modules( path='../js/lab', build_dir=os.path.join(here, '../js/lab', 'dist'), source_dir=os.path.join(here, '../js/lab', 'src') )
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/jupyter-graphin", nb_path, "*.js*"), ("share/jupyter/lab/extensions", lab_path, "*.tgz"), ("etc/jupyter/nbconfig/notebook.d", HERE, "jupyter-graphin.json"), ] cmdclass = create_cmdclass( "jsdeps", package_data_spec=package_data_spec, data_files_spec=data_files_spec, # noqa: E501 ) cmdclass["jsdeps"] = combine_commands( install_npm(HERE, build_cmd="build:all"), ensure_targets(jstargets), ) # Read the contents of the README file on Pypi this_directory = path.abspath(path.dirname(__file__)) with open(pjoin(this_directory, "README.md"), encoding="utf-8") as f: long_description = f.read() setup_args = dict( name=name, description=
""" Setup module for the dask_labextension """ import setuptools from setupbase import (create_cmdclass, ensure_python, find_packages) data_files_spec = [ ('etc/jupyter/jupyter_notebook_config.d', 'jupyter-config/jupyter_notebook_config.d', 'dask_labextension.json'), ] package_data_spec = {'dask_labextension': ['*.yaml']} cmdclass = create_cmdclass(package_data_spec=package_data_spec, data_files_spec=data_files_spec) setup_dict = dict( name='dask_labextension', description='A Jupyter Notebook server extension manages Dask clusters.', long_description= 'A Jupyter Notebook server extension manages Dask clusters. Meant to be used in conjunction with the dask-labextension JupyterLab extension.', packages=find_packages(), cmdclass=cmdclass, include_package_data=True, author='Jupyter Development Team', author_email='*****@*****.**', url='http://jupyter.org', license='BSD', platforms="Linux, Mac OS X, Windows", keywords=['Jupyter', 'JupyterLab', 'Dask'], python_requires='>=3.5',
import pathlib from setuptools import ( find_packages, setup, ) from setupbase import (get_version, create_cmdclass, install_npm) here = pathlib.Path('.') version_path = here.joinpath('jupyter_server', '_version.py') VERSION = get_version(str(version_path)) readme_path = here.joinpath('README.md') README = readme_path.read_text() cmdclass = create_cmdclass('jsdeps') cmdclass['jsdeps'] = install_npm() setup_args = dict( name='jupyter_server', description= 'The backend—i.e. core services, APIs, and REST endpoints—to Jupyter web applications.', long_description=README, long_description_content_type='text/markdown', version=VERSION, packages=find_packages('.', exclude=['tests*', 'docs*', 'examples*']), include_package_data=True, cmdclass=cmdclass, author='Jupyter Development Team', author_email='*****@*****.**', url='http://jupyter.org', license='BSD',
NAME = 'nbclassic' about = {} here = os.path.abspath(os.path.dirname(__file__)) project_slug = NAME.lower().replace("-", "_").replace(" ", "_") with open(os.path.join(here, project_slug, '__version__.py')) as f: exec(f.read(), about) with open("README.md", "r") as fh: long_description = fh.read() here = os.path.abspath(os.path.dirname(__file__)) # Handle datafiles cmdclass = create_cmdclass( data_files_spec=[('etc/jupyter/jupyter_server_config.d', 'jupyter_server_config.d', '*.json')]) setup_args = dict( name=NAME, description='Jupyter Notebook as a Jupyter Server Extension.', long_description=long_description, long_description_content_type="text/markdown", version=about['__version__'], packages=find_packages(exclude=['tests*']), author='Jupyter Development Team', author_email='*****@*****.**', url='http://jupyter.org', license='BSD', platforms="Linux, Mac OS X, Windows", keywords=['ipython', 'jupyter'],
from distutils import log log.set_verbosity(log.DEBUG) log.info('setup.py entered') log.info('$PATH=%s' % os.environ['PATH']) LONG_DESCRIPTION = 'A Python/ThreeJS bridge utilizing the Jupyter widget infrastructure.' here = os.path.abspath(os.path.dirname(sys.argv[0])) version_ns = {} with open(os.path.join(here, 'pythreejs', '_version.py')) as f: exec(f.read(), {}, version_ns) cmdclass = create_cmdclass(['js']) cmdclass['js'] = install_npm( path=os.path.join(here, 'js'), build_dir=os.path.join(here, 'pythreejs', 'static'), source_dir=os.path.join(here, 'js'), ) setup_args = { 'name': 'pythreejs', 'version': version_ns['__version__'], 'description': 'Interactive 3d graphics for the Jupyter notebook, using Three.js from Jupyter interactive widgets.', 'long_description': LONG_DESCRIPTION,
ABOUT = dict() exec(Path(HERE, NAME, '__about__.py').read_text(), ABOUT) README: str = Path(HERE, "README.rst").read_text(encoding='utf-8') REQUIREMENTS: list = Path(HERE, 'requirements.txt').read_text().splitlines() log.set_verbosity(log.DEBUG) log.info('setup.py entered') log.info('$PATH=%s' % os.environ['PATH']) cmdclass = create_cmdclass( 'js', data_files_spec=[ ('share/jupyter/nbextensions/jupyter-require', NAME + '/static', '*.js'), ('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
('etc/jupyter/jupyter_notebook_config.d', 'jupyter-config/jupyter_notebook_config.d', 'jupyterlab_git.json'), ] def runPackLabextension(): if Path('package.json').is_file(): try: run(['jlpm', 'build:labextension']) except CalledProcessError: pass pack_labext = command_for_func(runPackLabextension) cmdclass = create_cmdclass('pack_labext', data_files_spec=data_files_spec) cmdclass['pack_labext'] = pack_labext cmdclass.pop('develop') with open("README.md", "r") as fh: long_description = fh.read() setup_args = dict( name=name, description="A server extension for JupyterLab's git extension", long_description=long_description, long_description_content_type="text/markdown", version=version, cmdclass=cmdclass, packages=setuptools.find_packages(), author='Jupyter Development Team',
name = 'pythreejs' py_path = (HERE / name) js_path = (HERE / "js") lab_path = (py_path / "labextension") version = get_version(HERE / name / '_version.py') cmdclass = create_cmdclass( 'js', data_files_spec=[ # Support JupyterLab 3.x prebuilt extension ("share/jupyter/labextensions/jupyter-threejs", str(lab_path), "**"), ("share/jupyter/labextensions/jupyter-threejs", str(HERE), "install.json"), # Support JupyterLab 2.x ('share/jupyter/lab/extensions', str(js_path / 'lab-dist'), 'jupyter-threejs-*.tgz'), # 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'),
data_spec = [ ('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',
pjoin = os.path.join here = os.path.abspath(os.path.dirname(__file__)) name = 'jupyterlab_discovery' ensure_python(('== (2.7)', '> (3, 3)')) package_data = {name: []} version = get_version(pjoin(here, name, '_version.py')) cmdclass = create_cmdclass( 'js', 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'), ]), )
log.set_verbosity(log.DEBUG) log.info('setup.py entered') log.info('$PATH=%s' % os.environ['PATH']) LONG_DESCRIPTION = 'A Python/ThreeJS bridge utilizing the Jupyter widget infrastructure.' here = os.path.abspath(os.path.dirname(sys.argv[0])) name = 'pythreejs' version = get_version(os.path.join(here, name, '_version.py')) cmdclass = create_cmdclass( 'js', 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',
"sagemaker_run_notebook.json", ), ] def runPackLabextension(): if (lab_path / "package.json").is_file(): try: run(["jlpm", "build:labextension"], cwd=str(lab_path)) except CalledProcessError: pass pack_labext = command_for_func(runPackLabextension) cmdclass = create_cmdclass("pack_labext", data_files_spec=data_files_spec) cmdclass["pack_labext"] = pack_labext cmdclass.pop("develop") with open("README.md", "r") as fh: long_description = fh.read() required_packages = ["boto3>=1.10.44"] setuptools.setup( name=name, version=version, author="Amazon Web Services", description="Schedule notebooks to run using SageMaker processing jobs", long_description=long_description, long_description_content_type="text/markdown",
from setuptools import setup from setupbase import create_cmdclass, install_npm cmdclass = create_cmdclass(['labextension', 'nbextension']) cmdclass['labextension'] = install_npm('labextension') cmdclass['nbextension'] = install_npm('nbextension') setup_args = dict( name = 'jupyterlab_geojson', version = '0.18.0', packages = ['jupyterlab_geojson'], author = 'Grant Nestor', author_email = '*****@*****.**', url = 'http://jupyter.org', license = 'BSD', platforms = "Linux, Mac OS X, Windows", keywords = [ 'ipython', 'jupyter', 'jupyterlab', 'extension', 'renderer', 'geojson' ], classifiers = [ 'Intended Audience :: Developers', 'Intended Audience :: System Administrators', 'Intended Audience :: Science/Research', 'License :: OSI Approved :: BSD License', 'Programming Language :: Python', 'Programming Language :: Python :: 2.7',
jstargets = [ os.path.join(here, name, 'nbextension', 'static', 'extension.js'), os.path.join(here, name, 'nbextension', 'static', 'index.js'), os.path.join(here, 'packages', 'jlabextension', 'build', 'index.js'), ] version_ns = {} with io.open(pjoin(here, name, '_version.py'), encoding="utf8") as f: exec(f.read(), {}, version_ns) cmdclass = create_cmdclass( 'js', data_files_spec=[ ('share/jupyter/nbextensions/jupyter-datawidgets', name + '/nbextension/static', '*.js'), ('share/jupyter/nbextensions/jupyter-datawidgets', name + '/nbextension/static', '*.js.map'), ('share/jupyter/lab/extensions', 'packages/jlabextension/dist', 'jupyterlab-datawidgets-*.tgz'), ('etc/jupyter/nbconfig', 'jupyter-config', '**/*.json'), ], ) cmdclass['js'] = combine_commands( install_npm(here), ensure_targets(jstargets), ) setup_args = dict( name=name, description= "A set of widgets to help facilitate reuse of large datasets across widgets", version=version_ns['__version__'],
lab_path = pjoin(name, 'labextension') local_nbdotd_path = pjoin('jupyter.d', 'notebook.d') local_jnbcfgdotd_path = pjoin('jupyter.d', 'jupyter_notebook_config.d') data_files_spec = [ ('share/jupyter/nbextensions/pywwt', nb_path, '*.js*'), ('share/jupyter/nbextensions/pywwt', nb_path, '*.html'), ('share/jupyter/lab/extensions', lab_path, '*.tgz'), ('etc/jupyter/nbconfig/notebook.d', local_nbdotd_path, 'pywwt.json'), ('etc/jupyter/jupyter_notebook_config.d', local_jnbcfgdotd_path, 'pywwt.json'), ] cmdclass = create_cmdclass('js-content', package_data_spec=package_data_spec, data_files_spec=data_files_spec) cmdclass['js-content'] = js_content_command # Ready to go! setup_args = dict( name=name, description='The AAS WorldWide Telescope from Python', long_description=LONG_DESCRIPTION, long_description_content_type='text/markdown', version=version, cmdclass=cmdclass, packages=find_packages(), author='Thomas P. Robitaille, O. Justin Otor, and John ZuHone', author_email='*****@*****.**',
msg = ('Missing file: %s, `build:prod` script did not complete ' 'successfully' % t) raise ValueError(msg) if 'sdist' not in sys.argv and 'bdist_wheel' not in sys.argv: return target = pjoin(HERE, NAME, 'static', 'package.json') with open(target) as fid: version = json.load(fid)['jupyterlab']['version'] if LooseVersion(version) != LooseVersion(VERSION): raise ValueError('Version mismatch, please run `build:update`') cmdclass = create_cmdclass('jsdeps', data_files_spec=data_files_spec, package_data_spec=package_data_spec) cmdclass['jsdeps'] = combine_commands( install_npm(build_cmd='build:prod', path=staging, source_dir=staging, build_dir=pjoin(HERE, NAME, 'static'), npm=npm), command_for_func(check_assets) ) class JupyterlabDevelop(develop): """A custom develop command that runs yarn""" def run(self): if not skip_npm: if not which('node'): log.error('Please install nodejs and npm before continuing installation. nodejs may be installed using conda or directly from the nodejs website.') return
# # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. from setuptools import setup, find_packages from setupbase import create_cmdclass, install_node_modules, install_nb_conda_kernels, copy_files, run_gradle, get_version import os from os.path import join as pjoin cmdclass = create_cmdclass([ 'js', 'nb_conda_kernels', 'nb_custom_css', 'java', 'kernels', ]) cmdclass['js'] = install_node_modules(path=pjoin('js'), build_dir=pjoin('js', 'dist'), source_dir=pjoin('js', 'src')) cmdclass['nb_conda_kernels'] = install_nb_conda_kernels( enable=True, prefix=os.environ['CONDA_PREFIX']) cmdclass['nb_custom_css'] = copy_files(src='custom', dest=pjoin(os.environ['CONDA_PREFIX'], 'lib', 'python3.5', 'site-packages', 'notebook', 'static', 'custom')) cmdclass['java'] = run_gradle(cmd='build') cmdclass['kernels'] = run_gradle(cmd='kernelInstall')
LONG_DESCRIPTION = 'A Python/ThreeJS bridge utilizing the Jupyter widget infrastructure.' here = os.path.abspath(os.path.dirname(sys.argv[0])) name = 'pythreejs' version = get_version(os.path.join(here, name, '_version.py')) cmdclass = create_cmdclass( 'js', data_files_spec=[ ('share/jupyter/nbextensions/jupyter-threejs', name + '/static', '*.js'), ('share/jupyter/nbextensions/jupyter-threejs', name + '/static', '*.js.map'), ('share/jupyter/lab/extensions', 'js/lab-dist', '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' ),
js_exists = False jstargets = [pjoin(nb_path, 'index.js'), pjoin(nb_path, 'extension.js')] package_data_spec = { name: ['nbextension/static/*.js*', 'labextension/*.tgz', 'server/*.html'] } data_files_spec = [('share/jupyter/nbextensions/algorithmx-jupyter', nb_path, '*.js*'), ('share/jupyter/lab/extensions', lab_path, '*.tgz'), ('etc/jupyter/nbconfig/notebook.d', HERE, 'algorithmx-jupyter -config.json')] cmdclass = create_cmdclass('js' if js_exists else None, package_data_spec=package_data_spec, data_files_spec=data_files_spec) cmdclass['js'] = combine_commands( install_npm(path=js_path, build_dir=nb_path, source_dir=js_path, build_cmd='build'), ensure_targets(jstargets)) setup_args = dict( name=name, description='A library for network visualization and algorithm simulation.', version=version, scripts=glob(pjoin('scripts', '*')), cmdclass=cmdclass, packages=find_packages(), author='Alex Socha',
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. from setuptools import setup, find_packages # from setuptools.command.build_py import build_py from setuptools.command.develop import develop from setuptools.command.sdist import sdist from setuptools.command.bdist_egg import bdist_egg from setupbase import (create_cmdclass, install_node_modules, update_kernelspec_class, install_kernels, copy_files, run_gradle, get_version, get_data_files, here) import os from os.path import join as pjoin cmdclass = create_cmdclass( ['js', 'java', 'kernels', 'kernelspec_class', 'custom_css']) cmdclass['js'] = install_node_modules(path='js', build_dir=pjoin(here, 'js', 'dist'), source_dir=pjoin(here, 'js', 'src')) cmdclass['java'] = run_gradle(cmd='build') cmdclass['kernels'] = install_kernels( pjoin(here, 'beakerx', 'static', 'kernel')) cmdclass['kernelspec_class'] = update_kernelspec_class( enable=True, prefix=os.environ['CONDA_PREFIX']) cmdclass['custom_css'] = copy_files(src=pjoin(here, 'custom'), dest=pjoin(os.environ['CONDA_PREFIX'], 'lib', 'python3.5', 'site-packages', 'notebook', 'static', 'custom')) setup_args = dict(
here = os.path.abspath(os.path.dirname(__file__)) nbextension = pjoin(here, name, 'nbextension') labextension = pjoin(here, name, 'labextension') # Representative files that should exist after a successful build jstargets = [ pjoin(nbextension, 'extension.js'), pjoin(here, 'lib', 'lab_extension.js'), ] version_ns = {} with io.open(pjoin(here, name, '_version.py'), encoding="utf8") as f: exec(f.read(), {}, version_ns) cmdclass = create_cmdclass(('jsdeps', )) cmdclass['jsdeps'] = combine_commands( install_npm(here, build_cmd='build:all'), ensure_targets(jstargets), ) package_data = {name: ['nbextension/*.*js*', 'labextension/*.tgz']} data_files = expand_data_files([('share/jupyter/nbextensions/jupyter_francy', [pjoin(nbextension, '*.js*')]), ('share/jupyter/lab/extensions', [pjoin(labextension, '*.tgz')])]) setup_args = dict(name=name, version=version_ns['__version__'], scripts=glob(pjoin('scripts', '*')),
log.set_verbosity(log.DEBUG) log.info('setup.py entered') log.info('$PATH=%s' % os.environ['PATH']) 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':
setup_args = dict( name='jupyterlab_server', version=__version__, packages=find_packages('.'), description='JupyterLab Server', long_description=""" This package is used to launch an application built using JupyterLab """, author='Jupyter Development Team', author_email='*****@*****.**', url='http://jupyter.org', license='BSD', platforms='Linux, Mac OS X, Windows', keywords=['Jupyter', 'JupyterLab'], cmdclass=create_cmdclass(), classifiers=[ 'Intended Audience :: Developers', 'Intended Audience :: System Administrators', 'Intended Audience :: Science/Research', 'License :: OSI Approved :: BSD License', 'Programming Language :: Python', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', ], include_package_data=True ) if 'setuptools' in sys.modules: setup_args['python_requires'] = '>=3.5'
""" Setup module for the share proxy extension """ import setuptools from setupbase import ( create_cmdclass, ensure_python, find_packages ) data_files_spec = [ ('etc/jupyter/jupyter_notebook_config.d', 'jupyter-config/jupyter_notebook_config.d', 'jupyterlab-gcloud-auth.json'), ] requires = [line.strip() for line in open('requirements.txt').readlines() if not line.startswith("#")] cmdclass = create_cmdclass(data_files_spec=data_files_spec) setup_dict = dict( name='jupyterlab_gcloud_auth', description='Plugin that allows to run gclout auth directly from the Notebooks.', packages=find_packages(), cmdclass=cmdclass, author = 'Viacheslav Kovalevskyi', author_email = '*****@*****.**', license = 'MIT', platforms = "Linux, Mac OS X, Windows", keywords = ['Jupyter', 'JupyterLab', 'GitHub', 'GCP'], python_requires = '>=3.5', classifiers = [ 'Intended Audience :: Developers', 'Intended Audience :: System Administrators',
# You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. import os from setuptools import setup, find_packages from setupbase import (create_cmdclass, run_gradle, get_version) cmdclass = create_cmdclass(develop_wrappers=['java'], distribute_wrappers=['java']) cmdclass['java'] = run_gradle(cmd='install', skip_tests=False) setup_args = dict( name='beakerx_kernel_groovy', description='BeakerX: Beaker Extensions for Jupyter Notebook', long_description='BeakerX: Beaker Extensions for Jupyter Notebook', version=get_version(os.path.join('beakerx_groovy', '_version.py')), author='Two Sigma Open Source, LLC', author_email='*****@*****.**', url='http://beakerx.com', keywords=[ 'ipython', 'jupyter', 'widgets',
# 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/ipysegment', nb_path, '*.js*'), ('share/jupyter/lab/extensions', lab_path, '*.tgz'), ('etc/jupyter/nbconfig/notebook.d', HERE, 'ipysegment.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='manual image segmentation in jupyter', version=version, scripts=glob(pjoin('scripts', '*')), cmdclass=cmdclass, packages=find_packages(), author='Ian Hunt-Isaak', author_email='*****@*****.**',
# # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. from setuptools import setup, find_packages from setupbase import (create_cmdclass, install_node_modules, update_kernelspec_class, install_kernels, copy_files, run_gradle, get_version, get_data_files, here) import os cmdclass = create_cmdclass(develop_wrappers=[ 'js', 'java', 'kernels_develop', 'kernelspec_class', 'custom_css' ], distribute_wrappers=['js', 'java'], install_wrappers=['kernelspec_class', 'custom_css']) cmdclass['js'] = install_node_modules( path='js', build_dir=os.path.join(here, 'js', 'dist'), source_dir=os.path.join(here, 'js', 'src')) cmdclass['java'] = run_gradle(cmd='build') cmdclass['kernels_develop'] = install_kernels( source_dir=os.path.join(here, 'beakerx', 'static', 'kernel'), target_dir=os.path.join(here, 'beakerx', 'static', 'kernel')) cmdclass['kernelspec_class'] = update_kernelspec_class( prefix=os.environ['CONDA_PREFIX']) cmdclass['custom_css'] = copy_files( src=os.path.join(here, 'beakerx', 'static', 'custom'), dest=os.path.join(os.environ['CONDA_PREFIX'], 'lib', 'python3.5',