From 9b5bac702f7db314d898759f91a36dd5cfc181a3 Mon Sep 17 00:00:00 2001 From: Chris Meyer <34664+cmeyer@users.noreply.github.com> Date: Tue, 9 Sep 2025 13:14:34 -0700 Subject: [PATCH] Eliminate setup.cfg/py in favor of pyproject.toml. --- pyproject.toml | 25 +++++++++++++++++++++++++ setup.cfg | 25 ------------------------- setup.py | 4 ---- 3 files changed, 25 insertions(+), 29 deletions(-) delete mode 100644 setup.cfg delete mode 100644 setup.py diff --git a/pyproject.toml b/pyproject.toml index 32d7245..c012c98 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,6 +2,31 @@ requires = ["setuptools", "wheel"] build-backend = "setuptools.build_meta" +[project] +name = "nionutils" +version = "4.14.1" +authors = [ + { name = "Nion Software", email = "swift@nion.com" } +] +description = "Nion utility classes." +readme = "README.rst" +requires-python = ">=3.11" +license = "Apache-2.0" +classifiers = [ + "Development Status :: 5 - Production/Stable", + "Intended Audience :: Developers", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13" +] +urls = { "Homepage" = "https://github.com/nion-software/nionutils" } + +[tool.setuptools.packages.find] +include = ["nion", "nion.utils", "nion.utils.test"] + +[tool.setuptools.package-data] +"nion.utils" = ["py.typed"] + [tool.pytest.ini_options] testpaths = [ "nion/utils" diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index 779baf2..0000000 --- a/setup.cfg +++ /dev/null @@ -1,25 +0,0 @@ -[metadata] -name = nionutils -version = 4.14.1 -author = Nion Software -author_email = swift@nion.com -description = Nion utility classes. -long_description = file: README.rst, CHANGES.rst, LICENSE.rst -url = https://github.com/nion-software/nionutils -license = Apache-2.0 -classifiers = - Development Status :: 5 - Production/Stable - License :: OSI Approved :: Apache Software License - Programming Language :: Python :: 3.11 - Programming Language :: Python :: 3.12 - Programming Language :: Python :: 3.13 - -[options] -packages = find_namespace: -python_requires = >=3.11 - -[options.packages.find] -include = nion, nion.utils, nion.utils.test - -[options.package_data] -nion.utils = py.typed diff --git a/setup.py b/setup.py deleted file mode 100644 index 7f1a176..0000000 --- a/setup.py +++ /dev/null @@ -1,4 +0,0 @@ -from setuptools import setup - -if __name__ == "__main__": - setup()