File: pyproject.toml

package info (click to toggle)
pygobject 3.55.3-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 5,728 kB
  • sloc: ansic: 39,419; python: 26,856; sh: 114; makefile: 81; xml: 35; cpp: 1
file content (126 lines) | stat: -rw-r--r-- 3,011 bytes parent folder | download | duplicates (3)
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
[project]
name = "PyGObject"
description = "Python bindings for GObject Introspection"
readme = 'README.rst'
license = { file = 'COPYING' }
authors = [
    { name="James Henstridge", email="james@daa.com.au" }
]
maintainers = [
    { name="Christoph Reiter", email="creiter@src.gnome.org" },
    { name="Arjan Molenaar", email="amolenaar@gnome.org" },
    { name="Dan Yeaw", email="danyeaw@gnome.org" },
    { name="Ignacio Casal Quinteiro", email="icq@gnome.org" },
]
classifiers = [
    "Development Status :: 5 - Production/Stable",
    "Intended Audience :: Developers",
    "License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)",
    "Operating System :: POSIX",
    "Operating System :: Microsoft :: Windows",
    "Programming Language :: C",
    "Programming Language :: Python",
    "Topic :: Software Development :: Libraries :: Python Modules",
]
requires-python = ">=3.10"
dependencies = [
    "pycairo>=1.16"
]
dynamic = ["version"]

[project.urls]
Homepage = "https://pygobject.gnome.org"
Repository = "https://gitlab.gnome.org/GNOME/pygobject.git"
Changelog = "https://gitlab.gnome.org/GNOME/pygobject/-/blob/main/NEWS"

[tool.pdm.dev-dependencies]
lint = [
    "pre-commit",
]
build = [
    # Setuptools 74 removed msvccompiler, required by g-ir-scanner (<1.82.0)
    # See https://gitlab.gnome.org/GNOME/gobject-introspection/-/issues/515
    "setuptools<74",
    "meson-python",
    "ninja",
    "pycairo",
]
test = [
    "pytest!=9.0.0",
    "pytest-cov",
]
docs = [
    "sphinx",
    "pydata-sphinx-theme",
    "sphinx-copybutton>=0.5.2",
]

[tool.pdm.options]
install = [
    "--no-isolation",
    "--config-setting=setup-args=-Dtests=true",
    "--config-setting=setup-args=-Dbuildtype=debug",
    "--config-setting=editable-verbose=true",
]
build = [
    "--no-wheel",
    "--config-setting=setup-args=-Dtests=true",
]

[tool.meson-python.args]
setup = ["-Dtests=false", "-Dwheel=true", "--wrap-mode=nofallback"]
dist = ["--include-subprojects"]

[tool.pytest.ini_options]
testpaths = [
    "tests",
]
python_files = "test_*.py"
addopts = [
    "--import-mode=importlib",
]

[tool.ruff]
extend-include = ["docs/**/*.rst"]
extend-exclude = ["subprojects", "COPYING"]

[tool.ruff.lint]
extend-select = [
    "UP",    # pyupgrade
    "E",     # pycodestyle error
    "W",     # pycodestyle warning
    "D",     # pydocstyle
    "R",     # refactor
    "C4",    # flake8-comprehensions
    "ASYNC", # flake8-async
    "EXE",   # flake8-executable
    "T20",   # flake8-print
    "SIM",   # flake8-simplify
    "RUF",   # extra ruff rules
    "PERF",  # perflint
]
ignore = [
    "D1",
    "D211",
    "D203",
    "D213",
    "D4",
    "D205",
    "E402",
    "E501",
    "E731",
    "E722",
    "RUF012",
]

[tool.ruff.lint.per-file-ignores]
"docs/tutorials/**/*py" = ["T20", "SIM905"]
"fixup-lcov-paths.py" = ["T20"]


[tool.ruff.format]
docstring-code-format = true

[build-system]
build-backend = "mesonpy"
requires = ["meson-python>=0.12.1", "pycairo>=1.16"]