-
-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathpyproject.toml
More file actions
146 lines (127 loc) · 3.81 KB
/
Copy pathpyproject.toml
File metadata and controls
146 lines (127 loc) · 3.81 KB
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
135
136
137
138
139
140
141
142
143
144
145
146
[build-system]
requires = [
"setuptools==82.0.1",
"setuptools_scm==10.2.0",
]
build-backend = "setuptools.build_meta"
[project]
name = "std-nslog"
dynamic = ["version"]
description = "A shim that redirects stderr/stdout to the Apple unified logging system (os_log)"
readme = "README.md"
requires-python = ">=3.10"
license = "BSD-3-Clause"
license-files = ["LICENSE"]
authors = [
{name = "Russell Keith-Magee", email = "russell@keith-magee.com"},
]
keywords = ["apple", "os_log", "nslog", "system log", "macos", "ios"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Operating System :: iOS",
"Operating System :: MacOS :: MacOS X",
"Programming Language :: Python :: 3",
"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 :: 3.15",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Software Development",
"Topic :: Utilities",
]
[project.urls]
Homepage = "https://github.com/beeware/std-nslog"
Funding = "https://beeware.org/contributing/membership/"
Tracker = "https://github.com/beeware/std-nslog/issues"
Source = "https://github.com/beeware/std-nslog"
[dependency-groups]
# Extras used by developers *of* briefcase are pinned to specific versions to
# ensure environment consistency.
pre-commit = [
"pre-commit == 4.6.0",
]
setuptools-scm = [
"setuptools_scm == 10.0.5",
]
tox-uv = [
"tox-uv == 1.35.2",
]
dev = [
{include-group = "pre-commit"},
{include-group = "setuptools-scm"},
{include-group = "tox-uv"},
]
test = [
"pytest == 9.1.1",
{include-group = "setuptools-scm"},
]
[tool.cibuildwheel]
build-frontend = "build"
archs = "all"
# Build a single abi3 wheel against the Python 3.10 stable ABI; the resulting
# wheel is compatible with CPython 3.10, 3.11, 3.12 and 3.13.
build = ["cp310-*"]
[tool.distutils.bdist_wheel]
# Tag the produced wheel as cp310-abi3-... rather than cp310-cp310-...
py-limited-api = "cp310"
[tool.setuptools]
package-dir = {"" = "src"}
py-modules = ["nslog"]
[[tool.setuptools.ext-modules]]
name = "_oslog_shim"
sources = ["src/_oslog_shim.c"]
py-limited-api = true
extra-compile-args = [
# Warn about everything by default
"-Wall",
# Don't complain about the standard `self` argument on METH_VARARGS functions.
"-Wno-unused-parameter",
# Build against the Python 3.10 stable ABI (limited API).
"-DPy_LIMITED_API=0x030A0000"
]
[tool.setuptools_scm]
# To enable SCM versioning, we need an empty tool configuration for setuptools_scm
[tool.ruff.lint]
# In addition to the default rules, these additional rules will be used:
extend-select = [
"E", # pycodestyle
"W", # pycodestyle
"F", # pyflakes
"UP", # pyupgrade
"B", # flake8-bugbear
"YTT", # flake8-2020
"ASYNC", # flake8-async
"C4", # flake8-comprehensions
"I", # isort
# The SIM rules are *very* opinionated, and don't necessarily make for better code.
# They may be worth occasionally turning on just to see if something could actually
# use improvement.
# "SIM", # flake8-simplify
]
[tool.rumdl]
flavor = "mkdocs"
include = ["**/*.md"]
exclude = [
"comment.md",
"CODE_OF_CONDUCT.md",
]
respect-gitignore = true
# Disable rules:
# MD014: Forces commands in codeblocks to show output
# MD033: No inline HTML
disable = [
"MD014",
"MD033",
]
[tool.rumdl.per-file-ignores]
[tool.rumdl.MD013] # Line length
line_length = 999999
reflow = true
reflow_mode = "normalize"
[tool.rumdl.MD026] # Remove punctuation at the end of headings
punctuation = ",;:"
[tool.rumdl.MD061] # Fail on certain strings.
terms = ["TODO"]