HEX
Server: Apache/2.4.46 (Win64) OpenSSL/1.1.1j PHP/8.4.25
System: Windows NT DESKTOP-4TAV2RJ 10.0 build 19045 (Windows 10) AMD64
User: fred (0)
PHP: 8.4.25
Disabled: NONE
Upload Files
File: C:/Users/fred/anaconda3/Lib/site-packages/jupyterlab/tests/mock_packages/test-hyphens/setup.py
# Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.

from os import path

from setuptools import setup

version = "3.0.2"
name = "test_hyphens"
module_name = "test_hyphens"
lab_ext_name = "test-hyphens"

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

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

setup_args = {"name": name, "version": version, "packages": [module_name]}

try:
    from jupyter_packaging import get_data_files, npm_builder, wrap_installers

    post_develop = npm_builder(build_cmd="build:labextension", build_dir=lab_path, npm=["jlpm"])

    cmdclass = wrap_installers(post_develop=post_develop)

    setup_args.update(
        {
            "cmdclass": cmdclass,
            "data_files": get_data_files(data_files_spec),
        }
    )
except ImportError:
    pass


setup(**setup_args)