-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
152 lines (134 loc) · 4.01 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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
# This Python file uses the following encoding: utf-8
#
# SPDX-FileCopyrightText: 2023 Raphaël Doursenaud <rdoursenaud@free.fr>
#
# SPDX-License-Identifier: GPL-3.0-or-later
# https://packaging.python.org
[build-system]
requires = ['hatchling']
build-backend = 'hatchling.build'
[project] # https://packaging.python.org/en/latest/specifications/declaring-project-metadata
name = "denonremote" # https://peps.python.org/pep-0503/
description = "A desktop GUI remote for the Denon DN-500 AV receiver."
readme = 'README.md'
requires-python = '~=3.10'
# https://peps.python.org/pep-0508
# https://peps.python.org/pep-0440/#version-specifiers
dependencies = [
'kivy[sdl2]==2.3.0', # Remember to also update kivy.require() in gui.py
'pystray==0.19.5',
'twisted==23.10.0',
'KivyOnTop==1.4',
'pillow==10.2',
]
license = { file = 'LICENSE' }
authors = [
{ name = "Raphaël Doursenaud", email = 'rdoursenaud@free.fr' }
]
keywords = [
"Remote control",
"Denon",
"DN-500AV",
]
classifiers = [
'Development Status :: 4 - Beta',
'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
'Environment :: Win32 (MS Windows)',
'Environment :: MacOS X',
'Environment :: X11 Applications',
'Framework :: Twisted',
'Intended Audience :: End Users/Desktop',
'Natural Language :: English',
# 'Operating System :: Microsoft :: Windows :: Windows 8.1', # TODO: test
'Operating System :: Microsoft :: Windows :: Windows 10',
'Operating System :: Microsoft :: Windows :: Windows 11',
'Operating System :: MacOS :: MacOS X',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
# 'Topic :: Documentation :: Sphinx', # TODO
'Topic :: Home Automation',
# 'Topic :: Internet', # TODO: implement RTP-MIDI support
'Topic :: Multimedia :: Sound/Audio',
'Topic :: Scientific/Engineering :: Human Machine Interfaces',
'Topic :: Utilities',
'Typing :: Typed',
] # https://pypi.org/classifiers/
dynamic = [
'version',
]
[project.urls]
Homepage = 'https://github.com/ematech/denonremote'
Issues = 'https://github.com/ematech/denonremote/issues'
[project.gui-scripts]
denonremote = "denonremote.__main__:main"
[tool.hatch.version]
path = 'src/denonremote/__about__.py'
[tool.hatch.envs.default]
python = '3.12'
dependencies = [
'hatchling', # Required for the custom hook
]
[[tool.hatch.envs.test.matrix]]
python = [
'3.10',
'3.11',
'3.12',
]
[tool.hatch.envs.test]
dependencies = [
'pylint',
'darglint2',
'pytest',
'pytest-cov',
]
[tool.hatch.envs.test.scripts]
srclint = 'pylint src/'
doclint = 'darglint2 -s sphinx src/'
lint = 'srclint && doclint'
cov = 'pytest --cov-report=term-missing --cov-config=pyproject.toml --cov=hatch_demo --cov=tests'
no-cov = 'cov --no-cov'
[tool.hatch.envs.docs]
dependencies = [
'Sphinx',
]
[tool.hatch.envs.build]
dependencies = [
'hatchling',
'pyinstaller',
'Nuitka',
#'buildozer',
]
[tool.hatch.envs.build.scripts]
pyinstaller = 'PyInstaller --clean --upx-dir=c:\upx-3.96-win64 denonremote.spec'
nuitka = 'python -m nuitka --jobs=32 --onefile src/denonremote --include-package=denonremote --include-package-data=denonremote --include-package=kivy --include-package=pystray --include-package=twisted --include-package=KivyOnTop --include-package=pygments --disable-console --windows-icon-from-ico=icon.ico'
[tool.coverage.run]
branch = true
parallel = true
omit = [
'src/denonremote/__about__.py',
]
[tool.coverage.report]
exclude_lines = [
'no cov',
'if __name__ == .__main__.:',
'if TYPE_CHECKING:',
]
[tool.hatch.build.hooks.custom]
[tool.hatch.build.targets.sdist]
exclude = [
'/.github',
'/.gitignore',
'/.buildozer',
'/build',
'/data',
'/dist',
'/docs',
]
[tool.hatch.build.targets.wheel]
packages = [
'src/denonremote',
]