Skip to content

Commit a82e1dd

Browse files
committed
packaging: replace deprecated setup.cfg with pyproject.toml
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
1 parent ff99c66 commit a82e1dd

File tree

2 files changed

+75
-81
lines changed

2 files changed

+75
-81
lines changed

pyproject.toml

+75-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,81 @@
11
[build-system]
2-
requires = ["setuptools>=56", "setuptools_scm[toml]>=3.4.1"]
2+
requires = ["setuptools>=61.2", "setuptools_scm[toml]>=6.0"]
33
build-backend = "setuptools.build_meta"
44

5+
[project]
6+
name = "jsonpickle"
7+
authors = [
8+
{ name = "Theelx" },
9+
{ name = "David Aguilar", email = "[email protected]" },
10+
]
11+
description = "jsonpickle encodes/decodes any Python object to/from JSON"
12+
13+
classifiers = [
14+
"Development Status :: 5 - Production/Stable",
15+
"Intended Audience :: Developers",
16+
"License :: OSI Approved :: BSD License",
17+
"Programming Language :: Python :: 3",
18+
"Programming Language :: Python :: 3 :: Only",
19+
]
20+
requires-python = ">=3.7"
21+
dependencies = [
22+
]
23+
dynamic = ["version"]
24+
25+
[project.readme]
26+
file = "README.rst"
27+
content-type = "text/x-rst"
28+
29+
[project.urls]
30+
Documentation = "https://jsonpickle.readthedocs.io/"
31+
Homepage = "https://jsonpickle.readthedocs.io/"
32+
Source = "https://github.com/jsonpickle/jsonpickle"
33+
34+
[project.optional-dependencies]
35+
testing = [
36+
# core
37+
"pytest >= 6.0, != 8.1.*",
38+
"pytest-benchmark",
39+
"pytest-benchmark[histogram]",
40+
"pytest-cov",
41+
"pytest-checkdocs >= 1.2.3",
42+
"pytest-enabler >= 1.0.1",
43+
"pytest-ruff >= 0.2.1",
44+
# local
45+
"bson",
46+
"ecdsa",
47+
"feedparser",
48+
"gmpy2",
49+
"numpy",
50+
"pandas",
51+
"pymongo",
52+
"scikit-learn",
53+
"scipy>=1.9.3; python_version > '3.10'",
54+
"scipy; python_version <= '3.10'",
55+
"simplejson",
56+
"sqlalchemy",
57+
"ujson",
58+
]
59+
docs = [
60+
"sphinx >= 3.5",
61+
"rst.linker >= 1.9",
62+
"furo",
63+
]
64+
packaging = [
65+
"build",
66+
"twine",
67+
"setuptools>=61.2",
68+
"setuptools_scm[toml]>=6.0",
69+
]
70+
71+
[tool.setuptools]
72+
packages = [
73+
"jsonpickle",
74+
"jsonpickle.ext",
75+
]
76+
include-package-data = true
77+
license-files = ["LICENSE"]
78+
579
[tool.black]
680
skip-string-normalization = true
781

setup.cfg

-80
This file was deleted.

0 commit comments

Comments
 (0)