diff --git a/pyproject.toml b/pyproject.toml index 63a68fb..db57f81 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,6 +2,44 @@ requires = ["setuptools", "wheel"] build-backend = "setuptools.build_meta" +[project] +name = "nionswift-eels-analysis" +version = "0.6.13" +authors = [ + { name = "Nion Software", email = "swift@nion.com" } +] +description = "Nion UI framework." +readme = "README.rst" +requires-python = ">=3.12" +license = "GPL-3.0-only" +classifiers = [ + "Development Status :: 4 - Beta", + "Intended Audience :: Developers", + "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", + "Programming Language :: Python :: 3.14" +] +urls = { "Homepage" = "https://github.com/nion-software/nionui" } +dependencies = [ + "nionswift >=16.16,<17.0", + "nionui >=10.2,<11.0", + "numpy >=2.0,<3.0" +] + +[tool.setuptools.packages.find] +include = [ + "nion", + "nion.eels_analysis", + "nion.eels_analysis.test", + "nionswift_plugin", + "nionswift_plugin.nion_eels_analysis", + "nionswift_plugin.nion_eels_analysis.test" +] + +[tool.setuptools.package-data] +"nion.eels_analysis" = ["resources/*"] +"nionswift_plugin.nion_eels_analysis" = ["resources/color_maps/*"] + [tool.pytest.ini_options] testpaths = [ "nionswift_plugin/nion_eels_analysis/test", diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index 5ca16f9..0000000 --- a/setup.cfg +++ /dev/null @@ -1,41 +0,0 @@ -[metadata] -name = nionswift-eels-analysis -version = 0.6.13 -author = Nion Software -author_email = swift@nion.com -description = Library and UI for doing EELS analysis with Nion Swift. -long_description = file: README.rst, CHANGES.rst -url = https://github.com/nion-software/eels-analysis -license = GPL-3.0-only -classifiers = - Development Status :: 4 - Beta - License :: OSI Approved :: GNU General Public License v3 (GPLv3) - Programming Language :: Python :: 3.11 - Programming Language :: Python :: 3.12 - Programming Language :: Python :: 3.13 - -[options] -packages = find_namespace: -python_requires = >=3.11 -install_requires = - nionswift >=16.16,<17.0 - nionui >=10.2,<11.0 - numpy >=2.0,<3.0 -tests_require = - nionswift - nionswift-io - -[options.package_data] -nion.eels_analysis = - resources/* -nionswift_plugin.nion_eels_analysis = - resources/color_maps/* - -[options.packages.find] -include = - nion - nion.eels_analysis - nion.eels_analysis.test - nionswift_plugin - nionswift_plugin.nion_eels_analysis - nionswift_plugin.nion_eels_analysis.test diff --git a/setup.py b/setup.py deleted file mode 100755 index 7f1a176..0000000 --- a/setup.py +++ /dev/null @@ -1,4 +0,0 @@ -from setuptools import setup - -if __name__ == "__main__": - setup()