Skip to content

Commit

Permalink
packaging: replace deprecated setup.cfg with pyproject.toml
Browse files Browse the repository at this point in the history
Update to the modern practice of a using a single declarative
pyproject.toml file for package configuration.

`setup.cfg` is deprecated and is no longer necessary.

Ref: pypa/setuptools#3214
  • Loading branch information
davvid committed Oct 13, 2024
1 parent ff99c66 commit 735edaf
Show file tree
Hide file tree
Showing 2 changed files with 77 additions and 81 deletions.
78 changes: 77 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,83 @@
[build-system]
requires = ["setuptools>=56", "setuptools_scm[toml]>=3.4.1"]
requires = ["setuptools>=61.2", "setuptools_scm[toml]>=6.0"]
build-backend = "setuptools.build_meta"

[project]
name = "jsonpickle"
authors = [
{ name = "Theelx" },
{ name = "David Aguilar", email = "davvid+jsonpickle@gmail.com" },
]
description = "jsonpickle encodes/decodes any Python object to/from JSON"

classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
]
requires-python = ">=3.7"
dependencies = [
]
dynamic = ["version"]

[project.readme]
file = "README.rst"
content-type = "text/x-rst"

[project.urls]
Documentation = "https://jsonpickle.readthedocs.io/"
Homepage = "https://jsonpickle.readthedocs.io/"
Source = "https://github.com/jsonpickle/jsonpickle"

[project.optional-dependencies]
dev = [
"black",
]
testing = [
# core
"pytest >= 6.0, != 8.1.*",
"pytest-benchmark",
"pytest-benchmark[histogram]",
"pytest-checkdocs >= 1.2.3",
"pytest-enabler >= 1.0.1",
"pytest-ruff >= 0.2.1",
# local
"bson",
"ecdsa",
"feedparser",
"gmpy2",
"numpy",
"pandas",
"pymongo",
"scikit-learn",
"scipy>=1.9.3; python_version > '3.10'",
"scipy; python_version <= '3.10'",
"simplejson",
"sqlalchemy",
"ujson",
]
docs = [
"sphinx >= 3.5",
"rst.linker >= 1.9",
"furo",
]
packaging = [
"build",
"twine",
"setuptools>=61.2",
"setuptools_scm[toml]>=6.0",
]

[tool.setuptools]
packages = [
"jsonpickle",
"jsonpickle.ext",
]
include-package-data = true
license-files = ["LICENSE"]

[tool.black]
skip-string-normalization = true

Expand Down
80 changes: 0 additions & 80 deletions setup.cfg

This file was deleted.

0 comments on commit 735edaf

Please sign in to comment.