Skip to content

Commit a6d7c4a

Browse files
committed
Remove projects directory
1 parent 764cf9f commit a6d7c4a

File tree

11 files changed

+61
-264
lines changed

11 files changed

+61
-264
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919

2020
- run: |
2121
pip install hatch
22-
cd projects/my-jupyter-shared-docprovider; hatch build ../../dist; cd ../..
22+
hatch build
2323
- uses: actions/upload-artifact@v4
2424
with:
2525
path: ./dist

install.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"packageManager": "python",
3-
"packageName": "my_jupyter_shared_drive",
4-
"uninstallInstructions": "Use your Python package manager (pip, conda, etc.) to uninstall the package my_jupyter_shared_drive"
3+
"packageName": "my-jupyter-shared-drive",
4+
"uninstallInstructions": "Use your Python package manager (pip, conda, etc.) to uninstall the package my-jupyter-shared-drive"
55
}

packages/my-shared-docprovider-extension/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"build:labextension:dev": "jupyter labextension build --development True .",
4646
"clean": "jlpm run clean:lib",
4747
"clean:lib": "rimraf lib tsconfig.tsbuildinfo node_modules",
48-
"clean:labextension": "rimraf ../../projects/my-jupyter-shared-docprovider/my_jupyter_shared_docprovider/labextension",
48+
"clean:labextension": "rimraf ../../my_jupyter_shared_drive/labextension",
4949
"clean:all": "jlpm run clean:lib && jlpm run clean:labextension",
5050
"install:extension": "jlpm run build",
5151
"watch": "run-p watch:src watch:labextension",
@@ -73,7 +73,7 @@
7373
},
7474
"jupyterlab": {
7575
"extension": true,
76-
"outputDir": "../../projects/my-jupyter-shared-docprovider/my_jupyter_shared_docprovider/labextension",
76+
"outputDir": "../../my_jupyter_shared_drive/labextension",
7777
"disabledExtensions": [
7878
"@jupyterlab/filebrowser-extension:defaultFileBrowser",
7979
"@jupyter/docprovider-extension:defaultFileBrowser"

projects/my-jupyter-shared-docprovider/LICENSE

Lines changed: 0 additions & 59 deletions
This file was deleted.

projects/my-jupyter-shared-docprovider/README.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

projects/my-jupyter-shared-docprovider/install.json

Lines changed: 0 additions & 5 deletions
This file was deleted.

projects/my-jupyter-shared-docprovider/my_jupyter_shared_docprovider/__init__.py

Lines changed: 0 additions & 14 deletions
This file was deleted.

projects/my-jupyter-shared-docprovider/pyproject.toml

Lines changed: 0 additions & 68 deletions
This file was deleted.

projects/my-jupyter-shared-docprovider/setup.py

Lines changed: 0 additions & 5 deletions
This file was deleted.

pyproject.toml

Lines changed: 50 additions & 101 deletions
Original file line numberDiff line numberDiff line change
@@ -3,116 +3,65 @@
33

44
[build-system]
55
build-backend = "hatchling.build"
6-
requires = ["hatchling>=1.4.0", "hatch-nodejs-version", "jupyterlab>=4.0.0"]
6+
requires = ["hatchling>=1.4.0", "jupyterlab>=4.0.0"]
77

88
[project]
9-
name = "my-jupyter-shared-drive-monorepo"
10-
requires-python = ">=3.9"
11-
dependencies = [
12-
# jupyterlab/notebook frontend extensions
13-
"my-jupyter-shared-docprovider @ {root:uri}/projects/my-jupyter-shared-docprovider",
9+
name = "my-jupyter-shared-drive"
10+
version = "0.1.0"
11+
readme = "README.md"
12+
license = { file = "LICENSE" }
13+
requires-python = ">=3.8"
14+
description = "JupyterLab/Jupyter Notebook 7+ extension integrating collaborative shared models."
15+
classifiers = [
16+
"Intended Audience :: Developers",
17+
"Intended Audience :: System Administrators",
18+
"Intended Audience :: Science/Research",
19+
"License :: OSI Approved :: BSD License",
20+
"Programming Language :: Python",
21+
"Programming Language :: Python :: 3.9",
22+
"Programming Language :: Python :: 3.10",
23+
"Programming Language :: Python :: 3.11",
24+
"Programming Language :: Python :: 3.12",
25+
"Programming Language :: Python :: 3.13",
26+
"Framework :: Jupyter",
27+
"Framework :: Jupyter :: JupyterLab",
28+
"Framework :: Jupyter :: JupyterLab :: 4",
29+
"Framework :: Jupyter :: JupyterLab :: Extensions",
30+
"Framework :: Jupyter :: JupyterLab :: Extensions :: Prebuilt",
1431
]
15-
dynamic = ["version"]
16-
17-
[project.optional-dependencies]
18-
dev = [
19-
"click",
20-
"pre-commit",
21-
"jupyter_releaser",
22-
"jupyterlab>=4.0.0",
23-
]
24-
docs = [
25-
"jupyterlab>=4.0.0",
26-
"sphinx",
27-
"myst-parser",
28-
"pydata-sphinx-theme"
32+
authors = [
33+
{ name = "Jupyter Development Team", email = "jupyter@googlegroups.com" },
2934
]
3035

31-
[tool.black]
32-
line-length = 100
33-
34-
[tool.isort]
35-
profile = "black"
36+
[project.urls]
37+
Documentation = "https://jupyterlab-realtime-collaboration.readthedocs.io/"
38+
Repository = "https://github.com/jupyterlab/jupyter-collaboration"
3639

37-
[tool.hatch.version]
38-
source = "nodejs"
40+
[tool.hatch.build.targets.sdist]
41+
artifacts = ["my_jupyter_shared_docprovider/labextension"]
42+
exclude = ["/.github", "/binder", "node_modules"]
3943

40-
[tool.hatch.build]
41-
packages = [
42-
"projects/jupyter-shared-docprovider",
43-
]
44-
45-
[tool.hatch.metadata]
46-
allow-direct-references = true
44+
[tool.hatch.build.targets.sdist.force-include]
45+
"packages/my-shared-docprovider" = "packages/my-shared-docprovider"
46+
"packages/my-shared-docprovider-extension" = "packages/my-shared-docprovider-extension"
4747

48-
[tool.jupyter-releaser]
49-
skip = ["check-links"]
48+
[tool.hatch.build.targets.wheel.shared-data]
49+
"my_jupyter_shared_docprovider/labextension" = "share/jupyter/labextensions/@jupyter/my-shared-docprovider-extension"
50+
"install.json" = "share/jupyter/labextensions/@jupyter/my-shared-docprovider-extension/install.json"
5051

51-
[tool.jupyter-releaser.options]
52-
# `--skip-if-dirty` is a workaround for https://github.com/jupyter-server/jupyter_releaser/issues/567
53-
version-cmd = "cd ../.. && python scripts/bump_version.py --force --skip-if-dirty"
54-
python_packages = [
55-
"projects/jupyter-shared-docprovider:jupyter-shared-docprovider",
52+
[tool.hatch.build.hooks.jupyter-builder]
53+
dependencies = ["hatch-jupyter-builder>=0.5"]
54+
build-function = "hatch_jupyter_builder.npm_builder"
55+
ensured-targets = [
56+
"my_jupyter_shared_drive/labextension/static/style.js",
57+
"my_jupyter_shared_drive/labextension/package.json",
5658
]
59+
skip-if-exists = ["my_jupyter_shared_drive/labextension/static/style.js"]
5760

58-
[tool.jupyter-releaser.hooks]
59-
before-build-npm = [
60-
"YARN_ENABLE_IMMUTABLE_INSTALLS=0 jlpm build:prod"
61-
]
62-
before-build-python = [
63-
"jlpm clean:all",
64-
# Build the assets
65-
"jlpm build:prod",
66-
# Clean the build artifacts to not include them in sdist
67-
"jlpm clean:lib"
68-
]
69-
before-bump-version = [
70-
"python -m pip install -U jupyterlab",
71-
"jlpm"
72-
]
61+
[tool.hatch.build.hooks.jupyter-builder.build-kwargs]
62+
npm = ["jlpm"]
63+
build_cmd = "build:prod"
64+
editable_build_cmd = "install:extension"
7365

74-
[tool.pytest.ini_options]
75-
addopts = "-raXs --durations 10 --color=yes --doctest-modules"
76-
testpaths = ["tests/"]
77-
timeout = 300
78-
# Restore this setting to debug failures
79-
# timeout_method = "thread"
80-
filterwarnings = [
81-
"error",
82-
# From tornado
83-
"ignore:unclosed <socket.socket:ResourceWarning",
84-
"module:make_current is deprecated:DeprecationWarning",
85-
"module:clear_current is deprecated:DeprecationWarning",
86-
"module:There is no current event loop:DeprecationWarning",
87-
#
88-
"module:Jupyter is migrating its paths to use standard platformdirs:DeprecationWarning",
89-
# In PyPy/Cython: see https://github.com/yaml/pyyaml/issues/688
90-
"ignore:can't resolve package from __spec__ or __package__, falling back on __name__ and __path__:ImportWarning",
91-
# see https://github.com/dateutil/dateutil/issues/1314
92-
"ignore:.*datetime.utcfromtimestamp\\(\\) is deprecated.*:DeprecationWarning:",
93-
# From anyio https://github.com/agronholm/anyio/pull/715
94-
'ignore:Unclosed <MemoryObjectSendStream:ResourceWarning',
95-
]
96-
97-
[tool.mypy]
98-
exclude=[
99-
"^scripts/bump_version\\.py$",
100-
"^binder/jupyter_config\\.py$",
101-
"/setup\\.py$",
102-
]
103-
check_untyped_defs = true
104-
disallow_any_generics = false
105-
disallow_incomplete_defs = true
106-
disallow_untyped_decorators = true
107-
no_implicit_optional = true
108-
no_implicit_reexport = true
109-
pretty = true
110-
show_error_context = true
111-
show_error_codes = true
112-
strict_equality = true
113-
strict_optional = true
114-
warn_unused_configs = true
115-
warn_redundant_casts = true
116-
warn_return_any = false
117-
warn_unused_ignores = true
118-
ignore_missing_imports = true
66+
[tool.check-wheel-contents]
67+
ignore = ["W002"]

0 commit comments

Comments
 (0)