Skip to content

Commit

Permalink
Move project metadata to pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
EpicWink authored and bwoodsend committed Sep 28, 2024
1 parent 6e7997f commit 83c0e51
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 37 deletions.
35 changes: 34 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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" }
2 changes: 0 additions & 2 deletions setup.cfg

This file was deleted.

34 changes: 0 additions & 34 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"
],
)


Expand Down

0 comments on commit 83c0e51

Please sign in to comment.