Esempio n. 1
0
HERE = os.path.abspath(os.path.dirname(__file__))
LAB_PATH = os.path.join(HERE, "conda_store", "labextension")

cmdclass = create_cmdclass(
    "jsdeps",
    package_data_spec={"conda_store": ["*"]},
    data_files_spec=[
        ("share/jupyter/labextensions/%s" % "@Quansight/conda-store", LAB_PATH,
         "**"),
        ("share/jupyter/labextensions/%s" % "@Quansight/conda-store", HERE,
         "install.json"),
    ])

js_command = combine_commands(
    install_npm(HERE, build_cmd="build:prod", npm=["jlpm"]),
    ensure_targets([
        os.path.join(LAB_PATH, "package.json"),
    ]),
)

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

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

setup_args = dict(
    name="conda_store",
Esempio n. 2
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,
    'license': 'MIT License',
    'description': 'A Tree Widget using jsTree',
    'long_description': long_description,
    'include_package_data': True,
    (
        "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"],
Esempio n. 4
0
        "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,
    long_description_content_type="text/markdown",
    cmdclass= cmdclass,
Esempio n. 5
0
]
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",
    include_package_data=True,
    install_requires=['ipywidgets>=7.0.0', 'jupyter_packaging>=0.3.0'],
Esempio n. 6
0
    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)
Esempio n. 7
0
]

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)
Esempio n. 8
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",
    packages=find_packages(exclude=["tests"]),
Esempio n. 9
0
    ("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())

setup_args = dict(
    name=name,
    version=pkg_json["version"],
Esempio n. 10
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,
    packages=find_packages(),
Esempio n. 11
0
    ]
}


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


cmdclass = create_cmdclass('jsdeps', package_data_spec=package_data_spec,
    data_files_spec=data_files_spec)
npm_install = combine_commands(
    install_npm(HERE, build_cmd='build:prod'),
    ensure_targets(jstargets),
)
cmdclass['jsdeps'] = skip_if_exists(jstargets, npm_install)


setup_args = dict(
    name            = name,
    description     = 'A Jupyter widget using sigma.js to render interactive networks.',
    version         = version,
    scripts         = glob(pjoin('scripts', '*')),
    cmdclass        = cmdclass,
    packages        = find_packages(),
    author          = 'Guillaume Plique',
    author_email    = '*****@*****.**',
    url             = 'https://github.com/medialab/ipysigma',
    license         = 'MIT',
Esempio n. 12
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',
    include_package_data=True,
Esempio n. 13
0
    "sphinx-markdown-builder>=0.5.2",
]

data_spec = [
    # Lab extension installed by default:
    ("share/jupyter/lab/extensions", "js/lab-dist",
     "jupyterlab_celltests-*.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="Cell-by-cell tests for JupyterLab",
    long_description=long_description,
    long_description_content_type="text/markdown",
    url="https://github.com/jpmorganchase/nbcelltests",
    author="The nbcelltests authors",
    license="Apache 2.0",
    classifiers=[
        "Development Status :: 3 - Alpha",
Esempio n. 14
0
labext_name = "@jupyterlab-ipython/KernelSpec-Manager"

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

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

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

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

setup_args = dict(
    name='ksmm',
    version=VERSION,
    description='Jupyter Server Extension for IPython KernelSpec Manager',
    cmdclass=cmdclass,
    python_requires='>=3.8',
    packages=setuptools.find_packages(),
Esempio n. 15
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",
    cmdclass=cmdclass,
Esempio n. 16
0
                                   '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.",
    'author':
    "QuantStack",
Esempio n. 17
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)
Esempio n. 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=[
        'ipython',
Esempio n. 19
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",
    author_email="*****@*****.**",
    license="Apache 2.0",
    classifiers=[
Esempio n. 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())
Esempio n. 21
0
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(),
    zip_safe=False,
Esempio n. 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',
    platforms="Linux, Mac OS X, Windows",
Esempio n. 23
0
        "etc/jupyter/jupyter_notebook_config.d",
        "jupyter-config/jupyter_notebook_config.d",
        "jupyterlab_requirements.json",
    ),
]

# To deploy simultaneously the frontend and the backend,
# the frontend NPM package needs to be built and inserted in the Python package.
cmdclass = create_cmdclass("jsdeps",
                           package_data_spec=package_data_spec,
                           data_files_spec=data_files_spec)

cmdclass["jsdeps"] = combine_commands(
    # it will build the frontend NPM package
    install_npm(HERE, build_cmd="build:prod", npm=["jlpm"]),
    # It will copy the NPM package in the Python package
    # and force it to be copied in a place JupyterLab
    # is looking for frontend extensions when the Python package is installed.
    ensure_targets(jstargets),
)

README: str = Path(HERE, "README.md").read_text(encoding="utf-8")


def _get_install_requires():
    with open("requirements.txt", "r") as requirements_file:
        res = requirements_file.readlines()
        return [req.split(" ", maxsplit=1)[0] for req in res if req]


setup_args = dict(
    name=name,
Esempio n. 24
0
]

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,
    packages=setuptools.find_packages(),
Esempio n. 25
0
    '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='*****@*****.**',
    license='Apache 2.0',
    classifiers=[
Esempio n. 26
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,
    author="Ryan Morshead",
}

labext_name = "jupyterlab_apod"

data_files_spec = [
    ("share/jupyter/labextensions/%s" % labext_name, str(lab_path), "**"),
    ("share/jupyter/labextensions/%s" % labext_name, str(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: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 / "package.json").read_bytes())

setup_args = dict(
    name=name,
Esempio n. 28
0
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 = [
    'boto3',
Esempio n. 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,
    packages=setuptools.find_packages(),
Esempio n. 30
0
        "*"
    ]
}

# 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=data_files_spec

cmdclass["jsdeps"] = combine_commands(
    install_npm(HERE, build_cmd="webpack"),
    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="Sharing for SWAN",
    long_description= long_description,
    long_description_content_type="text/markdown",
    cmdclass= cmdclass,
    packages=setuptools.find_packages(),