diff --git a/setup.py b/setup.py index 6ac218c..b6c6681 100644 --- a/setup.py +++ b/setup.py @@ -1,108 +1,2 @@ -from codecs import open -from os import path - -from jupyter_packaging import get_data_files, npm_builder, wrap_installers -from setuptools import find_packages, setup - -pjoin = path.join -name = "jupyterlab_email" -here = path.abspath(path.dirname(__file__)) -jshere = path.abspath(pjoin(path.dirname(__file__), "js")) - -with open(path.join(here, "README.md"), encoding="utf-8") as f: - long_description = f.read().replace("\r\n", "\n") - -requires = [ - "beautifulsoup4>=4.9.1", - "emails>=0.5.15", - "ipython>=7.2.0", - "jupyterlab>=3.0.0", - "pandas>=0.23.4", - "python-magic>=0.4.15", -] - -requires_test = [ - "pytest>=4.3.0", - "pytest-cov>=2.6.1", -] - -requires_dev = ( - requires - + requires_test - + [ - "black>=20.8b1", - "bump2version>=1.0.0", - "check-manifest", - "flake8>=3.7.8", - "flake8-black>=0.2.1", - "jupyter_packaging", - "Sphinx>=1.8.4", - "sphinx-markdown-builder>=0.5.2", - ] -) - -ext_path = pjoin(name, "extension") -lab_path = pjoin(name, "labextension") - -# Representative files that should exist after a successful build -jstargets = [ - pjoin(jshere, "lib", "index.js"), -] - -data_spec = [ - ( - "share/jupyter/labextensions/jupyterlab_email", - lab_path, - "**", - ), - ("etc/jupyter/jupyter_server_config.d", ext_path, "*.json"), -] - -ensured_targets = [ - pjoin("jupyterlab_email", "labextension", "package.json"), -] - -builder = npm_builder(build_cmd="build", path=jshere) - -setup( - name=name, - version="0.2.4", - description="Sending emails from JupyterLab", - long_description=long_description, - long_description_content_type="text/markdown", - url="https://github.com/timkpaine/jupyterlab_email", - author="Tim Paine", - author_email="t.paine154@gmail.com", - license="Apache 2.0", - classifiers=[ - "Development Status :: 4 - Beta", - "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.7", - "Programming Language :: Python :: 3.8", - "Programming Language :: Python :: 3.9", - "Programming Language :: Python :: 3.10", - "Framework :: Jupyter", - "Framework :: Jupyter :: JupyterLab", - ], - platforms="Linux, Mac OS X, Windows", - keywords=["Jupyter", "Jupyterlab", "Email"], - cmdclass=wrap_installers( - post_develop=builder, pre_dist=builder, ensured_targets=ensured_targets - ), - data_files=get_data_files(data_spec), - packages=find_packages( - exclude=[ - "tests", - ] - ), - install_requires=requires, - test_suite="jupyterlab_autoversion.tests", - tests_require=requires_test, - extras_require={ - "dev": requires_dev, - "develop": requires_dev, - }, - include_package_data=True, - zip_safe=False, - python_requires=">=3.7", -) +# setup.py shim for use with applications that require it. +__import__("setuptools").setup()