Commit 48945fa
The main motivation for this change is to migrate from the non-standard `setup.py` to the standard PEP 517 `setup.py`. The secondary motivation is to use a build backend that's easier to use and harder to get wrong than setuptools.
Modern build backends and much easier to use than setuptools, and will generally include `py.typed` and `.pyi` files automatically. This means we can remove the setuptools-specific documentation. We use `uv_build` for the stubs package example since it works out of the box with it.
packaging.python.org has a tab system to show different build backends (https://packaging.python.org/en/latest/guides/writing-pyproject-toml/). Afaik typing.python.org doesn't, so we only show one build backend.
Fixes #2121
---------
Co-authored-by: hauntsaninja <hauntsaninja@gmail.com>
1 parent 211b0cb commit 48945fa
1 file changed
+12
-55
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
| 85 | + | |
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
| 91 | + | |
105 | 92 | | |
106 | 93 | | |
107 | 94 | | |
| |||
113 | 100 | | |
114 | 101 | | |
115 | 102 | | |
116 | | - | |
| 103 | + | |
117 | 104 | | |
118 | 105 | | |
119 | 106 | | |
120 | 107 | | |
121 | 108 | | |
122 | 109 | | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | 110 | | |
138 | 111 | | |
139 | 112 | | |
| |||
150 | 123 | | |
151 | 124 | | |
152 | 125 | | |
153 | | - | |
| 126 | + | |
154 | 127 | | |
155 | 128 | | |
156 | 129 | | |
157 | 130 | | |
| 131 | + | |
158 | 132 | | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
169 | 137 | | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
170 | 141 | | |
171 | 142 | | |
172 | 143 | | |
173 | 144 | | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | 145 | | |
189 | 146 | | |
190 | 147 | | |
| |||
0 commit comments