forked from marcelotduarte/cx_Freeze
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
270 lines (246 loc) · 8 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
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
[build-system]
requires = [
"setuptools>=62.6,<70",
"wheel>=0.38.4",
"cx_Logging>=3.1 ;sys_platform == 'win32'",
]
build-backend = "setuptools.build_meta"
[project]
name = "cx_Freeze"
description = "Create standalone executables from Python scripts"
authors = [
{name = "Anthony Tuininga", email = "[email protected]"}
]
maintainers = [
{name = "Marcelo Duarte", email = "[email protected]"}
]
license = {text = "Python Software Foundation License"}
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: Python Software Foundation License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: C",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"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",
"Topic :: Software Development :: Build Tools",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: System :: Software Distribution",
"Topic :: Utilities",
]
keywords = ["cx-freeze cxfreeze cx_Freeze freeze python"]
requires-python = ">=3.8"
dependencies = [
"setuptools>=62.6,<70",
"wheel==0.42.0",
"cx_Logging>=3.1 ;sys_platform == 'win32'",
"lief>=0.12.0 ;sys_platform == 'win32'",
"patchelf>=0.14 ;sys_platform == 'linux' and platform_machine == 'x86_64'",
"patchelf>=0.14 ;sys_platform == 'linux' and platform_machine == 'i686'",
"patchelf>=0.14 ;sys_platform == 'linux' and platform_machine == 'aarch64'",
"patchelf>=0.14 ;sys_platform == 'linux' and platform_machine == 'armv7l'",
"patchelf>=0.14 ;sys_platform == 'linux' and platform_machine == 'ppc64le'",
"patchelf>=0.14 ;sys_platform == 'linux' and platform_machine == 's390x'",
]
dynamic = ["version"]
[project.optional-dependencies]
dev = [
"bump-my-version==0.12.0",
"cibuildwheel==2.16.2",
"pre-commit==3.5.0",
"pylint==3.0.3",
]
doc = [
"sphinx<7.2.0 ;python_version == '3.8'",
"sphinx==7.2.2 ;python_version >= '3.9'",
"sphinx-tabs==3.4.4",
"furo==2023.8.19",
]
test = [
"pluggy==1.3.0",
"pytest==7.4.3",
"pytest-cov==4.1.0",
"pytest-datafiles==3.0.0",
"pytest-mock==3.12.0",
"pytest-timeout==2.2.0",
"pytest-xdist[psutil]==3.5.0",
]
[project.readme]
file = "README.md"
content-type = "text/markdown"
[project.urls]
Home = "https://marcelotduarte.github.io/cx_Freeze"
Changelog = "https://cx-freeze.readthedocs.io/en/latest/releasenotes.html"
Documentation = "https://cx-freeze.readthedocs.io"
Source = "https://github.com/marcelotduarte/cx_Freeze"
Tracker = "https://github.com/marcelotduarte/cx_Freeze/issues"
Workflows = "https://github.com/marcelotduarte/cx_Freeze/actions?query=branch:main"
[project.scripts]
cxfreeze = "cx_Freeze.cli:main"
cxfreeze-quickstart = "cx_Freeze.setupwriter:main"
[project.entry-points."distutils.setup_keywords"]
executables = "cx_Freeze.executable:validate_executables"
[project.entry-points."setuptools.finalize_distribution_options"]
cxfreeze-plugin = "cx_Freeze:plugin_install"
[tool.setuptools]
include-package-data = true
zip-safe = false
license-files = ["doc/src/license.rst"]
[tool.setuptools.dynamic]
version = {attr = "cx_Freeze.__version__"}
[tool.setuptools.packages]
find = {namespaces = false}
[tool.distutils.bdist_wheel]
universal = 0
[tool.black]
line-length = 79
target-version = ["py38"]
[tool.bumpversion]
commit = true
current_version = "6.16.0-dev11"
message = "Bump version: {current_version} → {new_version} [ci skip]"
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)(\\-(?P<release>[a-z]+)(?P<build>\\d+))?"
serialize = [
"{major}.{minor}.{patch}-{release}{build}",
"{major}.{minor}.{patch}"
]
sign_tags = true
tag = true
tag_name = "{new_version}"
verbose = true
[[tool.bumpversion.files]]
filename = "cx_Freeze/__init__.py"
[[tool.bumpversion.files]]
filename = "doc/src/conf.py"
[tool.bumpversion.parts.release]
optional_value = "prod"
first_value = "dev"
values = [
"dev",
"prod"
]
[tool.isort]
profile = "black"
line_length = 79
skip_gitignore = true
add_imports = ["from __future__ import annotations"]
[tool.ruff]
select = [
"A", # flake8-builtins
"E", "F", "W", # flake8
"B", "B904", # flake8-bugbear
"D", # pydocstyle
"I", # isort
"ARG", # flake8-unused-arguments
"C4", # flake8-comprehensions
#"EM", # flake8-errmsg
"ICN", # flake8-import-conventions
"ISC", # flake8-implicit-str-concat
"PGH", # pygrep-hooks
"PIE", # flake8-pie
"PLC", "PLE", "PLR", "PLW", # pylint
"PT", # flake8-pytest-style
"RSE", # flake8-raise
"RET", # flake8-return
"RUF", # Ruff-specific
"SIM", # flake8-simplify
"UP", # pyupgrade
"YTT", # flake8-2020
]
ignore = [
# ignored for now, but should be revised in future
"D102", # Missing docstring in public method
"D401", # First line of docstring should be in imperative mood
# ignore the following
"D104", # Missing docstring in public package
"D105", # Missing docstring in magic method
"D107", # Missing docstring in `__init__`
"D203", "D205", "D213",
"PLR2004", "E501",
"PLR0912", # too-many-branches
"PLR0913", # too-many-arguments
"PLR0915", # too-many-statements
"RUF012",
]
line-length = 79
target-version = "py38"
flake8-unused-arguments.ignore-variadic-names = true
extend-exclude = [
"cx_Freeze/importshed/*.pyi",
"samples/*.py"
]
[tool.pylint.main]
disable = [
"attribute-defined-outside-init",
"c-extension-no-member",
"duplicate-code",
"exec-used",
"fixme",
"import-error",
"missing-class-docstring", # checked by ruff D101
"missing-function-docstring", # checked by ruff D103
"missing-module-docstring", # checked by ruff D100
"no-member", # not handled by ruff yet E1101
"protected-access",
"redefined-builtin", # checked by ruff A
"too-few-public-methods",
"too-many-arguments", # also ignored in ruff
"too-many-branches", # also ignored in ruff
"too-many-instance-attributes",
"too-many-lines",
"too-many-locals",
"too-many-nested-blocks",
"too-many-return-statements", # checked by ruff PLR0911
"too-many-statements", # also ignored in ruff
"unbalanced-tuple-unpacking", # not handled by ruff yet W0632
"ungrouped-imports", # checked by ruff C0412 (I001)
"unused-argument", # checked by ruff ARG
"useless-parent-delegation", # not handled by ruff yet W0246"
]
ignore-paths = [
"cx_Freeze/darwintools.py",
"cx_Freeze/hooks/pyqt5/resource.py",
"cx_Freeze/hooks/pyside2/resource.py",
"cx_Freeze/hooks/pyside6/resource.py",
"^samples/.*.py$",
]
py-version = [3, 8]
output-format = "colorized"
[tool.pylint.format]
max-line-length = 79
[tool.pytest.ini_options]
minversion = "7.0"
addopts = "-rpfEsx -nauto"
testpaths = ["tests"]
filterwarnings = [
"ignore::DeprecationWarning:distutils.*",
"ignore::DeprecationWarning:pkg_resources.*",
"ignore::DeprecationWarning:setuptools.*",
]
[tool.cibuildwheel]
before-build = "pip install -r requirements.txt"
build = "cp3*"
build-frontend = "build"
build-verbosity = "1"
manylinux-x86_64-image = "quay.io/pypa/manylinux2014_x86_64:latest"
[tool.cibuildwheel.linux]
archs = "x86_64 aarch64 ppc64le"
skip = "cp3{8,9}-{many,musl}linux_{aarch64,ppc64le}"
before-build = """
cd /opt/_internal && tar -xvf static-libs-for-embedding-only.tar.xz
"""
repair-wheel-command = "auditwheel repair -L /bases/lib -w {dest_dir} {wheel}"
[tool.cibuildwheel.macos]
archs = "x86_64 arm64"
skip = "cp3{8,9}-macosx_arm64"
repair-wheel-command = """
delocate-listdeps {wheel} &&
delocate-wheel --require-archs {delocate_archs} -L bases/lib -w {dest_dir} {wheel}
"""