-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathpyproject.toml
More file actions
80 lines (69 loc) · 2.71 KB
/
pyproject.toml
File metadata and controls
80 lines (69 loc) · 2.71 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
[tool.poetry]
name = "python-manatools"
version = "0.99.2"
description = "Framework to build ManaTools applications"
license = "LGPL-2.1-or-later"
readme = "README.md"
homepage = "https://github.com/manatools/python-manatools"
repository = "https://github.com/manatools/python-manatools"
authors = [
"Angelo Naselli <anaselli@linux.it>",
]
maintainers = [
"Angelo Naselli <anaselli@linux.it>",
"Neal Gompa <neal@gompa.dev>",
]
packages = [
{ include = "manatools"},
]
include = [
# Wheel: compiled .mo translation files generated by the po_build.py build hook.
# pip/virtualenv installs find them via the relative path lookup in _get_translation().
# Packagers installing to /usr/share/locale should use tools/po-compile.sh instead.
{ path = "share/locale/**/*.mo", format = "wheel" },
# Sdist: everything a packager needs to rebuild translations from source.
{ path = "NEWS", format = "sdist" },
{ path = "po/*.po", format = "sdist" },
{ path = "tools/po_build.py", format = "sdist" },
{ path = "share/**", format = "sdist" },
{ path = "tools/**", format = "sdist" },
]
# NOTE: intentionally NO build hook here.
# Having `build = "po_build.py"` would cause Poetry to set pure_lib=false in the
# WHEEL metadata, producing a platform+version-specific wheel
# (e.g. cp310-cp310-manylinux_2_36_x86_64) instead of a pure-Python wheel
# (py3-none-any / noarch). This breaks RPM packaging which declares the package
# as noarch, and causes pythondistdeps.py to fail with "metadata missing or
# corrupted".
#
# Instead, compile .mo files manually BEFORE building the wheel/sdist:
# python3 po_build.py # → share/locale/**/*.mo
# pip wheel . -w dist/ # picks them up via the include directive above
#
# Packagers (RPM/DEB) should do the same in their spec:
# python3 po_build.py # (or tools/po-compile.sh for /usr/share/locale/)
# %pyproject_wheel or pip install --no-build-isolation .
classifiers = [
# classifier: http://pypi.python.org/pypi?%3Aaction=list_classifiers
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Operating System :: POSIX :: Linux",
"Topic :: System :: Operating System",
]
[tool.poetry.urls]
"Bug Tracker" = "https://github.com/manatools/python-manatools/issues"
[tool.poetry.dependencies]
python = "^3.9"
dbus-python = "*"
python-gettext = "*"
PyYAML = "*"
# Optional dependencies for gui backend extras
PySide6 = { version = ">=6.5", optional = true }
PyCairo = { version = "*", optional = true }
PyGObject = { version = ">=3.42", optional = true }
[tool.poetry.extras]
qt = [ "PySide6" ]
gtk = [ "PyCairo", "PyGObject" ]
[build-system]
requires = ["poetry-core>=1.2.0"]
build-backend = "poetry.core.masonry.api"