-
Notifications
You must be signed in to change notification settings - Fork 190
Expand file tree
/
Copy pathpyproject.toml
More file actions
151 lines (131 loc) · 4.09 KB
/
pyproject.toml
File metadata and controls
151 lines (131 loc) · 4.09 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
140
141
142
143
144
145
146
147
148
149
150
151
[build-system]
requires = [
"setuptools",
"wheel",
"cffi >= 1.17.1; platform_system != 'Emscripten'",
"cffi > 1.14.0; platform_system == 'Emscripten'",
]
build-backend = "setuptools.build_meta"
[project]
name = "pymunk"
version = "7.2.0" # remember to change me for new versions!
# Require cffi >1.14.0 since that (and older) has problem with returning structs from functions.
# Require cffi >= 1.17.1 since older cant work with latest setuptools version
dependencies = [
"cffi >= 1.17.1; platform_system != 'Emscripten'",
"cffi > 1.14.0; platform_system == 'Emscripten'",
]
authors = [{ name = "Victor Blomqvist", email = "vb@viblo.se" }]
readme = "README.rst"
description = "Pymunk is a easy-to-use pythonic 2D physics library"
keywords = ["pygame", "2d", "physics", "rigid body"]
license = "MIT"
license-files = ["LICENSE.txt"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Topic :: Games/Entertainment",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: pygame",
"Topic :: Scientific/Engineering :: Physics",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
]
requires-python = ">=3.9"
[project.optional-dependencies]
dev = [
"pyglet",
"pygame",
"pillow",
"sphinx",
"aafigure",
"wheel",
"matplotlib",
"numpy",
]
[project.urls]
Homepage = "https://www.pymunk.org"
Documentation = "https://www.pymunk.org"
Repository = "https://github.com/viblo/pymunk.git"
Issues = "https://github.com/viblo/viblo/issues"
Changelog = "https://github.com/viblo/pymunk/blob/master/CHANGELOG.rst"
[tool.setuptools.package-data]
"pymunk.examples" = ["*.png", "*.wav"]
[tool.setuptools.exclude-package-data]
[tool.isort]
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
use_parentheses = true
ensure_newline_before_comments = true
line_length = 88
[tool.mypy]
disallow_untyped_defs = true
strict_equality = true
warn_unused_configs = true
disallow_any_generics = true
warn_redundant_casts = true
disallow_subclassing_any = true
disallow_untyped_calls = true
disallow_incomplete_defs = true
no_implicit_optional = true
no_implicit_reexport = true
check_untyped_defs = true
warn_unused_ignores = true
# Because many values are returned directly from CFFI/Chipmunk (and are therefore Any)
warn_return_any = false
# Because decorators are mostly from CFFI used for callbacks (and therefor untyped)
disallow_untyped_decorators = false
exclude = [
'^pymunk/examples/.*$', # exclude examples from type checking
]
[[tool.mypy.overrides]]
module = "pymunk.util"
# This is not typed
disallow_untyped_defs = false
check_untyped_defs = false
[tool.cibuildwheel]
test-command = "python -m pymunk.tests"
enable = ["pypy"]
build = [
"cp39-*",
"cp310-*",
"cp311-*",
"cp312-*",
"cp313-*",
"cp314-*",
"pp311-*",
]
[tool.cibuildwheel.linux]
[tool.cibuildwheel.macos]
[tool.cibuildwheel.windows]
[tool.cibuildwheel.ios]
environment = { PYMUNK_BUILD_SLIM = "1" }
test-skip = "*"
archs = "all"
skip = "cp314-*" # Until 3.14 build is figured out..
build-verbosity = 1
build-frontend = { name = "pip", args = "--no-build-isolation" }
xbuild-tools = ["curl", "pkg-config", "tar"]
before-build = [
# download wheel and pretend that it's compatible with the current platform settings
"curl https://files.pythonhosted.org/packages/8b/f1/672d303ddf17c24fc83afd712316fda78dc6fce1cd53011b839483e1ecc8/cffi-1.17.1-cp313-cp313-macosx_11_0_arm64.whl -L -o cffi-1.17.1-py3-none-any.whl",
"pip install cffi-1.17.1-py3-none-any.whl",
# install the rest of the dependencies
"python -m pip install setuptools wheel cffi",
]
[tool.cibuildwheel.pyodide]
environment = { PYMUNK_BUILD_SLIM = "1" }
[tool.uv]
cache-keys = [
{ file = "pyproject.toml" },
{ file = "setup.py" },
# { file = "**/*.h" },
# { file = "**/*.c" },
{ file = "Munk2D/**/*.c" },
{ file = "Munk2D/**/*.h" },
{ file = "pymunk/**/*.c" },
{ file = "pymunk/**/*.cdef" },
{ file = "pymunk/**/*.h" },
]