- Notifications
You must be signed in to change notification settings - Fork5.5k
Use hatch backend#6425
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Use hatch backend#6425
Changes from9 commits
cded2be15e678f30360e0b5b0b2444e35e4d6d3c45cdc4ac16bbfab317c8c2ac0be687File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| [flake8] | ||
| ignore = E501, W503, E402 | ||
| builtins = c, get_config | ||
| exclude = | ||
| .cache, | ||
| .github, | ||
| docs, | ||
| enable-extensions = G | ||
| extend-ignore = | ||
| G001, G002, G004, G200, G201, G202, | ||
| # black adds spaces around ':' | ||
| E203, |
This file was deleted.
Uh oh!
There was an error while loading.Please reload this page.
This file was deleted.
Uh oh!
There was an error while loading.Please reload this page.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -81,7 +81,8 @@ | ||
| ] | ||
| }, | ||
| "skip": [ | ||
| "check-links", | ||
| "check-manifest" | ||
| ] | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,32 +1,126 @@ | ||||||
| [build-system] | ||||||
| requires = ["hatchling>=1.0","jupyterlab>=4.0.0a25,<5"] | ||||||
| build-backend ="hatchling.build" | ||||||
| [project] | ||||||
| name ="notebook" | ||||||
| description ="Jupyter Notebook - A web-based notebook environment for interactive computing" | ||||||
| readme ="README.md" | ||||||
| license = {file ="LICENSE" } | ||||||
| requires-python =">=3.7" | ||||||
| authors = [ | ||||||
| {name ="Jupyter Development Team",email ="jupyter@googlegroups.com" }, | ||||||
| ] | ||||||
| keywords = [ | ||||||
| "Jupyter", | ||||||
| "JupyterLab", | ||||||
| "Notebook", | ||||||
| ] | ||||||
| classifiers = [ | ||||||
| "Framework :: Jupyter", | ||||||
| "Intended Audience :: Developers", | ||||||
| "Intended Audience :: Science/Research", | ||||||
| "Intended Audience :: System Administrators", | ||||||
| "License :: OSI Approved :: BSD License", | ||||||
| "Programming Language :: Python", | ||||||
| "Programming Language :: Python :: 3.7", | ||||||
| "Programming Language :: Python :: 3.8", | ||||||
| "Programming Language :: Python :: 3.9", | ||||||
| "Programming Language :: Python :: 3.10", | ||||||
| ] | ||||||
| dependencies = [ | ||||||
| "jupyter_server>=1.16.0,<2", | ||||||
| "jupyterlab>=4.0.0a24,<5", | ||||||
| "jupyterlab_server>=2.13,<3", | ||||||
| "notebook_shim>=0.1,<0.2", | ||||||
| "tornado>=6.1.0", | ||||||
| ] | ||||||
| dynamic = ["version"] | ||||||
| [project.scripts] | ||||||
| jupyter-notebook ="notebook.app:main" | ||||||
| [project.urls] | ||||||
| Documentation ="https://jupyter-notebook.readthedocs.io/" | ||||||
| Homepage ="https://github.com/jupyter/notebook" | ||||||
| Source ="https://github.com/jupyter/notebook" | ||||||
| Tracker ="https://github.com/jupyter/notebook/issues" | ||||||
| [project.optional-dependencies] | ||||||
| test = [ | ||||||
| "coverage", | ||||||
| "nbval", | ||||||
| "pytest>=6.0", | ||||||
| "pytest-cov", | ||||||
| "requests", | ||||||
| "pytest-tornasync", | ||||||
| "pytest-timeout", | ||||||
| "pytest-console-scripts", | ||||||
| "ipykernel", | ||||||
| "jupyterlab_server[test]>=2.13,<3", | ||||||
| ] | ||||||
| dev = [ | ||||||
| "pre-commit", | ||||||
| "bump2version", | ||||||
| "hatchling" | ||||||
| ] | ||||||
| [tool.hatch.version] | ||||||
| path ="notebook/_version.py" | ||||||
| source ="code" | ||||||
| [tool.hatch.build.targets.wheel.shared-data] | ||||||
| "notebook/labextension" ="share/jupyter/labextensions/@jupyter-notebook/lab-extension" | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. @blink1073 I'm not an expert on the filesystem layout for JupyterLab extensions, but should this be Suggested change
Member There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Looks like this should be kept since it maps to ContributorAuthor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Yes, I agree There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Hmm, I could be wrong but I thought the output directorycontents were supposed to end up in If you look e.g. at the wheel for whereas in notebook's wheel we currently have the following files in E.g. this is ContributorAuthor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. The extension is nested in our case, under There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Right, I'm with you. This is where the fact that | ||||||
| "notebook/schemas/@jupyter-notebook" ="share/jupyter/lab/schemas/@jupyter-notebook" | ||||||
| "jupyter-config/jupyter_server_config.d" ="etc/jupyter/jupyter_server_config.d" | ||||||
| [tool.hatch.build.targets.sdist] | ||||||
| artifacts = [ | ||||||
| "notebook/labextension", | ||||||
| "notebook/static", | ||||||
| "notebook/schemas/@jupyter-notebook", | ||||||
| "notebook/templates", | ||||||
| ] | ||||||
| include = [ | ||||||
| "/jupyter-config", | ||||||
| "/notebook", | ||||||
| "/tests", | ||||||
| "/package.json", | ||||||
| "/install.json", | ||||||
| "/ts*.json", | ||||||
| "/*.md" | ||||||
| ] | ||||||
| [tool.hatch.build.targets.wheel] | ||||||
| artifacts = [ | ||||||
| "notebook/static", | ||||||
| "notebook/templates", | ||||||
| ] | ||||||
| include = ["/notebook"] | ||||||
| [tool.hatch.build.hooks.jupyter-builder] | ||||||
| dependencies = ["hatch-jupyter-builder>=0.2"] | ||||||
| build-function ="hatch_jupyter_builder.npm_builder" | ||||||
| ensured-targets = [ | ||||||
| "notebook/labextension/static/style.js", | ||||||
| "notebook/static/bundle.js" | ||||||
| ] | ||||||
| install-pre-commit-hook =true | ||||||
| [tool.hatch.build.hooks.jupyter-builder.build-kwargs] | ||||||
| build_cmd ="build:prod" | ||||||
| editable_build_cmd ="build" | ||||||
| source_dir ="packages" | ||||||
| build_dir ="notebook/static" | ||||||
| npm ="jlpm" | ||||||
| [tool.pytest.ini_options] | ||||||
| addopts ="-raXs --durations 10 --color=yes --doctest-modules" | ||||||
| testpaths = [ | ||||||
| "tests/", | ||||||
| ] | ||||||
| timeout =300 | ||||||
| filterwarnings = [ | ||||||
| "error", | ||||||
| "ignore:There is no current event loop:DeprecationWarning", | ||||||
Uh oh!
There was an error while loading.Please reload this page.