-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathpyproject.toml
107 lines (95 loc) · 2.08 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
[project]
name = 'pypolyclip'
description = 'A python driver to the polyclip functions'
readme = 'README.md'
license = {file = 'LICENSE.rst'}
authors = [
{name = 'Pypolyclip Developers', email = 'help@stsci.edu'}
]
keywords = [
'computational geometry',
'polygon clipping',
'polygon intersection',
'pixelated images',
'CUBISM',
'polyclip',
]
classifiers = [
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Topic :: Scientific/Engineering :: Astronomy',
]
dynamic = ['version']
requires-python = '>=3.9'
dependencies = ['numpy>=1.23']
[project.urls]
Homepage = 'https://github.com/spacetelescope/pypolyclip'
[project.optional-dependencies]
test = [
'pytest-astropy>=0.11',
'matplotlib',
]
[build-system]
requires = [
'setuptools>=61.2',
'setuptools_scm>=6.2',
'numpy>=2.0.0',
]
build-backend = 'setuptools.build_meta'
[tool.setuptools_scm]
write_to = 'pypolyclip/version.py'
[tool.setuptools]
zip-safe = false
include-package-data = false
[tool.setuptools.packages.find]
namespaces = false
[tool.pytest.ini_options]
minversion = 7.0
testpaths = [
'pypolyclip',
]
addopts = '--color=yes'
xfail_strict = true
remote_data_strict = true
filterwarnings = [
'error',
]
[tool.coverage.run]
omit = [
'pypolyclip/tests/*',
'pypolyclip/*/tests/*',
'pypolyclip/version*',
'*/pypolyclip/tests/*',
'*/pypolyclip/*/tests/*',
'*/pypolyclip/version*',
]
[tool.coverage.report]
exclude_lines = [
'pragma: no cover',
'except ImportError',
'raise AssertionError',
'raise NotImplementedError',
'def main\\(.*\\):',
'pragma: py{ignore_python_version}',
'def _ipython_key_completions_',
]
[tool.isort]
skip_glob = [
'pypolyclip/*__init__.py*',
]
known_first_party = [
'pypolyclip',
]
use_parentheses = true
[tool.black]
force-exclude = """
(
.*
)
"""
[tool.bandit.assert_used]
skips = ['*_test.py', '*/test_*.py']