diff --git a/pyproject.toml b/pyproject.toml index 67941fb..2d5f87a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,9 +1,43 @@ [build-system] -requires = [ - "setuptools>=42", - "wheel" -] +requires = ["setuptools>=64", "setuptools-scm>=8"] build-backend = "setuptools.build_meta" +[project] +name = "fiddy" +description = "Finite difference methods" +readme = "README.md" +dynamic = ["version"] +license = { file = "LICENSE" } +authors = [ + { name = "The fiddy developers", email = "dilan.pathirana@uni-bonn.de" } +] +keywords = ["finite difference", "gradient check", "difference quotient"] +classifiers = [ + "Development Status :: 4 - Beta", + "License :: OSI Approved :: BSD License", + "Operating System :: OS Independent", + "Programming Language :: Python", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.9" +] +dependencies = [ + "joblib", + "numpy", + "pandas" +] +requires-python = ">=3.9" + +[project.urls] +Homepage = "https://github.com/icb-dcm/fiddy" +Documentation = "https://fiddy.readthedocs.io" +Repository = "https://github.com/icb-dcm/fiddy" +"Bug Tracker" = "https://github.com/icb-dcm/fiddy/issues" + +[tool.setuptools.packages.find] +include = ["fiddy*"] + +[tool.setuptools_scm] + [tool.black] line-length = 79 diff --git a/setup.cfg b/setup.cfg index b1d928b..5ff3715 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,54 +1,3 @@ -[metadata] -name = fiddy -version = attr: fiddy.version.__version__ -description = Finite difference methods -long_description = file: README.md -long_description_content_type = text/markdown - -# URLs -url = https://github.com/icb-dcm/fiddy -download_url = https://github.com/icb-dcm/fiddy/releases -project_urls = - Bug Tracker = https://github.com/icb-dcm/fiddy/issues - Documentation = https://fiddy.readthedocs.io - Changelog = https://fiddy.readthedocs.io/en/latest/changelog.html - -# Author information -author = The fiddy developers -author_email = dilan.pathirana@uni-bonn.de - -# License information -license = BSD-3-Clause -license_files = LICENSE - -# Search tags -classifiers = - Development Status :: 4 - Beta - License :: OSI Approved :: BSD License - Operating System :: OS Independent - Programming Language :: Python - Programming Language :: Python :: 3.11 - Programming Language :: Python :: 3.10 - Programming Language :: Python :: 3.9 -keywords = - finite difference - gradient check - -[options] -install_requires = - joblib - numpy - pandas - -python_requires = >=3.9 -include_package_data = True - -# Where is my code -packages = find: - -[options.packages.find] -include = fiddy* - [options.extras_require] all = %(amici)s @@ -72,7 +21,3 @@ tests = scipy sympy more-itertools - -[bdist_wheel] -# Requires Python 3 -universal = False diff --git a/setup.py b/setup.py deleted file mode 100644 index 8ab9498..0000000 --- a/setup.py +++ /dev/null @@ -1,5 +0,0 @@ -# setup.py is still needed for editable installs - -import setuptools - -setuptools.setup()