コード例 #1
0
ファイル: setup.py プロジェクト: saraedum/flatsurf-widgets
# Representative files that should exist after a successful build
jstargets = [
    pjoin(js_dir, 'dist', 'index.js'),
]

data_files_spec = [
    ('share/jupyter/nbextensions/ipyvue-flatsurf', 'ipyvue_flatsurf/nbextension', '*.*'),
    ('share/jupyter/labextensions/ipyvue-flatsurf', 'ipyvue_flatsurf/labextension', "**"),
    ("share/jupyter/labextensions/ipyvue-flatsurf", '.', "install.json"),
    ('etc/jupyter/nbconfig/notebook.d', '.', 'ipyvue-flatsurf.json'),
]

cmdclass = create_cmdclass('jsdeps', data_files_spec=data_files_spec)
cmdclass['jsdeps'] = combine_commands(
    install_npm(js_dir, npm=['yarn'], build_cmd='build:prod'), ensure_targets(jstargets),
)

setup_args = dict(
    name='ipyvue-flatsurf',
    version="0.5.5",
    description='Visualizations for Translations Surfaces in Jupyter Notebooks and JupyterLab',
    long_description='Visualizations for sage-flatsurf and pyflatsurf.',
    include_package_data=True,
    install_requires=[
        'ruamel.yaml>=0.17.10,<0.18',
        'sage-flatsurf>=0.4.4,<0.5',
        'pyflatsurf>=3.9.0,<4',
        'ipyvue-async>=0.1.0,<0.2',
        'jupyter-ui-poll>=0.2.1,<0.3',
        # We can only use versions of ipyvue that bundle the version of vue that
コード例 #2
0
dev_requires = requires + [
    'pytest', 'pytest-cov', 'pylint', 'flake8', 'bump2version', 'autopep8',
    'mock'
]

data_spec = [
    # Lab extension installed by default:
    ('share/jupyter/lab/extensions', 'lab-dist', 'jupyterlab_powerpoint-*.tgz'
     ),
    # Config to enable server extension by default:
    ('etc/jupyter', 'jupyter-config', '**/*.json'),
]

cmdclass = create_cmdclass('js', data_files_spec=data_spec)
cmdclass['js'] = combine_commands(
    install_npm(jshere, build_cmd='build:all'),
    ensure_targets([
        pjoin(jshere, 'lib', 'index.js'),
        pjoin(jshere, 'style', 'index.css')
    ]),
)

setup(
    name=name,
    version=version,
    description='Create powerpoints from jupyter notebooks',
    long_description=long_description,
    long_description_content_type='text/markdown',
    url='https://github.com/timkpaine/jupyterlab_powerpoint',
    author='Tim Paine',
    author_email='*****@*****.**',
コード例 #3
0
        "etc/jupyter/nbconfig/notebook.d",
        HERE,
        "{{ cookiecutter.python_package_name }}.json",
    ),
]

if os.environ.get("READTHEDOCS", None) == "True":
    # On RTD, skip JS build to save resources
    import jupyter_packaging
    jupyter_packaging.skip_npm = True

cmdclass = create_cmdclass("jsdeps",
                           package_data_spec=package_data_spec,
                           data_files_spec=data_files_spec)
cmdclass["jsdeps"] = combine_commands(
    install_npm(js_path, build_cmd="build:all"), ensure_targets(jstargets))

setup_args = dict(
    name=name,
    description="{{ cookiecutter.project_short_description }}",
    version=version,
    scripts=glob(pjoin("scripts", "*")),
    cmdclass=cmdclass,
    packages=find_packages(HERE),
    author="{{ cookiecutter.author_name }}",
    author_email="{{ cookiecutter.author_email }}",
    url=
    "https://github.com/{{ cookiecutter.github_organization_name }}/{{ cookiecutter.github_project_name }}",
    license="BSD",
    platforms="Linux, Mac OS X, Windows",
    keywords=["Jupyter", "Widgets", "IPython"],
コード例 #4
0
        "jupyter-config/jupyter_notebook_config.d",
        "jupyter_resource_usage.json",
    ),
    (
        "etc/jupyter/nbconfig/notebook.d",
        "jupyter-config/nbconfig/notebook.d",
        "jupyter_resource_usage.json",
    ),
]

