-
-
Notifications
You must be signed in to change notification settings - Fork 52
/
Copy pathpyproject.toml
134 lines (119 loc) · 3.94 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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
[build-system]
build-backend = 'setuptools.build_meta'
requires = ['setuptools', 'setuptools-scm']
[project]
name = 'portalocker'
dynamic = ['version']
authors = [{ name = 'Rick van Hattem', email = '[email protected]' }]
license = { text = 'BSD-3-Clause' }
description = 'Wraps the portalocker recipe for easy usage'
keywords = ['locking', 'locks', 'with', 'statement', 'windows', 'linux', 'unix']
readme = 'README.rst'
classifiers = [
'Development Status :: 5 - Production/Stable',
'Development Status :: 6 - Mature',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Operating System :: MacOS :: MacOS X',
'Operating System :: MacOS',
'Operating System :: Microsoft :: MS-DOS',
'Operating System :: Microsoft :: Windows',
'Operating System :: Microsoft',
'Operating System :: POSIX :: BSD :: FreeBSD',
'Operating System :: POSIX :: BSD',
'Operating System :: POSIX :: Linux',
'Operating System :: POSIX :: SunOS/Solaris',
'Operating System :: POSIX',
'Operating System :: Unix',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3',
'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 :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: IronPython',
'Programming Language :: Python :: Implementation :: PyPy',
'Programming Language :: Python :: Implementation',
'Programming Language :: Python',
'Topic :: Education :: Testing',
'Topic :: Office/Business',
'Topic :: Other/Nonlisted Topic',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Software Development :: Libraries',
'Topic :: System :: Monitoring',
'Typing :: Typed',
]
requires-python = '>=3.9'
dependencies = [
'pywin32>=226; platform_system == "Windows"',
]
[project.urls]
bugs = 'https://github.com/wolph/portalocker/issues'
documentation = 'https://portalocker.readthedocs.io/en/latest/'
repository = 'https://github.com/wolph/portalocker/'
[project.optional-dependencies]
docs = ['sphinx>=1.7.1']
tests = [
'pytest>=5.4.1',
'pytest-cov>=2.8.1',
'pytest-timeout>=2.1.0',
'sphinx>=6.0.0',
'pytest-mypy>=0.8.0',
'types-redis',
'redis',
'pytest-rerunfailures>=15.0',
]
redis = ['redis']
[tool.setuptools]
platforms = ['any']
include-package-data = false
[tool.setuptools.dynamic]
version = { attr = 'portalocker.__about__.__version__' }
[tool.setuptools.packages.find]
include = ['portalocker']
[tool.setuptools.package-data]
portalocker = ['py.typed', 'msvcrt.pyi']
[tool.black]
line-length = 79
skip-string-normalization = true
[tool.codespell]
skip = '*/htmlcov,./docs/_build,*.asc'
[tool.pyright]
include = ['portalocker', 'portalocker_tests']
exclude = ['dist/*']
strict = ['portalocker']
[tool.mypy]
python_version = '3.9'
strict = true
warn_return_any = true
warn_unused_configs = true
warn_unused_ignores = false
packages = ['portalocker', 'portalocker_tests']
ignore_missing_imports = true
check_untyped_defs = true
exclude = ['dist', 'docs', '.venv', 'venv']
enable_error_code = ['ignore-without-code', 'truthy-bool', 'redundant-expr']
warn_unreachable = true
[[tool.mypy.overrides]]
module = ['portalocker_tests.*']
disallow_untyped_defs = false
[dependency-groups]
dev = [
'portalocker[tests]',
]
[tool.ruff]
src = ['portalocker', 'portalocker_tests']
include = ['portalocker/**/*.py', 'portalocker_tests/**/*.py']
[tool.repo-review]
ignore = [
'PY004', # no /docs
'PY007', # tox configured in tox.toml
'PP301', # pytest is irrelevant
'PC111', # no blacken-docs because markdown has no code
'PC140', # manual typecheck pre-commit hooks
'PC170', # no pygrep-hooks because no rST
'RTD', # no RTD
]