from __future__ import print_function
from glob import glob
from os.path import join as pjoin

from setupbase import (create_cmdclass, install_npm, ensure_targets,
                       find_packages, combine_commands, ensure_python,
                       get_version, HERE)

from setuptools import setup

# The name of the project
name = '{{ cookiecutter.python_package_name }}'

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

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

nb_path = pjoin(HERE, name, 'nbextension', 'static')
lab_path = pjoin(HERE, name, 'labextension', '*.tgz')

# 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']}
Ejemplo n.º 2
0
import io
import os
import sys
from glob import glob

from setuptools import setup, find_packages

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

pjoin = os.path.join
here = os.path.abspath(os.path.dirname(__file__))

# Minimal Python version sanity check
ensure_python(('>=2.7', '>=3.4'))

# the name of the project
name = 'nbdime'
version = get_version(pjoin(name, '_version.py'))

# Representative files that should exist after a successful build
jstargets = [
    os.path.join(here, name, 'webapp', 'static', 'nbdime.js'),
]

package_data = {
    name: [
        'tests/files/*.*',
        'tests/filters/*.py',
        '*.schema.json',
Ejemplo n.º 3
0
from __future__ import print_function
from glob import glob
from os.path import join as pjoin

from setupbase import (create_cmdclass, install_npm, ensure_targets,
                       find_packages, combine_commands, ensure_python,
                       get_version, HERE)

from setuptools import setup

# The name of the project
name = 'jupyter_cvlabelling_widget'

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

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

nb_path = pjoin(HERE, name, 'nbextension', 'static')
lab_path = pjoin(HERE, name, 'labextension')

# 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']}
Ejemplo n.º 4
0
from setupbase import HERE
from setupbase import combine_commands
from setupbase import create_cmdclass
from setupbase import ensure_python
from setupbase import ensure_targets
from setupbase import find_packages
from setupbase import get_version
from setupbase import install_npm
from setuptools import setup

# The name of the project
name = "ipygraphin"

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

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

nb_path = pjoin(HERE, name, "nbextension", "static")
lab_path = pjoin(HERE, name, "labextension")

# 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"]}
Ejemplo n.º 5
0
    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',
    classifiers=[
        'Intended Audience :: Developers',
        'Intended Audience :: System Administrators',
        'Intended Audience :: Science/Research',
        'License :: OSI Approved :: BSD License',
        'Programming Language :: Python',
        'Programming Language :: Python :: 3',
    ],
    install_requires=[
        'bokeh',
        'distributed>=1.24.1',
        'notebook>=4.3.1',
    ])

try:
    ensure_python(setup_dict["python_requires"].split(','))
except ValueError as e:
    raise ValueError("{:s}, to use {} you must use python {} ".format(
        e, setup_dict["name"], setup_dict["python_requires"]))

from dask_labextension import __version__

setuptools.setup(version=__version__, **setup_dict)

from setupbase import (
    create_cmdclass, install_npm, ensure_targets,
    find_packages, combine_commands, ensure_python,
    get_version, HERE
)

from setuptools import setup


# The name of the project
name = '{{ cookiecutter.python_package_name }}'

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

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

nb_path = pjoin(HERE, name, 'nbextension', 'static')
lab_path = pjoin(HERE, name, 'labextension')

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

package_data_spec = {
    name: [
Ejemplo n.º 7
0
from __future__ import print_function
import io
import os
import sys

from glob import glob
from os.path import join as pjoin

sys.path.append('.')
from setupbase import (create_cmdclass, install_npm, ensure_targets,
                       find_packages, combine_commands, ensure_python,
                       get_version, HERE)

from setuptools import setup

ensure_python('>=3.7')

# Gather package metadata.

name = 'pywwt'
version = get_version(pjoin(name, '_version.py'))

with io.open('README.md', encoding='utf_8') as f:
    LONG_DESCRIPTION = f.read()

# Wire up the NPM build to the Python package build -- we generate JavaScript
# artifacts from the `frontend/` package and then include them as data assets in
# the pywwt Python package.

nb_path = pjoin(name, 'nbextension', 'static')
Ejemplo n.º 8
0
from setupbase import (
    create_cmdclass,
    install_npm,
    ensure_targets,
    find_packages,
    combine_commands,
    ensure_python,
    get_version,
    HERE,
)

# The name of the project
name = "jupyter_archive"

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

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

lab_path = pjoin(HERE, name, "labextension")

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

package_data_spec = {name: ["*"]}

data_files_spec = [
    ("share/jupyter/lab/extensions", lab_path, "*.tgz"),
Ejemplo n.º 9
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 = "jupyterlab-snippets"

# 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", "snippets.js"),
]

package_data_spec = {name: ["*"]}

data_files_spec = [
    ("share/jupyter/lab/extensions", lab_path, "*.tgz"),
Ejemplo n.º 10
0
from __future__ import print_function

import os
from glob import glob
from os.path import join as pjoin

from setupbase import (create_cmdclass, install_npm, ensure_targets,
                       find_packages, combine_commands, ensure_python,
                       get_version, HERE)

from setuptools import setup

name = 'pyesasky'

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

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

nb_path = pjoin(HERE, name, 'nbextension', 'static')
lab_path = pjoin(HERE, name, 'labextension')

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

package_data_spec = {
    'pyesasky': [
Ejemplo n.º 11
0
    skip_npm, which, log
)

from setuptools import setup
from setuptools.command.develop import develop


NAME = 'jupyterlab'
DESCRIPTION = 'The JupyterLab notebook server extension.'
LONG_DESCRIPTION = """
This is a beta release of JupyterLab.
Development happens on https://github.com/jupyter/jupyterlab, with chat on
https://gitter.im/jupyter/jupyterlab.
"""

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

data_files_spec = [
    ('share/jupyter/lab/static', '%s/static' % NAME, '**'),
    ('share/jupyter/lab/schemas', '%s/schemas' % NAME, '**'),
    ('share/jupyter/lab/themes', '%s/themes' % NAME, '**'),
    ('etc/jupyter/jupyter_notebook_config.d',
     'jupyter-config/jupyter_notebook_config.d', 'jupyterlab.json'),
]

package_data_spec = dict()
package_data_spec[NAME] = [
    'staging/*', 'staging/templates/*', 'static/**', 'tests/mock_packages/**',
    'themes/**', 'schemas/**', 'node-version-check.js'
]
Ejemplo n.º 12
0
    skip_npm, which, log
)

from setuptools import setup
from setuptools.command.develop import develop


NAME = 'jupyterlab'
DESCRIPTION = 'The JupyterLab notebook server extension.'
LONG_DESCRIPTION = """
An extensible, comprehensive Jupyter web application.
Development happens on https://github.com/jupyter/jupyterlab, with chat on
https://gitter.im/jupyterlab/jupyterlab.
"""

ensure_python(['>=3.5'])

data_files_spec = [
    ('share/jupyter/lab/static', '%s/static' % NAME, '**'),
    ('share/jupyter/lab/schemas', '%s/schemas' % NAME, '**'),
    ('share/jupyter/lab/themes', '%s/themes' % NAME, '**'),
    ('etc/jupyter/jupyter_notebook_config.d',
     'jupyter-config/jupyter_notebook_config.d', 'jupyterlab.json'),
]

package_data_spec = dict()
package_data_spec[NAME] = [
    'staging/*', 'staging/templates/*', 'static/**', 'tests/mock_packages/**',
    'themes/**', 'schemas/**', '*.js'
]
Ejemplo n.º 13
0
import io
import os
import sys
from glob import glob

from setuptools import setup, find_packages

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

pjoin = os.path.join
here = os.path.abspath(os.path.dirname(__file__))


# Minimal Python version sanity check
ensure_python(('2.7', '>=3.4'))

# the name of the project
name = 'nbdime'
version = get_version(pjoin(name, '_version.py'))

# Some paths
static_dir = pjoin(here, name, 'webapp', 'static')
packages_dir = pjoin(here, 'packages')

# Representative files that should exist after a successful build
jstargets = [
    pjoin(static_dir, 'nbdime.js'),
]

Ejemplo n.º 14
0
from setuptools import setup, find_packages

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

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(
Ejemplo n.º 15
0
# Our own imports
from setupbase import (create_cmdclass, ensure_python, find_packages,
                       get_version, command_for_func, combine_commands,
                       install_npm, HERE, run, skip_npm, which, log)

from setuptools import setup
from setuptools.command.develop import develop

NAME = 'jupyterlab'
DESCRIPTION = 'The JupyterLab notebook server extension.'

with open(pjoin(HERE, 'README.md')) as fid:
    LONG_DESCRIPTION = fid.read()

ensure_python(['>=3.5'])

data_files_spec = [
    ('share/jupyter/lab/static', '%s/static' % NAME, '**'),
    ('share/jupyter/lab/schemas', '%s/schemas' % NAME, '**'),
    ('share/jupyter/lab/themes', '%s/themes' % NAME, '**'),
    ('etc/jupyter/jupyter_notebook_config.d',
     'jupyter-config/jupyter_notebook_config.d', 'jupyterlab.json'),
]

package_data_spec = dict()
package_data_spec[NAME] = [
    'staging/*', 'staging/templates/*', 'static/**', 'tests/mock_packages/**',
    'themes/**', 'schemas/**', '*.js'
]
Ejemplo n.º 16
0
from os.path import join as pjoin

from setupbase import (create_cmdclass, install_npm, ensure_targets,
                       find_packages, combine_commands, ensure_python,
                       get_version, HERE)

from setuptools import setup

LONG_DESCRIPTION = 'A custom widget for returning mouse and keyboard events to Python'

# The name of the project
name = 'ipyevents'

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

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

nb_path = pjoin(HERE, name, 'nbextension', 'static')
lab_path = pjoin(HERE, name, 'labextension')

# 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/ipyevents', nb_path, '*.js*'),
Ejemplo n.º 17
0
from __future__ import print_function
from glob import glob
from os.path import join as pjoin

from setupbase import (create_cmdclass, install_npm, ensure_targets,
                       find_packages, combine_commands, ensure_python,
                       get_version, HERE)

from setuptools import setup

# The name of the project
name = 'ipysegment'

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

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

nb_path = pjoin(HERE, name, 'nbextension', 'static')
lab_path = pjoin(HERE, name, 'labextension')

# 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']}
from setupbase import (
    create_cmdclass, install_npm, ensure_targets,
    combine_commands, ensure_python, get_version,
)
import setuptools
from setuptools import setup
from setuptools import setup

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

# The name of the project
name="snippetlib_jl"

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

# Get our version

# version = "1"
# snapshot_version = None

# if snapshot_version != None:
#   version = version + "." + snapshot_version
# else:
#   version = version + "0" + str(snapshot_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