cmdclass = create_cmdclass("jsdeps",
                           package_data_spec=package_data_spec,
                           data_files_spec=data_files_spec)

js_command = combine_commands(
    install_npm(src_path, build_cmd="build:prod", npm=["jlpm"]),
    ensure_targets(jstargets),
)

is_repo = os.path.exists(os.path.join(HERE, ".git"))
if is_repo:
    cmdclass["jsdeps"] = js_command
else:
    cmdclass["jsdeps"] = skip_if_exists(jstargets, js_command)

with open("README.md", "r") as fh:
    long_description = fh.read()

setuptools.setup(
    name=NAME,
    version="0.5.1",
コード例 #5
0
ファイル: setup.py プロジェクト: ananis25/jupyterlab-classic
        "jupyter-config/jupyter_server_config.d",
        "jupyterlab_classic.json",
    ),
    (
        "etc/jupyter/jupyter_notebook_config.d",
        "jupyter-config/jupyter_notebook_config.d",
        "jupyterlab_classic.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="install", npm=["jlpm"]),
    install_npm(HERE, build_cmd="build", npm=["jlpm"]),
    install_npm(main_bundle_source, build_cmd="build:prod", npm=["jlpm"]),
    ensure_targets(jstargets),
)

with open("README.md", "r") as fh:
    long_description = fh.read()

setup_args = dict(
    name=NAME,
    version=version,
    url="https://github.com/jtpio/jupyterlab-classic",
    author="Jeremy Tuloup",
    description="The next gen old-school Notebook UI",
    long_description=long_description,
コード例 #6
0
version = '3.0.2'
name = 'test_no_hyphens'
module_name = 'test_no_hyphens'
lab_ext_name = 'test_no_hyphens'

HERE = path.abspath(path.dirname(__file__))
lab_path = path.join(HERE, module_name, 'labextension')

# Representative files that should exist after a successful build
jstargets = [
    path.join(lab_path, 'package.json'),
]

package_data_spec = {module_name: ['labextension/*']}

data_files_spec = [("share/jupyter/labextensions/" + lab_ext_name, lab_path,
                    "**")]

cmdclass = create_cmdclass('js',
                           package_data_spec=package_data_spec,
                           data_files_spec=data_files_spec)
cmdclass['js'] = combine_commands(
    install_npm(path=path.join(HERE),
                npm=["jlpm"],
                build_cmd="build:labextension"),
    ensure_targets(jstargets),
)

setup(name=name, version=version, packages=[module_name], cmdclass=cmdclass)
コード例 #7
0
]

data_spec = [
    # Lab extension installed by default:
    (
        "share/jupyter/labextensions/jupyterlab_commands",
        "jupyterlab_commands/labextension",
        "**",
    ),
    # Config to enable server extension by default:
    ("etc/jupyter/jupyter_server_config.d", "jupyter-config", "*.json"),
]

cmdclass = create_cmdclass("js", data_files_spec=data_spec)
cmdclass["js"] = combine_commands(
    install_npm(jshere, build_cmd="build:all"),
    ensure_targets([
        pjoin(jshere, "lib", "index.js"),
        pjoin(jshere, "style", "index.css"),
        pjoin(here, "jupyterlab_commands", "labextension", "package.json"),
    ]),
)

