From 8e38144516929b914d575f8df8cce76032b92805 Mon Sep 17 00:00:00 2001 From: Ian Thomas Date: Wed, 31 Jan 2024 12:47:52 +0000 Subject: [PATCH] Use pyproject.toml instead of setup.cfg --- pyproject.toml | 46 ++++++++++++++++++++++++++++++++++++++++++++++ setup.cfg | 32 -------------------------------- setup.py | 5 ++--- 3 files changed, 48 insertions(+), 35 deletions(-) create mode 100644 pyproject.toml delete mode 100644 setup.cfg diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..b7ec7bd --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,46 @@ +[build-system] +build-backend = "setuptools.build_meta" +requires = ["setuptools"] + +[project] +name = "matplotlib-inline" +description = "Inline Matplotlib backend for Jupyter" +authors = [ + {name = "IPython Development Team", email = "ipython-dev@python.org"}, +] +classifiers = [ + "Development Status :: 5 - Production/Stable", + "Framework :: IPython", + "Framework :: Jupyter", + "Framework :: Jupyter :: JupyterLab", + "Framework :: Jupyter :: JupyterLab :: 3", + "Framework :: Jupyter :: JupyterLab :: 4", + "Intended Audience :: Developers", + "Intended Audience :: Science/Research", + "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", + "Topic :: Multimedia :: Graphics", +] +dependencies = ["traitlets"] +dynamic = ["version"] +keywords = [ + "ipython", + "jupyter", + "matplotlib", + "python", +] +license = {file = "LICENSE"} +readme = "README.md" +requires-python = ">=3.8" + +[project.urls] +Homepage = "https://github.com/ipython/matplotlib-inline" + +[tool.setuptools.dynamic] +version = {attr = "matplotlib_inline.__version__"} diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index 39ee9d5..0000000 --- a/setup.cfg +++ /dev/null @@ -1,32 +0,0 @@ -[metadata] -name = matplotlib-inline -version = attr: matplotlib_inline.__version__ -description = Inline Matplotlib backend for Jupyter -long_description = file: README.md, LICENSE -long_description_content_type = text/markdown -author = IPython Development Team -author_email = ipython-dev@python.org -url = https://github.com/ipython/matplotlib-inline -license = BSD 3-Clause -license_file = LICENSE -keywords = python, ipython, matplotlib, jupyter - -[options] -packages = find: -python_requires = >=3.5 -install_requires = - traitlets -classifiers = - Framework :: Jupyter - Intended Audience :: Developers - Intended Audience :: Science/Research - License :: OSI Approved :: BSD License - Programming Language :: Python - Programming Language :: Python :: 3 - Programming Language :: Python :: 3 :: Only - Programming Language :: Python :: 3.5 - Programming Language :: Python :: 3.6 - Programming Language :: Python :: 3.7 - Programming Language :: Python :: 3.8 - Programming Language :: Python :: 3.9 - Programming Language :: Python :: 3.10 diff --git a/setup.py b/setup.py index 6068493..b6c6681 100644 --- a/setup.py +++ b/setup.py @@ -1,3 +1,2 @@ -from setuptools import setup - -setup() +# setup.py shim for use with applications that require it. +__import__("setuptools").setup()