Skip to content

Commit

Permalink
setup.cfg->pyproject.toml, setuptools_scm
Browse files Browse the repository at this point in the history
* Move most package configuration to pyproject.toml
* Use setuptools_scm for automated generation of version numbers based on git tags
  • Loading branch information
dweindl committed Oct 8, 2024
1 parent 6aea82e commit 67d19b1
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 64 deletions.
42 changes: 38 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 = "[email protected]" }
]
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
55 changes: 0 additions & 55 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -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 = [email protected]

# 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
Expand All @@ -72,7 +21,3 @@ tests =
scipy
sympy
more-itertools

[bdist_wheel]
# Requires Python 3
universal = False
5 changes: 0 additions & 5 deletions setup.py

This file was deleted.

0 comments on commit 67d19b1

Please sign in to comment.