Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modernize Python metadata #3886

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
74 changes: 70 additions & 4 deletions python/ipywidgets/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,71 @@
[build-system]
# These are the assumed default build requirements from pip:
# https://pip.pypa.io/en/stable/reference/pip/#pep-517-and-518-support
requires = ["setuptools>=40.8.0", "wheel"]
build-backend = "setuptools.build_meta"
requires = ["setuptools>=61.2"]
build-backend = "setuptools.build_meta"

[project]
name = "ipywidgets"
authors = [{name = "Jupyter Development Team", email = "jupyter@googlegroups.com"}]
description = "Jupyter interactive widgets"
keywords = ["Interactive", "Interpreter", "Shell", "Web", "ipython", "widgets", "Jupyter"]
license = {text = "BSD 3-Clause License"}
classifiers = [
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"Intended Audience :: Science/Research",
"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",
"Programming Language :: Python :: 3 :: Only",
"Framework :: Jupyter",
]
urls = {Homepage = "http://jupyter.org"}
requires-python = ">=3.7"
dependencies = [
"comm>=0.1.3",
"ipython>=6.1.0",
"traitlets>=4.3.1",
"widgetsnbextension~=4.0.10",
"jupyterlab_widgets~=3.0.10",
]
dynamic = ["version"]

[project.readme]
file = "README.md"
content-type = "text/markdown"

[project.optional-dependencies]
test = [
"jsonschema",
"ipykernel",
"pytest>=3.6.0",
"pytest-cov",
"pytz",
]

[tool.setuptools]
zip-safe = false
# include_package_data = True
platforms = ["Linux", "Mac OS X", "Windows"]
license-files = ["LICENSE"]
include-package-data = false

[tool.setuptools.packages]
find = {namespaces = false}

[tool.setuptools.package-data]
ipywidgets = [
"state.schema.json",
"view.schema.json",
]
# Test data needs to be packaged until tests are moved out of module
"ipywidgets.widgets.tests" = [
"data/jupyter-logo-transparent.png"
]

[tool.setuptools.dynamic]
version = {attr = "ipywidgets._version.__version__"}
58 changes: 0 additions & 58 deletions python/ipywidgets/setup.cfg

This file was deleted.

56 changes: 53 additions & 3 deletions python/jupyterlab_widgets/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,48 @@
[build-system]
requires = ["jupyter_packaging~=0.10,<2", "jupyterlab~=4.0"]
requires = [
"jupyter_packaging~=0.10,<2",
"jupyterlab~=4.0"
]
build-backend = "jupyter_packaging.build_api"

[project]
name = "jupyterlab_widgets"
authors = [{name = "Jupyter Development Team", email = "jupyter@googlegroups.com"}]
description = "Jupyter interactive widgets for JupyterLab"
license = {text = "BSD-3-Clause"}
keywords = ["Interactive", "Interpreter", "Shell", "Web", "notebook", "widgets", "Jupyter", "JupyterLab", "JupyterLab3"]
classifiers = [
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"Intended Audience :: Science/Research",
"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",
"Programming Language :: Python :: 3 :: Only",
"Framework :: Jupyter",
"Framework :: Jupyter :: JupyterLab",
"Framework :: Jupyter :: JupyterLab :: 3",
"Framework :: Jupyter :: JupyterLab :: Extensions",
"Framework :: Jupyter :: JupyterLab :: Extensions :: Prebuilt",
]
requires-python = ">=3.7"
dynamic = ["version"]

[project.readme]
file = "README.md"
content-type = "text/markdown"

[project.urls]
Homepage = "https://github.com/jupyter-widgets/ipywidgets"

[tool.check-manifest]
ignore = ["labextension/**", "yarn.lock", ".*", "package-lock.json"]

[tool.jupyter-packaging.options]
skip-if-exists = ["labextension/package.json"]
ensured-targets = ["labextension/package.json"]
Expand All @@ -13,5 +54,14 @@ factory = "jupyter_packaging.npm_builder"
build_cmd = "build:prod"
npm = ["jlpm"]

[tool.check-manifest]
ignore = ["labextension/**", "yarn.lock", ".*", "package-lock.json"]
[tool.setuptools]
zip-safe = false
include-package-data = true
platforms = ["Linux", "Mac OS X", "Windows"]
license-files = ["LICENSE"]

[tool.setuptools.packages]
find = {namespaces = false}

[tool.setuptools.dynamic]
version = {attr = "jupyterlab_widgets._version.__version__"}
37 changes: 0 additions & 37 deletions python/jupyterlab_widgets/setup.cfg

This file was deleted.

51 changes: 47 additions & 4 deletions python/widgetsnbextension/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,38 @@
[build-system]
# These are the assumed default build requirements from pip:
# https://pip.pypa.io/en/stable/reference/pip/#pep-517-and-518-support
requires = ["jupyter_packaging~=0.10,<2"]
build-backend = "jupyter_packaging.build_api"

[project]
name = "widgetsnbextension"
authors = [{name = "Jupyter Development Team", email = "jupyter@googlegroups.com"}]
description = "Jupyter interactive widgets for Jupyter Notebook"
license = {text = "BSD 3-Clause License"}
keywords = ["Interactive", "Interpreter", "Shell", "Web", "notebook", "widgets", "Jupyter"]
classifiers = [
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"Intended Audience :: Science/Research",
"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",
"Programming Language :: Python :: 3 :: Only",
"Framework :: Jupyter",
]
urls = {Homepage = "http://jupyter.org"}
requires-python = ">=3.7"
dynamic = ["version"]

[project.readme]
file = "README.md"
content-type = "text/markdown"

[tool.check-manifest]
ignore = ["widgetnbextension/static/**", "yarn.lock", ".*", "package-lock.json"]

[tool.jupyter-packaging.options]
skip-if-exists = ["widgetnbextension/static/extension.js"]
Expand All @@ -14,5 +45,17 @@ factory = "jupyter_packaging.npm_builder"
build_cmd = "build"
npm = ["yarn"]

[tool.check-manifest]
ignore = ["widgetnbextension/static/**", "yarn.lock", ".*", "package-lock.json"]
[tool.setuptools]
zip-safe = false
include-package-data = true
platforms = ["Linux", "Mac OS X", "Windows"]
license-files = ["LICENSE"]

[tool.setuptools.packages]
find = {namespaces = false}

[tool.setuptools.package-data]
widgetsnbextension = ["widgetsnbextension/static/extension.js"]

[tool.setuptools.dynamic]
version = {attr = "widgetsnbextension._version.__version__"}
37 changes: 0 additions & 37 deletions python/widgetsnbextension/setup.cfg

This file was deleted.