Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
133 lines (115 loc) · 2.94 KB
/
Copy pathpyproject.toml
File metadata and controls
133 lines (115 loc) · 2.94 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
# SPDX-FileCopyrightText: 2024 The pypackaging-native developers
#
# SPDX-License-Identifier: MIT
[build-system]
backend-path = ['src']
# build-backend = 'mesonpy'
# requires = ['meson-python>=0.18.0']
build-backend = 'buildhack'
requires = ['meson-python>=0.18.0', 'wheel']
[project]
name = 'pkgconf'
version = '3.0.7-0'
description = '`pkgconf` is a program which helps with discovering library dependencies and configuring compiler and linker flags.'
readme = 'README.md'
license = 'MIT'
license-files = ['LICENSE']
authors = [
{name = 'Ralf Gommers', email = 'ralf.gommers@gmail.com'},
{name = 'Filipe Laíns', email = 'lains@riseup.net'}
]
classifiers = [
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Programming Language :: C',
'Topic :: Software Development',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
'Operating System :: Unix',
'Operating System :: MacOS'
]
requires-python = '>= 3.10'
dependencies = [
'colorama; os_name == "nt"',
]
[project.optional-dependencies]
test = [
'pytest',
'pytest-cov >= 5',
'pytest-mock >= 2',
'pytest-order >= 1',
'pytest-github-actions-annotate-failures',
'meson-python',
'environment-helpers >= 0.1.3',
]
docs = [
'sphinx ~= 7.0',
'furo',
'sphinx-design'
]
[project.scripts]
pkg-config = 'pkgconf.__main__:_vanilla_entrypoint'
pkgconf = 'pkgconf.__main__:_vanilla_entrypoint'
pkgconf-pypi = 'pkgconf.__main__:_python_aware_entrypoint'
[project.urls]
homepage = 'https://pkgconf-pypi.readthedocs.io/en/latest/'
issues = 'https://github.com/pypackaging-native/pkgconf-pypi/issues'
source = 'https://github.com/pypackaging-native/pkgconf-pypi'
[tool.meson-python.args]
install = ['--tags=python-runtime']
# setup = ['--prefix=/build']
[tool.cibuildwheel]
# Build is Python-independent, so we select a single Python version (doesn't
# matter which one) to ensure we get one build per platform
build = 'cp311-*'
[tool.cibuildwheel.macos.environment]
MACOSX_DEPLOYMENT_TARGET = '10.9'
[tool.cibuildwheel.windows]
config-settings = 'setup-args=--vsenv build-dir=build'
[tool.mypy]
files = 'src'
python_version = '3.10'
show_error_codes = true
strict = true
[tool.ruff]
line-length = 127
[tool.ruff.format]
quote-style = 'single'
[tool.ruff.lint]
extend-select = [
'B', # flake8-bugbear
'C4', # flake8-comprehensions
'C9', # mccabe
'I', # isort
'PGH', # pygrep-hooks
'RUF', # ruff
'UP', # pyupgrade
'W', # pycodestyle
'YTT', # flake8-2020
'TRY', # tryceratops
'EM' # flake8-errmsg
]
[tool.ruff.lint.isort]
lines-after-imports = 2
lines-between-types = 1
[tool.ruff.lint.per-file-ignores]
'tests/packages/error-on-import/**' = ['TRY002', 'TRY003', 'EM101']
[tool.coverage.run]
source = [
'pkgconf',
'tests',
]
source_pkgs = [
'pkgconf',
'tests',
]
[tool.coverage.paths]
build = [
'src',
'*/site-packages',
'*\site-packages',
]
[tool.coverage.report]
exclude_also = [
'^\s*raise NotImplementedError\b',
]