Example #1
0
from setuptools import setup, find_packages
from codecs import open
from os import path

from jupyter_packaging import (create_cmdclass, install_npm, ensure_targets,
                               combine_commands, ensure_python, get_version)

pjoin = path.join

ensure_python(('2.7', '>=3.3'))

name = 'jupyterlab_powerpoint'
here = path.abspath(path.dirname(__file__))
jshere = path.join(here, 'js')
version = get_version(pjoin(here, name, '_version.py'))

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

requires = [
    'jupyterlab>=1.0.0',
    'nbconvert>=5.5.0',
    'nbformat>=4.4.0',
    'python-pptx>=0.6.0',
]

dev_requires = requires + [
    'pytest', 'pytest-cov', 'pylint', 'flake8', 'bump2version', 'autopep8',
    'mock'
]
Example #2
0
import os

from jupyter_packaging import (
    create_cmdclass, install_npm, ensure_targets,
    combine_commands, ensure_python, get_version,
)
import setuptools

HERE = os.path.abspath(os.path.dirname(__file__))

# The name of the project
name = "rucio_jupyterlab"

# Ensure a valid python version
ensure_python(">=3.5")

# Get our version
version = get_version(os.path.join(name, "_version.py"))

lab_path = os.path.join(HERE, name, "labextension")

# Representative files that should exist after a successful build
jstargets = [
    os.path.join(HERE, "lib", "src", "index.js"),
]

package_data_spec = {
    name: [
        "*"
    ]
Example #3
0
    create_cmdclass,
    install_npm,
    ensure_targets,
    combine_commands,
    ensure_python,
    get_version,
)
import setuptools

HERE = os.path.abspath(os.path.dirname(__file__))

# The name of the project
name = "jupyter_project"

# Ensure a valid python version
ensure_python(">=3.6")

# Get our version
version = get_version(os.path.join(name, "_version.py"))

lab_path = os.path.join(HERE, name, "labextension")

# Representative files that should exist after a successful build
jstargets = [
    os.path.join(HERE, "lib", "jupyter-project.js"),
]

package_data_spec = {name: ["*"]}

data_files_spec = [
    ("share/jupyter/lab/extensions", lab_path, "*.tgz"),
Example #4
0
from codecs import open
from os import path

from jupyter_packaging import (combine_commands, create_cmdclass,
                               ensure_python, ensure_targets, get_version,
                               install_npm)
from setuptools import find_packages, setup

pjoin = path.join

ensure_python(("2.7", ">=3.3"))

name = "jupyterlab_powerpoint"
here = path.abspath(path.dirname(__file__))
jshere = path.abspath(path.join(path.dirname(__file__), "js"))
version = get_version(pjoin(here, name, "_version.py"))

with open(path.join(here, "README.md"), encoding="utf-8") as f:
    long_description = f.read()

requires = [
    "jupyterlab>=3.0.0",
    "nbconvert>=5.5.0",
    "nbformat>=4.4.0",
    "python-pptx>=0.6.0",
]

dev_requires = requires + [
    "pytest",
    "pytest-cov",
    "pylint",
Example #5
0
from jupyter_packaging import (
    combine_commands,
    create_cmdclass,
    ensure_python,
    ensure_targets,
    get_version,
    install_npm,
)

HERE = os.path.abspath(os.path.dirname(__file__))

# The name of the project
name = 'jupyterlab_pbs'

# Ensure a valid python version
ensure_python('>=3.5')

# Get our version
version = get_version(os.path.join(name, '_version.py'))

lab_path = os.path.join(HERE, name, 'labextension')

# Representative files that should exist after a successful build
jstargets = [
    os.path.join(HERE, 'lib', 'jupyterlab-pbs.js'),
]

package_data_spec = {name: ['*']}

data_files_spec = [
    ('share/jupyter/lab/extensions', lab_path, '*.tgz'),
Example #6
0
    create_cmdclass, install_npm, ensure_targets,
    combine_commands, ensure_python,
    get_version
)

from setuptools import setup, find_packages


# The name of the project
name = 'beakerx_tabledisplay'
npm_name = '@beakerx/beakerx-tabledisplay'

HERE = path.dirname(path.abspath(__file__))

# Ensure a valid python version
ensure_python('>=3.6')

# Get our version
version = get_version(path.join(name, '_version.py'))

nb_path = path.join(HERE, name, 'static')
lab_path = path.join(HERE, name, 'labextension')

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

package_data_spec = {
    name: [
Example #7
0
    install_npm,
    ensure_targets,
    combine_commands,
    ensure_python,
    get_version,
)

from setuptools import setup, find_packages

# The name of the project
name = "ipycytoscape"

HERE = os.path.dirname(os.path.abspath(__file__))

# Ensure a valid python version
ensure_python(">=3.4")

# Get our version
version = get_version(path.join(name, "_version.py"))

nb_path = path.join(HERE, name, "nbextension", "static")
lab_path = path.join(HERE, name, "labextension")

# Representative files that should exist after a successful build
jstargets = [
    path.join(nb_path, "index.js"),
    path.join(HERE, "lib", "plugin.js"),
]

package_data_spec = {name: ["*"]}
Example #8
0
# *****************************************************************************
#
# Copyright (c) 2019, the jupyter-fs authors.
#
# This file is part of the jupyter-fs library, distributed under the terms of
# the Apache License 2.0.  The full license can be found in the LICENSE file.

from jupyter_packaging import (combine_commands, create_cmdclass,
                               ensure_python, ensure_targets, get_version,
                               install_npm, skip_if_exists)
from pathlib import Path
import setuptools

ensure_python(('>=3.6', ))

# project name is also name of labextension npm package
name = labext_name = 'jupyter-fs'
# relative paths to python pkg dir and labextension pkg dir
js_pkg, py_pkg = Path('js'), Path('jupyterfs')
# relative path to labextension dist that gets built at the root of the python package
labext_dist = py_pkg / 'labextension'
# Representative files that should exist after a successful build
jstargets = [labext_dist / "package.json"]
version = get_version(str(py_pkg / '_version.py'))
# POSIX_PREFIX/(APP_SUFFIX, CONFIG_SUFFIX) determines the install location of the (labextension dist, extension config)
APP_SUFFIX = Path('share/jupyter/labextensions/')
CONFIG_SUFFIX = Path('etc/jupyter/')

data_files_spec = [
    # distribute the labextension dist via the data_files of the python package
    (str(APP_SUFFIX / labext_name), str(labext_dist), '**'),
Example #9
0
from glob import glob
from os.path import join as pjoin, abspath, dirname
from setuptools import setup, find_packages  # type: ignore
from jupyter_packaging import (  # type: ignore
    create_cmdclass, install_npm, ensure_targets, combine_commands,
    ensure_python, get_version,
)

ensure_python(">=3.7")
HERE = abspath(dirname(__file__))

name = "algorithmx"
version = get_version(pjoin(name, "_version.py"))

package_data_spec = {
    name: [
        "nbextension/*",
        "labextension/*",
        "server/*.html",
        "server/dist/*",
    ]
}

data_files_spec = [
    (
        "share/jupyter/nbextensions/algorithmx-jupyter",
        pjoin(HERE, name, "nbextension"),
        "*.js*",
    ),
    ("share/jupyter/lab/extensions", pjoin(HERE, name,
                                           "labextension"), "*.tgz"),