From 3d6cc6b21b7ac7ef7d1a3723cb605ace4ba2ff8f Mon Sep 17 00:00:00 2001 From: Duc Trung LE Date: Tue, 21 Nov 2023 11:48:21 +0100 Subject: [PATCH] Add jupytercad meta package --- .github/workflows/build.yml | 3 +- pyproject.toml | 7 +++-- python/jupytercad/LICENSE | 29 +++++++++++++++++ python/jupytercad/README.md | 2 +- python/jupytercad/jupytercad/__init__.py | 1 + python/jupytercad/pyproject.toml | 40 ++++++++++++++++++++++++ python/jupytercad/setup.py | 1 + 7 files changed, 78 insertions(+), 5 deletions(-) create mode 100644 python/jupytercad/LICENSE create mode 100644 python/jupytercad/jupytercad/__init__.py create mode 100644 python/jupytercad/pyproject.toml create mode 100644 python/jupytercad/setup.py diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 80108e21..de9555ca 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -119,7 +119,8 @@ jobs: # Remove NodeJS, twice to take care of system and locally installed node versions. sudo rm -rf $(which node) sudo rm -rf $(which node) - python -m pip install "jupyterlab>=4.0.0" "jupyercad-core/dist/jupytercad*.whl" "jupyercad-lab/dist/jupytercad*.whl" "jupyercad-app/dist/jupytercad*.whl" + cp jupyercad-core/dist/jupytercad*.whl jupyercad-lab/dist/jupytercad*.whl jupyercad-app/dist/jupytercad*.whl . + python -m pip install "jupyterlab>=4.0.0" jupytercad*.whl jupyter labextension list jupyter labextension list 2>&1 | grep -ie "jupytercad.*OK" diff --git a/pyproject.toml b/pyproject.toml index b5631a89..79182550 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,9 +7,10 @@ version = "0.3.3" [tool.jupyter-releaser.options] version-cmd = "python scripts/bump-version.py" python_packages = [ - "python/jupytercad-app:jupytercad_app", - "python/jupytercad-core:jupytercad_core", - "python/jupytercad-lab:jupytercad_lab", + "python/jupytercad:jupytercad", + "python/jupytercad-app:jupytercad-app", + "python/jupytercad-core:jupytercad-core", + "python/jupytercad-lab:jupytercad-lab", ] [tool.jupyter-releaser.hooks] diff --git a/python/jupytercad/LICENSE b/python/jupytercad/LICENSE new file mode 100644 index 00000000..e0d6cefa --- /dev/null +++ b/python/jupytercad/LICENSE @@ -0,0 +1,29 @@ +BSD 3-Clause License + +Copyright (c) 2023, JupyterCad contributors +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +3. Neither the name of the copyright holder nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/python/jupytercad/README.md b/python/jupytercad/README.md index ecf30974..171c08e2 100644 --- a/python/jupytercad/README.md +++ b/python/jupytercad/README.md @@ -1 +1 @@ -# JupyterCad meta package +# JupyterCad meta-package diff --git a/python/jupytercad/jupytercad/__init__.py b/python/jupytercad/jupytercad/__init__.py new file mode 100644 index 00000000..e19434e2 --- /dev/null +++ b/python/jupytercad/jupytercad/__init__.py @@ -0,0 +1 @@ +__version__ = "0.3.3" diff --git a/python/jupytercad/pyproject.toml b/python/jupytercad/pyproject.toml new file mode 100644 index 00000000..fca25fdf --- /dev/null +++ b/python/jupytercad/pyproject.toml @@ -0,0 +1,40 @@ +[build-system] +build-backend = "hatchling.build" +requires = ["hatchling>=1.5.0,<2"] + +[project] +classifiers = [ + "Framework :: Jupyter", + "Framework :: Jupyter :: JupyterLab", + "Framework :: Jupyter :: JupyterLab :: 4", + "Framework :: Jupyter :: JupyterLab :: Extensions", + "Framework :: Jupyter :: JupyterLab :: Extensions :: Prebuilt", + "License :: OSI Approved :: BSD License", + "Programming Language :: Python", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", +] +dependencies = [ + "jupytercad-core>=0.3.3,<0.4", + "jupytercad-lab>=0.3.3,<0.4", + "jupytercad-app>=0.3.3,<0.4", +] +dynamic = ["version"] +license = {file = "LICENSE"} +name = "jupytercad" +readme = "README.md" +requires-python = ">=3.8" + + +[tool.hatch.version] +path = "jupytercad/__init__.py" + +[tool.jupyter-releaser.options] +version_cmd = "hatch version" + +[tool.check-wheel-contents] +ignore = ["W002"] diff --git a/python/jupytercad/setup.py b/python/jupytercad/setup.py new file mode 100644 index 00000000..aefdf20d --- /dev/null +++ b/python/jupytercad/setup.py @@ -0,0 +1 @@ +__import__("setuptools").setup()