forked from mpmath/mpmath
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
78 lines (78 loc) · 3.17 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
[build-system]
requires = ['setuptools>=61', 'setuptools_scm[toml]>=6.0']
build-backend = 'setuptools.build_meta'
[project]
name = 'mpmath'
description = 'Python library for arbitrary-precision floating-point arithmetic'
authors = [{name = 'Fredrik Johansson', email = '[email protected]'}]
license = {text = 'BSD'}
classifiers = ['License :: OSI Approved :: BSD License',
'Topic :: Scientific/Engineering :: Mathematics',
'Topic :: Software Development :: Libraries :: Python Modules',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: 3.13',
'Programming Language :: Python :: 3.14',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy']
dynamic = ['version']
requires-python = '>=3.8'
[project.readme]
file = 'README.rst'
content-type = 'text/x-rst'
[project.urls]
Homepage = 'https://mpmath.org/'
'Source Code' = 'https://github.com/mpmath/mpmath'
'Bug Tracker' = 'https://github.com/mpmath/mpmath/issues'
Documentation = 'http://mpmath.org/doc/current/'
[project.optional-dependencies]
tests = ['pytest>=6', 'numpy; python_version<"3.14"', 'packaging', 'pytest-timeout',
'matplotlib; platform_python_implementation!="PyPy" and python_version<"3.14"',
'pexpect', 'ipython', 'hypothesis']
develop = ['mpmath[tests]', 'flake518>=1.5; python_version>="3.9"',
'pytest-cov', 'wheel', 'build']
gmpy2 = ['gmpy2>=2.2; platform_python_implementation!="PyPy"']
gmpy = ['mpmath[gmpy2]']
docs = ['sphinx',
'matplotlib; platform_python_implementation!="PyPy" and python_version<"3.14"',
'sphinxcontrib-autoprogram']
ci = ['pytest-xdist', 'diff_cover']
[tool.setuptools]
zip-safe = true
[tool.setuptools.dynamic]
version = {attr = 'setuptools_scm.get_version'}
[tool.setuptools.packages]
find = {namespaces = false}
[tool.flake8]
select = ['E101', 'E111', 'E112', 'E113', 'E501', 'E703', 'E712', 'E713',
'W191', 'W291', 'W292', 'W293', 'W391']
exclude = ['.eggs', '.git']
max_line_length = 200
[tool.pytest.ini_options]
testpaths = ['mpmath', 'docs']
doctest_optionflags = ['IGNORE_EXCEPTION_DETAIL', 'ELLIPSIS']
addopts = "--durations=20 --doctest-modules --doctest-glob='*.rst'"
norecursedirs = ['docs/plots', 'demo', '.eggs', '.git']
filterwarnings = ['error::DeprecationWarning']
xfail_strict = true
timeout = 600
[tool.coverage.run]
branch = true
omit = ['mpmath/tests/*']
[tool.coverage.html]
directory = 'build/coverage/html'
[tool.coverage.report]
exclude_lines = ['pragma: no cover',
'raise NotImplementedError',
'return NotImplemented',
'if __name__ == .__main__.:']
show_missing = true
[tool.isort]
lines_after_imports = 2
atomic = true