Skip to content

Commit

Permalink
Remove unused files
Browse files Browse the repository at this point in the history
  • Loading branch information
trungleduc committed Nov 16, 2023
1 parent 5ca3bf5 commit 8ea7be0
Show file tree
Hide file tree
Showing 29 changed files with 11 additions and 429 deletions.
7 changes: 0 additions & 7 deletions etc/jupyter/jupyter_server_config.d/jupytercad.json

This file was deleted.

5 changes: 0 additions & 5 deletions install.json

This file was deleted.

8 changes: 0 additions & 8 deletions jupytercad/__init__.py

This file was deleted.

1 change: 0 additions & 1 deletion jupytercad/cadapp/__init__.py

This file was deleted.

77 changes: 0 additions & 77 deletions jupytercad/cadapp/cadapp.py

This file was deleted.

52 changes: 0 additions & 52 deletions jupytercad/cadapp/templates/index.html

This file was deleted.

35 changes: 0 additions & 35 deletions jupytercad/cadapp/utils.py

This file was deleted.

69 changes: 0 additions & 69 deletions jupytercad/jcad_ydoc.py

This file was deleted.

50 changes: 5 additions & 45 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,52 +1,15 @@
[build-system]
build-backend = "hatchling.build"
requires = [
"hatchling>=1.4.0",
"hatch-nodejs-version",
"jupyterlab>=4.0.0",
"datamodel-code-generator",
]

[project]
name = "jupytercad"
name = "jupytercad-root"
readme = "README.md"
license = { file = "LICENSE" }
requires-python = ">=3.7"
dependencies = [
"jupyter_server>=2.0.6",
"jupyterlab>=4,<5",
"jupyter_collaboration>=1.0.0a9,<2",
"ypywidgets>=0.4.1,<0.5.0",
"yjs-widgets>=0.3.4,<0.4",
"comm>=0.1.2,<0.2.0",
"pydantic>=2,<3",
]
classifiers = [
"License :: OSI Approved :: BSD License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Framework :: Jupyter",
"Framework :: Jupyter :: JupyterLab",
"Framework :: Jupyter :: JupyterLab :: 3",
"Framework :: Jupyter :: JupyterLab :: Extensions",
"Framework :: Jupyter :: JupyterLab :: Extensions :: Prebuilt",
]
dynamic = ["version", "description", "authors", "urls", "keywords"]

[project.entry-points.jupyter_ydoc]
jcad = "jupytercad.jcad_ydoc:YJCad"
FCStd = "jupytercad.fcstd_ydoc:YFCStd"
version = "0.3.3"

[tool.jupyter-releaser.options]
version-cmd = "python scripts/bump-version.py"
python_packages = [
"jupyverse:fps-jupytercad",
".:jupytercad:fps-jupytercad"
"python/jupytercad-app:jupytercad_app",
"python/jupytercad-core:jupytercad_core",
"python/jupytercad-lab:jupytercad_lab",
]

[tool.jupyter-releaser.hooks]
Expand All @@ -60,6 +23,3 @@ before-build-python = ["jlpm clean:all"]

[tool.check-wheel-contents]
ignore = ["W002"]

[project.scripts]
jupyter-cad = "jupytercad.cadapp:main"
23 changes: 1 addition & 22 deletions python/jupytercad-app/jupytercad_app/cadapp.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import json
import os

import tornado
from jupyter_server.base.handlers import APIHandler, JupyterHandler
from jupyter_server.base.handlers import JupyterHandler
from jupyter_server.extension.handler import (
ExtensionHandlerJinjaMixin,
ExtensionHandlerMixin,
Expand Down Expand Up @@ -37,24 +35,6 @@ def get(self):
)


class BackendCheckHandler(APIHandler):
@tornado.web.authenticated
def post(self):
body = self.get_json_body()
backend = body.get("backend")
if backend == "FreeCAD":
fc_installed = True
try:
pass
except ImportError:
fc_installed = False
self.finish(json.dumps({"installed": fc_installed}))
elif backend == "JCAD":
self.finish(json.dumps({"installed": True}))
else:
self.finish(json.dumps({"installed": False}))


class CadApp(LabServerApp):
extension_url = "/cad"
default_url = "/cad"
Expand All @@ -74,7 +54,6 @@ class CadApp(LabServerApp):
def initialize_handlers(self):
"""Add cad handler to Lab Server's handler list."""
self.handlers.append(("/cad", CADHandler))
self.handlers.append(("/cad/backend-check", BackendCheckHandler))
super().initialize_handlers()


Expand Down

This file was deleted.

Loading

0 comments on commit 8ea7be0

Please sign in to comment.