]

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,
    version=pkg_json["version"],
    url=pkg_json["homepage"],
    author=pkg_json["author"]["name"],
    author_email=pkg_json["author"]["email"],
    description=pkg_json["description"],
    license=pkg_json["license"],
    long_description=long_description,
Beispiel #2
0
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,
    'install_requires': [
        'ipywidgets>=7.5.0,<8',
    ],
    'packages': find_packages(),
    'zip_safe': False,
    'cmdclass': cmdclass,
    'author': 'Martin Renou',
Beispiel #3
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',
    platforms       = "Linux, Mac OS X, Windows",
    keywords        = ['Jupyter', 'Widgets', 'IPython', 'Sigma', 'graph'],
Beispiel #4
0
        ("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",
    version='0.2.5',
    url="https://github.com/Quansight/conda-store",
    author="Anirrudh Krishnan",
    description=
    "A JupterLab Extension and client to interface with conda-store",
    long_description=long_description,
    long_description_content_type="text/markdown",
    cmdclass=cmdclass,
Beispiel #5
0
        "jupyter-config/jupyter_server_config.d",
        "jupyterfs.json",
    ),
]
package_data_spec = {name: ["*"]}

cmdclass = create_cmdclass(
    "jsdeps",
    package_data_spec=package_data_spec,
    data_files_spec=data_files_spec,
)
js_command = combine_commands(
    install_npm(js_pkg, build_cmd='build:prod', npm=['jlpm']),
    ensure_targets(jstargets),
)
cmdclass["jsdeps"] = js_command if Path(".git").exists() else skip_if_exists(
    jstargets, js_command)

requires = [
    'fs>=2.4.11',
    'fs-s3fs>=1.1.1',
    'fs.smbfs>=0.6.3',
    'jupyterlab>=3.0.0',
    'jupyter_server>=1.8.0',
]

test_requires = [
    'boto3',
    'docker',
    'fs-miniofs',
    'mock',
    'pysmb',
Beispiel #6
0
long_description = (HERE / "README.md").read_text()

# Get the package info from package.json
pkg_json = json.loads((HERE / "package.json").read_bytes())

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

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

setup_args = dict(
    name=name,
    version=pkg_json["version"],
    url=pkg_json["homepage"],
    author=pkg_json["author"]["name"],
    author_email=pkg_json["author"]["email"],
    description=pkg_json["description"],
    license=pkg_json["license"],
    long_description=long_description,
    long_description_content_type="text/markdown",
    packages=setuptools.find_packages(),
    cmdclass=cmdclass,
    install_requires=[
        "jupyter_server>=1.6,<2",