setup(
    name=name,
    version=version,
    description="Arbitrary python commands for notebooks in JupyterLab",
    long_description=long_description,
    long_description_content_type="text/markdown",
    url="https://github.com/timkpaine/jupyterlab_commands",
    author="Tim Paine",
コード例 #8
0
    ("share/jupyter/labextensions/%s" % labext_name, str(lab_path), "**"),
    ("share/jupyter/labextensions/%s" % labext_name, str(HERE), "install.json"),
    # Jupyter Notebook
    ("etc/jupyter/nbconfig", str(HERE / "jupyter-config"), "**/*.json"),
    ("share/jupyter/nbextensions/jupyter_cadquery", str(py_path / "nbextension"), "**/*.js"),
    ("share/jupyter/nbextensions/jupyter_cadquery", str(py_path / "nbextension"), "**/*.js.map"),
]

cmdclass = create_cmdclass(
    "jsdeps", package_data_spec=package_data_spec, data_files_spec=data_files_spec
)

cmdclass["jsdeps"] = combine_commands(
    install_npm(
        path=str(js_path),
        npm=["yarn"],
        build_cmd="build:prod",
    ),
    ensure_targets(
        [
            str(py_path / "nbextension" / "extension.js"),
            str(py_path / "nbextension" / "index.js"),
        ]
    ),
)

long_description = (HERE / "README.md").read_text()

# Get the package info from package.json
pkg_json = json.loads((HERE / "package.json").read_bytes())
コード例 #9
0
js_dir = os.path.join(here, 'js')

# Representative files that should exist after a successful build
jstargets = [
    os.path.join(js_dir, 'dist', 'index.js'),
]

data_files_spec = [
    ('share/jupyter/nbextensions/jupyter-leaflet', 'ipyleaflet/nbextension', '*.*'),
    ('share/jupyter/labextensions/jupyter-leaflet', 'ipyleaflet/labextension', "**"),
    ('etc/jupyter/nbconfig/notebook.d', '.', 'jupyter-leaflet.json'),
]

cmdclass = create_cmdclass('jsdeps', data_files_spec=data_files_spec)
cmdclass['jsdeps'] = combine_commands(
    install_npm(js_dir, build_cmd='build'), ensure_targets(jstargets),
)


