forked from r0x0r/pywebview
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
139 lines (119 loc) · 4.18 KB
/
pyproject.toml
File metadata and controls
139 lines (119 loc) · 4.18 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
[build-system]
requires = ["setuptools", "setuptools_scm[toml]"]
build-backend = "setuptools.build_meta"
[project]
name = "pywebview"
authors = [{ name = "Roman Sirokov", email = "roman@flowrl.com" }]
description = "Build GUI for your Python program with JavaScript, HTML, and CSS"
keywords = ["gui", "webkit", "html", "web"]
requires-python = ">=3.7"
license = { file = "LICENSE" }
classifiers = [
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Environment :: MacOS X",
"Environment :: Win32 (MS Windows)",
"Environment :: X11 Applications :: GTK",
"Environment :: X11 Applications :: Qt",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Software Development :: Libraries :: Application Frameworks",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: User Interfaces",
]
dependencies = [
"pythonnet;sys_platform=='win32'",
"pyobjc-core>=9.0;sys_platform=='darwin'",
"pyobjc-framework-Cocoa>=9.0;sys_platform=='darwin'",
"pyobjc-framework-Quartz>=9.0;sys_platform=='darwin'",
"pyobjc-framework-WebKit>=9.0;sys_platform=='darwin'",
"pyobjc-framework-security>=9.0;sys_platform=='darwin'",
"pyobjc-framework-UniformTypeIdentifiers>=9.0;sys_platform=='darwin'",
"QtPy;sys_platform=='openbsd6'",
"importlib_resources; python_version < '3.9'",
"proxy_tools",
"bottle",
"typing_extensions"
]
dynamic = ["version"]
[project.optional-dependencies]
cef = ["cefpython3"]
gtk = ["PyGObject==3.50.0", "PyGObject-stubs"]
pyside2 = ["QtPy", "PySide2"]
pyside6 = ["QtPy", "PySide6"]
qt = ["QtPy", "PyQt6", "PyQt6-WebEngine"]
qt5 = ["QtPy", "PyQt5", "pyqtwebengine"]
qt6 = ["QtPy", "PyQt6", "PyQt6-WebEngine"]
android = ["jnius"]
ssl = ["cryptography"]
dev = ["ruff", "pre-commit", "pytest", "build", "twine"]
[project.urls]
Homepage = "https://pywebview.flowrl.com/"
Repository = "https://github.com/r0x0r/pywebview"
[tool.build-system]
exclude = [
"docs/*",
"tests/*",
"examples/*",
".github/*",
"logo/*",
"appveyor.yml",
".*"
]
[tool.ruff]
# Same as Black.
line-length = 100
indent-width = 4
# Assume Python 3.8+
target-version = "py38"
[tool.ruff.lint]
# Enable Pyflakes (`F`) and a subset of the pycodestyle (`E`) codes by default.
# Unlike Flake8, Ruff doesn't enable pycodestyle warnings (`W`) or
# McCabe complexity (`C901`) by default.
select = ["E4", "E7", "E9", "F", "I", "UP"]
ignore = []
# Allow fix for all enabled rules (when `--fix`) is provided.
fixable = ["ALL"]
unfixable = []
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[tool.ruff.lint.isort]
known-first-party = ["webview"]
[tool.ruff.format]
# Use single quotes for strings.
quote-style = "single"
# Like Black, indent with spaces, rather than tabs.
indent-style = "space"
# Like Black, respect magic trailing commas.
skip-magic-trailing-comma = false
# Like Black, automatically detect the appropriate line ending.
line-ending = "auto"
[tool.setuptools]
include-package-data = false
packages = [
"webview", "webview.dom", "webview.js", "webview.lib", "webview.platforms",
"webview.platforms.android", "webview.platforms.android.jinterface", "webview.platforms.android.jclass",
"webview.__pyinstaller"]
[tool.setuptools.package-data]
"webview.lib" = ["**/*.dll", "**/*.jar"]
"webview.js" = ["**/*.js"]
"webview" = ["py.typed"]
[tool.setuptools_scm]
write_to = "webview/_version.py"
[tool.uv]
# Prefer pre-compiled wheels for better installation experience
resolution = "highest"
# Use index strategy that prefers wheels over source distributions
index-strategy = "unsafe-best-match"
[tool.uv.extra-build-dependencies]
jnius = ["Cython"]
[project.entry-points."pyinstaller40"]
hook-dirs = "webview.__pyinstaller:get_hook_dirs"