diff --git a/pyproject.toml b/pyproject.toml index b69adcb..b385deb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,10 +1,43 @@ [build-system] build-backend = "setuptools.build_meta" requires = [ - "setuptools", + "setuptools >= 61.0", "cython", # NumPy must be locked in order to support 1.x and 2.x "numpy==2.0; python_version >= '3.9'", # Unless building for a Python version that NumPy 2.x doesn't support "oldest-supported-numpy; python_version <= '3.8'", ] + +[project] +name = "pyfqmr" +authors = [ + { name = "kramer84" }, +] +description = "cython wrapper around C++ library for fast triangular mesh reduction" +readme = "README.rst" +license = { text = "MIT" } + +classifiers = [ + "Development Status :: 2 - Pre-Alpha", + "Intended Audience :: Science/Research", + "Operating System :: OS Independent", + "Programming Language :: Python", + "Topic :: Scientific/Engineering", + "License :: OSI Approved :: MIT License", + "Natural Language :: English", +] + +dependencies = [] + +dynamic = ["version"] + +[project.urls] +Homepage = "https://github.com/Kramer84/pyfqmr-Fast-quadric-Mesh-Reduction" + +[tool.setuptools] +include-package-data = true +packages = ["pyfqmr"] + +[tool.setuptools.dynamic] +version = { file = "VERSION" } diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index ddb7da9..0000000 --- a/setup.cfg +++ /dev/null @@ -1,2 +0,0 @@ -[metadata] -description_file = README.rst diff --git a/setup.py b/setup.py index ea89919..cf9b558 100644 --- a/setup.py +++ b/setup.py @@ -6,15 +6,6 @@ # setup file based on: # https://github.com/AshleySetter/HowToPackageCythonAndCppFuncs - -# load version -with open("VERSION", 'r') as f_vers: - version = f_vers.read() - -# load readme -with open('README.rst') as f_read: - readme = f_read.read() - extensions = [ Extension( name = "pyfqmr.Simplify", # name/path of generated .so file @@ -24,32 +15,7 @@ ] setup( - name = "pyfqmr", - version = version, - description = "cython wrapper around C++ library for fast triangular mesh reduction", - author = "kramer84", - url = "https://github.com/Kramer84/pyfqmr-Fast-quadric-Mesh-Reduction", - license = 'MIT', - include_package_data = True, - packages = - [ - 'pyfqmr' - ], ext_modules = extensions, - long_description = readme, - install_requires = [ - "numpy", - ], - classifiers = - [ - "Development Status :: 2 - Pre-Alpha", - "Intended Audience :: Science/Research", - "Operating System :: OS Independent", - "Programming Language :: Python", - "Topic :: Scientific/Engineering", - "License :: OSI Approved :: MIT License", - "Natural Language :: English" - ], )