setup_args = dict(
    name=name,
    version=version,
    description='A Jupyter widget for dynamic Leaflet maps',
    long_description=long_description,
    license='MIT License',
    include_package_data=True,
    install_requires=[
        'ipywidgets>=7.6.0,<8',
        'traittypes>=0.2.1,<3',
        'branca>=0.3.1,<0.5',
        'shapely',
コード例 #10
0
# Representative files that should exist after a successful build
jstargets = [
    os.path.join('ipytree/nbextension', 'index.js'),
    os.path.join('ipytree/labextension', 'package.json'),
]

data_files_spec = [
    ('share/jupyter/nbextensions/ipytree', 'ipytree/nbextension', '**'),
    ('share/jupyter/labextensions/ipytree', 'ipytree/labextension', "**"),
    ('etc/jupyter/nbconfig/notebook.d', '.', 'ipytree.json'),
]

cmdclass = create_cmdclass('jsdeps', data_files_spec=data_files_spec)
js_command = combine_commands(
    install_npm(js_dir, npm=["yarn"], build_cmd='build'),
    ensure_targets(jstargets),
)

is_repo = os.path.exists(os.path.join(here, '.git'))
if is_repo:
    cmdclass['jsdeps'] = js_command
else:
    cmdclass['jsdeps'] = skip_if_exists(jstargets, js_command)

setup_args = {
    'name':
    name,
    'version':
    version,
    'description':
コード例 #11
0
# Representative files that should exist after a successful build
jstargets = [
    path.join(lab_path, "package.json"),
]

cmdclass = create_cmdclass(
    "jsdeps",
    package_data_spec={"jupytext": ["nbextension/**"]},
    data_files_spec=data_files_spec,
)

cmdclass["jsdeps"] = combine_commands(
    install_npm(
        path.join(this_directory, "packages", "labextension"),
        build_cmd="build:prod",
        npm=["jlpm"],
    ),
    ensure_targets(jstargets),
)

setup(
    name="jupytext",
    version=version,
    author="Marc Wouts",
    author_email="*****@*****.**",
    description="Jupyter notebooks as Markdown documents, "
    "Julia, Python or R scripts",
    long_description=long_description,
    long_description_content_type="text/markdown",
    url="https://github.com/mwouts/jupytext",
コード例 #12
0
ファイル: setup.py プロジェクト: swan-cern/jupyter-extensions
package_data_spec = {name: ["*"]}

data_files_spec = [
    ("share/jupyter/labextensions/@swan-cern/hdfsbrowser", lab_path, "**"),
    ("etc/jupyter/jupyter_server_config.d",
     "jupyter-config/jupyter_server_config.d", "hdfsbrowser.json"),
    ("etc/jupyter/jupyter_notebook_config.d",
     "jupyter-config/jupyter_notebook_config.d", "hdfsbrowser.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="install:all", npm=["jlpm"]),
    install_npm(HERE, build_cmd="build:prod", npm=["jlpm"]),
    ensure_targets(jstargets),
)

with open("README.md", "r") as fh:
    long_description = fh.read()

setup_args = dict(
    name=name,
    version=version,
    url="https://github.com/swan-cern/jupyter-extensions",
    author="SWAN Admins",
    description="Jupyter Server extension to browse HDFS filesystem",
    long_description=long_description,
    long_description_content_type="text/markdown",
コード例 #13
0
jstargets = [
    path.join(nb_path, 'index.js'),
    path.join(lab_path, 'package.json'),
]

package_data_spec = {name: ['nbextension/static/*.*js*', 'labextension/*']}

data_files_spec = [('share/jupyter/nbextensions/ipygany', nb_path, '**'),
                   ("share/jupyter/labextensions/ipygany", lab_path, "**"),
                   ('etc/jupyter/nbconfig/notebook.d', HERE, 'ipygany.json')]

cmdclass = create_cmdclass('jsdeps',
                           package_data_spec=package_data_spec,
                           data_files_spec=data_files_spec)
js_command = combine_commands(
    install_npm(HERE, npm=["yarn"], build_cmd='build:extensions'),
    ensure_targets(jstargets),
)

is_repo = path.exists(path.join(HERE, '.git'))
if is_repo:
    cmdclass['jsdeps'] = js_command
else:
    cmdclass['jsdeps'] = skip_if_exists(jstargets, js_command)

setup_args = dict(
    name=name,
    description='Scientific Visualization in Jupyter',
    version=version,
    scripts=glob(path.join('scripts', '*')),
    cmdclass=cmdclass,
コード例 #14
0
# Representative files that should exist after a successful build
jstargets = [
    pjoin(HERE, name, 'nbextension', 'index.js'),
    pjoin(HERE, 'lib', 'plugin.js'),
]

data_files_spec = [
    ('share/jupyter/nbextensions/jupyter-matplotlib', 'ipympl/nbextension', '**'),
    ('share/jupyter/labextensions/jupyter-matplotlib', 'ipympl/labextension', "**"),
    ('etc/jupyter/nbconfig/notebook.d', '.', 'jupyter-matplotlib.json'),
]

cmdclass = create_cmdclass('jsdeps', data_files_spec=data_files_spec)
js_command = combine_commands(
    install_npm(HERE, npm=['yarn'], build_cmd='build:prod'),
    ensure_targets(jstargets),
)

is_repo = os.path.exists(os.path.join(HERE, '.git'))
if is_repo:
    cmdclass['jsdeps'] = js_command
else:
    cmdclass['jsdeps'] = skip_if_exists(jstargets, js_command)

setup_args = dict(
    name=name,
    version=version,
    description='Matplotlib Jupyter Extension',
    long_description=long_description,
    license='BSD License',
コード例 #15
0
ファイル: setup.py プロジェクト: lsowen/jupyter-fs
version = get_version(str(py_pkg / '_version.py'))

with open('README.md', encoding='utf-8') as f:
    long_description = f.read()

data_files_spec = [
    # lab extension installed by default:
    ('share/jupyter/lab/extensions', str(py_pkg / 'labdist'), '*.tgz'),
    # config to enable server extension by default:
    ('etc/jupyter', 'jupyter-config', '**/*.json'),
]

cmdclass = create_cmdclass('pack_labext', data_files_spec=data_files_spec)
cmdclass['pack_labext'] = combine_commands(
    install_npm(js_pkg, build_cmd='build:labdist', npm=['jlpm']),
    ensure_targets(
        [js_pkg / 'lib' / 'index.js', js_pkg / 'style' / 'index.css']),
)

cmdclass.pop('develop')

requires = [
    'fs>=2.4.11',
    'fs-s3fs>=1.1.1',
    'fs.smbfs>=0.6.3',
    'jupyterlab>=2.0.0',
    'notebook>=5.7.0',
]

test_requires = [
コード例 #16
0
                               name: [
                                   'static/*', 'public/*', 'public/forklift/*',
                                   'public/image/viz/*', 'labextension/*'
                               ]
                           },
                           data_files_spec=[
                               ("share/jupyter/labextensions/" + ext_name,
                                lab_path, "**"),
                               ('etc/jupyter/jupyter_notebook_config.d', name,
                                'jupyter_ros_server.json')
                           ])

cmdclass['js'] = combine_commands(
    install_npm(path=ext_path,
                npm=["jlpm"],
                build_cmd="build:labextension",
                build_dir=path.join(ext_path, 'build'),
                source_dir=path.join(ext_path, 'src')),
    # Representative files that should exist after a successful build
    ensure_targets([
        path.join(lab_path, 'package.json'),
    ]),
)

setup_args = {
    'name':
    name,
    'version':
    version,
    'description':
    "Jupyterlab server extension for ROS.",
コード例 #17
0
]

package_data_spec = {name: ["*"]}

data_files_spec = [
    ("share/jupyter/lab/extensions", lab_path, "*.tgz"),
    ("etc/jupyter/jupyter_notebook_config.d", "jupyter-config",
     "hdfsbrowser.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:labextension", npm=["jlpm"]),
    install_npm(NBEXTENSION, build_cmd="webpack"),
    ensure_targets(jstargets),
)

with open("README.md", "r") as fh:
    long_description = fh.read()

setup_args = dict(
    name=name,
    version='0.6.0',
    url="https://github.com/swan-cern/jupyter-extensions",
    author="SWAN Admins",
    description="Jupyter Server extension to browse HDFS filesystem",
    long_description=long_description,
    long_description_content_type="text/markdown",
コード例 #18
0
        'labextension/*'
    ]
}

data_files_spec = [
    ('share/jupyter/nbextensions/beakerx_tabledisplay', nb_path, '**'),
    ("share/jupyter/labextensions/" + npm_name, lab_path, "**"),
    ('etc/jupyter/nbconfig/notebook.d', HERE, 'beakerx_tabledisplay.json')
]

cmdclass = create_cmdclass('js', package_data_spec=package_data_spec, data_files_spec=data_files_spec)
cmdclass['js'] = combine_commands(
    install_npm(
        path=path.join(HERE, 'js'),
        npm=["yarn"],
        build_cmd="build:labextension",
        build_dir=path.join(HERE, 'js', 'dist'),
        source_dir=path.join(HERE, 'js', 'src')
    ),
    ensure_targets(jstargets),
)

setup_args = dict(
    name=name,
    description='BeakerX: Beaker Extensions for Jupyter Notebook',
    long_description='BeakerX: Beaker Extensions for Jupyter Notebook',
    version=version,
    author='Two Sigma Open Source, LLC',
    author_email='*****@*****.**',
    url='http://beakerx.com',
    keywords=[
コード例 #19
0
ファイル: setup.py プロジェクト: vrkrshna/jupyterlab
    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 Version(version) != Version(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 = """
Please install nodejs and npm before continuing installation.
nodejs may be installed using conda or directly from: https://nodejs.org/
"""
                log.error(error_message)
コード例 #20
0
        "jupyter-server-proxy-notebookserverextension.json",
    ),
    (
        "etc/jupyter/nbconfig/tree.d",
        "jupyter_server_proxy/etc",
        "jupyter-server-proxy-nbextension.json",
    ),
]

cmdclass = create_cmdclass("jsdeps",
                           package_data_spec=package_data_spec,
                           data_files_spec=data_files_spec)

js_command = combine_commands(
    install_npm(HERE / "jupyterlab-server-proxy",
                build_cmd="build:prod",
                npm=["jlpm"]),
    ensure_targets(jstargets),
)

is_repo = (HERE / ".git").exists()
if is_repo:
    cmdclass["jsdeps"] = js_command
else:
    cmdclass["jsdeps"] = skip_if_exists(jstargets, js_command)

long_description = (HERE / "README.md").read_text()

# Get the package info from package.json
pkg_json = json.loads(
    (HERE / "jupyterlab-server-proxy" / "package.json").read_bytes())
コード例 #21
0
ファイル: setup.py プロジェクト: ronigold/bqplot
    pjoin('share', 'jupyter', 'labextensions', 'bqplot', 'package.json'),
]

data_files_spec = [
    ('share/jupyter/nbextensions/bqplot', 'share/jupyter/nbextensions/bqplot',
     '*.js'),
    ('share/jupyter/labextensions/bqplot/',
     'share/jupyter/labextensions/bqplot/', '**'),
    ('share/jupyter/labextensions/bqplot/', here, 'install.json'),
    ('etc/jupyter/nbconfig/notebook.d', 'etc/jupyter/nbconfig/notebook.d',
     'bqplot.json'),
]

js_command = combine_commands(
    install_npm(js_dir,
                build_dir='share/jupyter/',
                source_dir='js/src',
                build_cmd='build'),
    ensure_targets(jstargets),
)

# Adding "map_data" as package_data manually, this should not be needed because it's already
# specified in MANIFEST and include_package_data=True. This might be a bug in jupyter-packaging?
cmdclass = create_cmdclass('jsdeps',
                           data_files_spec=data_files_spec,
                           package_data_spec={"bqplot": ["map_data/*.json"]})
is_repo = os.path.exists(os.path.join(here, '.git'))
if is_repo:
    cmdclass['jsdeps'] = js_command
else:
    cmdclass['jsdeps'] = skip_if_exists(jstargets, js_command)
コード例 #22
0
data_files_spec = [
    ('share/jupyter/nbextensions/igv_jupyterlab', 'igv_jupyterlab/nbextension',
     '**'),
    ('share/jupyter/labextensions/@epi2melabs/igv-jupyterlab',
     'igv_jupyterlab/labextension', '**'),
    ('share/jupyter/labextensions/@epi2melabs/igv-jupyterlab', '.',
     'install.json'),
    ('etc/jupyter/nbconfig/notebook.d', '.', 'igv_jupyterlab.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:prod'),
    ensure_targets(jstargets),
)

setup_args = dict(
    name=name,
    description=
    'igv-jupyterlab is an extension for Jupyter Lab and traditional Jupyter Notebooks which wraps igv.js.',
    version=version,
    scripts=glob(pjoin('scripts', '*')),
    cmdclass=cmdclass,
    packages=find_packages(),
    author='epi2melabs',
    author_email='*****@*****.**',
    url='https://github.com/epi2me-labs/igv-jupyterlab',
    license='BSD',
コード例 #23
0
ファイル: setup.py プロジェクト: JoelForamitti/ipysimulate
jstargets = [
    pjoin(js_dir, 'dist', 'index.js'),
]

data_files_spec = [
    ('share/jupyter/nbextensions/ipysimulate', 'ipysimulate/nbextension',
     '*.*'),
    ('share/jupyter/labextensions/ipysimulate', 'ipysimulate/labextension',
     '**'),
    ('share/jupyter/labextensions/ipysimulate', '.', 'install.json'),
    ('etc/jupyter/nbconfig/notebook.d', '.', 'ipysimulate.json'),
]

cmdclass = create_cmdclass('jsdeps', data_files_spec=data_files_spec)
cmdclass['jsdeps'] = combine_commands(
    install_npm(js_dir, npm=['yarn'], build_cmd='build:prod'),
    ensure_targets(jstargets),
)

setup_args = dict(
    name=name,
    version=version,
    description=
    'Tools to create interactive simulations with IPython and Jupyter.',
    long_description=long_description,
    long_description_content_type="text/markdown",
    include_package_data=True,
    install_requires=[
        'ipywidgets>=7.6.0',
    ],
    packages=find_packages(),
コード例 #24
0
ファイル: setup.py プロジェクト: NCAR/jupyterlab-pbs
]

package_data_spec = {name: ['*']}

data_files_spec = [
    ('share/jupyter/lab/extensions', lab_path, '*.tgz'),
    ('etc/jupyter/jupyter_notebook_config.d', 'jupyter-config',
     'jupyterlab_pbs.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', npm=['jlpm']),
    ensure_targets(jstargets),
)

with open('README.md', 'r') as fh:
    long_description = fh.read()

setup_args = dict(
    name=name,
    version=version,
    url='https://github.com/NCAR/jupyterlab-pbs',
    author='Anderson Banihirwe',
    description=' A JupyterLab extension to interface with PBS scheduler',
    long_description=long_description,
    long_description_content_type='text/markdown',
    cmdclass=cmdclass,
コード例 #25
0
    pjoin(js_dir2, 'build', 'static'),
]
data_files_spec = [
    ('share/jupyter/nbextensions/ipyspeck', 'ipyspeck/static', '*.*'),
    ('etc/jupyter/nbconfig/notebook.d', '.', 'ipyspeck.json'),
    ('share/streamlit/component/stspeck', 'ipyspeck/stspeck/frontend/build',
     '*.*'),
    ('share/streamlit/component/stspeck/static',
     'ipyspeck/stspeck/frontend/build/static', '*.*'),
    ('share/streamlit/component/stspeck/static/js',
     'ipyspeck/stspeck/frontend/build/static/js', '*.*'),
]

cmdclass = create_cmdclass('jsdeps', data_files_spec=data_files_spec)
cmdclass['jsdeps'] = combine_commands(
    install_npm(js_dir, build_cmd='build'),
    ensure_targets(jstargets),
    install_npm(js_dir2, build_cmd='build'),
    ensure_targets(jstargets2),
)

LONG_DESCRIPTION = ""
with open("README.md", "r") as fh:
    LONG_DESCRIPTION = fh.read()

setup_args = dict(
    name=name,
    version=version,
    description='Speck Jupyter Widget',
    long_description=LONG_DESCRIPTION,
    long_description_content_type="text/markdown",
コード例 #26
0
ファイル: setup.py プロジェクト: fcollonval/jupyter-project
    os.path.join(HERE, "lib", "jupyter-project.js"),
]

package_data_spec = {name: ["*"]}

data_files_spec = [
    ("share/jupyter/lab/extensions", lab_path, "*.tgz"),
    ("etc/jupyter/jupyter_notebook_config.d", "jupyter-config", "jupyter_project.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", npm=["jlpm"]), ensure_targets(jstargets),
)

with open("README.md", "r") as fh:
    long_description = fh.read()

setup_args = dict(
    name=name,
    version=version,
    url="https://github.com/fcollonval/jupyter-project",
    author="Frederic Collonval",
    description="An JupyterLab extension to handle project and files templates.",
    long_description=long_description,
    long_description_content_type="text/markdown",
    cmdclass=cmdclass,
    packages=setuptools.find_packages(),
コード例 #27
0
ファイル: setup.py プロジェクト: vishalbelsare/ipytree
# Representative files that should exist after a successful build
jstargets = [
    os.path.join('ipytree/nbextension', 'index.js'),
    os.path.join('ipytree/labextension', 'package.json'),
]

data_files_spec = [
    ('share/jupyter/nbextensions/ipytree', 'ipytree/nbextension', '**'),
    ('share/jupyter/labextensions/ipytree', 'ipytree/labextension', "**"),
    ('etc/jupyter/nbconfig/notebook.d', '.', 'ipytree.json'),
]

cmdclass = create_cmdclass('jsdeps', data_files_spec=data_files_spec)
js_command = combine_commands(
    install_npm(js_dir, npm=["yarn"], build_cmd='build'), ensure_targets(jstargets),
)

is_repo = os.path.exists(os.path.join(here, '.git'))
if is_repo:
    cmdclass['jsdeps'] = js_command
else:
    cmdclass['jsdeps'] = skip_if_exists(jstargets, js_command)

setup_args = {
    'name': name,
    'version': version,
    'license': 'MIT License',
    'description': 'A Tree Widget using jsTree',
    'long_description': long_description,
    'include_package_data': True,
コード例 #28
0
    ),
    (
        "share/jupyter/labextensions/idom-client-jupyter",
        ".",
        "install.json",
    ),
    (
        "etc/jupyter",
        "jupyter-config",
        "**/*.json",
    ),
]

cmdclass = create_cmdclass("jsdeps", data_files_spec=data_files_spec)
cmdclass["jsdeps"] = combine_commands(
    install_npm(js_dir, npm=["yarn"], build_cmd="build"),
    ensure_targets(jstargets),
)

setup_args = dict(
    name=name,
    version=version,
    description="A client for IDOM implemented using Jupyter widgets",
    long_description=LONG_DESCRIPTION,
    include_package_data=True,
    install_requires=[
        "ipywidgets>=7.6.0", "idom>=0.36.0,<0.37", "appdirs", "requests"
    ],
    packages=find_packages(),
    zip_safe=False,
    cmdclass=cmdclass,
コード例 #29
0
    ]
}

data_files_spec = [
    ("share/jupyter/lab/extensions", lab_path, "*.tgz"),
    ("etc/jupyter/jupyter_notebook_config.d",
     "jupyter-config", "rucio_jupyterlab.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", npm=["jlpm"]),
    ensure_targets(jstargets),
)

with open("README.md", "r") as fh:
    long_description = fh.read()

setup_args = dict(
    name=name,
    version=version,
    url="https://github.com/rucio/jupyterlab-extension",
    author="Muhammad Aditya Hilmy",
    description="JupyterLab extension for integrating Rucio",
    long_description=long_description,
    long_description_content_type="text/markdown",
    cmdclass=cmdclass,
コード例 #30
0
    os.path.join(lab_path, "package.json"),
]

package_data_spec = {name: ['*']}

data_files_spec = [
    ("share/jupyter/labextensions/%s" % labext_name, lab_path, "**"),
    ("share/jupyter/labextensions/%s" % labext_name, HERE, "install.json")
]

cmdclass = create_cmdclass('jsdeps',
                           package_data_spec=package_data_spec,
                           data_files_spec=data_files_spec)

js_command = combine_commands(
    install_npm(HERE, build_cmd='build', npm=["jlpm"]),
    ensure_targets(jstargets),
)

is_repo = os.path.exists(os.path.join(HERE, ".git"))
if is_repo:
    cmdclass["jsdeps"] = js_command
else:
    cmdclass["jsdeps"] = skip_if_exists(jstargets, js_command)

setup_args = dict(
    name=name,
    description='A sidecar output widget for JupyterLab',
    version=version,
    scripts=glob(os.path.join('scripts', '*')),
    cmdclass=cmdclass,