maturin 1.3.2__py3-none-win32.whl → 1.5.0__py3-none-win32.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of maturin might be problematic. Click here for more details.
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.3
|
|
2
2
|
Name: maturin
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.5.0
|
|
4
4
|
Classifier: Topic :: Software Development :: Build Tools
|
|
5
5
|
Classifier: Programming Language :: Rust
|
|
6
6
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
@@ -34,21 +34,23 @@ _formerly pyo3-pack_
|
|
|
34
34
|
[](https://cirrus-ci.com/github/PyO3/maturin)
|
|
35
35
|
[](https://gitter.im/PyO3/Lobby)
|
|
36
36
|
|
|
37
|
-
Build and publish crates with pyo3, rust-cpython, cffi and uniffi bindings as well as rust binaries as python packages.
|
|
38
|
-
|
|
39
|
-
This project is meant as a zero configuration replacement for [setuptools-rust](https://github.com/PyO3/setuptools-rust) and [milksnake](https://github.com/getsentry/milksnake).
|
|
40
|
-
It supports building wheels for python 3.7+ on windows, linux, mac and freebsd, can upload them to [pypi](https://pypi.org/) and has basic pypy and graalpy support.
|
|
37
|
+
Build and publish crates with pyo3, rust-cpython, cffi and uniffi bindings as well as rust binaries as python packages with minimal configuration.
|
|
38
|
+
It supports building wheels for python 3.8+ on windows, linux, mac and freebsd, can upload them to [pypi](https://pypi.org/) and has basic pypy and graalpy support.
|
|
41
39
|
|
|
42
40
|
Check out the [User Guide](https://maturin.rs/)!
|
|
43
41
|
|
|
44
42
|
## Usage
|
|
45
43
|
|
|
46
|
-
You can either download binaries from the [latest release](https://github.com/PyO3/maturin/releases/latest) or install it with
|
|
44
|
+
You can either download binaries from the [latest release](https://github.com/PyO3/maturin/releases/latest) or install it with [pipx](https://pypa.github.io/pipx/):
|
|
47
45
|
|
|
48
46
|
```shell
|
|
49
|
-
|
|
47
|
+
pipx install maturin
|
|
50
48
|
```
|
|
51
49
|
|
|
50
|
+
> [!NOTE]
|
|
51
|
+
>
|
|
52
|
+
> `pip install maturin` should also work if you don't want to use pipx.
|
|
53
|
+
|
|
52
54
|
There are four main commands:
|
|
53
55
|
|
|
54
56
|
* `maturin new` creates a new cargo project with maturin configured.
|
|
@@ -163,7 +165,7 @@ my-project
|
|
|
163
165
|
└── lib.rs
|
|
164
166
|
```
|
|
165
167
|
|
|
166
|
-
>
|
|
168
|
+
> [!NOTE]
|
|
167
169
|
>
|
|
168
170
|
> This structure is recommended to avoid [a common `ImportError` pitfall](https://github.com/PyO3/maturin/issues/490)
|
|
169
171
|
|
|
@@ -187,7 +189,7 @@ my-project
|
|
|
187
189
|
|
|
188
190
|
When doing this also be sure to set the module name in your code to match the last part of `module-name` (don't include the package path):
|
|
189
191
|
|
|
190
|
-
```
|
|
192
|
+
```rust
|
|
191
193
|
#[pymodule]
|
|
192
194
|
#[pyo3(name="_lib_name")]
|
|
193
195
|
fn my_lib_name(_py: Python<'_>, m: &PyModule) -> PyResult<()> {
|
|
@@ -200,7 +202,7 @@ fn my_lib_name(_py: Python<'_>, m: &PyModule) -> PyResult<()> {
|
|
|
200
202
|
## Python metadata
|
|
201
203
|
|
|
202
204
|
maturin supports [PEP 621](https://www.python.org/dev/peps/pep-0621/), you can specify python package metadata in `pyproject.toml`.
|
|
203
|
-
maturin merges metadata from `Cargo.toml` and `pyproject.toml`, `pyproject.toml`
|
|
205
|
+
maturin merges metadata from `Cargo.toml` and `pyproject.toml`, `pyproject.toml` takes precedence over `Cargo.toml`.
|
|
204
206
|
|
|
205
207
|
To specify python dependencies, add a list `dependencies` in a `[project]` section in the `pyproject.toml`. This list is equivalent to `install_requires` in setuptools:
|
|
206
208
|
|
|
@@ -210,7 +212,7 @@ name = "my-project"
|
|
|
210
212
|
dependencies = ["flask~=1.1.0", "toml==0.10.0"]
|
|
211
213
|
```
|
|
212
214
|
|
|
213
|
-
Pip allows adding so called console scripts, which are shell commands that execute some function in
|
|
215
|
+
Pip allows adding so called console scripts, which are shell commands that execute some function in your program. You can add console scripts in a section `[project.scripts]`.
|
|
214
216
|
The keys are the script names while the values are the path to the function in the format `some.module.path:class.function`, where the `class` part is optional. The function is called with no arguments. Example:
|
|
215
217
|
|
|
216
218
|
```toml
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
maturin-1.5.0.dist-info/METADATA,sha256=4e7FuMq69VsiZpVprGSdL7CrWsE9UNkC92j2Ok5TV6w,18543
|
|
2
|
+
maturin-1.5.0.dist-info/WHEEL,sha256=nfy7noAQ-BfIxQSAdL1KCiANXXMQUI1JdD8p7REWBWI,89
|
|
3
|
+
maturin/import_hook.py,sha256=TsZzWauEAC-xPOnuvy3kn25GM2EGqmcuvzdzS-aAHTE,5771
|
|
4
|
+
maturin/__init__.py,sha256=nues8BiqPJG1hBgdPTNKd8mlxJhV1H069Ez1G-C-MVU,6720
|
|
5
|
+
maturin/__main__.py,sha256=pXjh1oJe1m1JmVwsRwvS22kS3qiGkcLD6r7jbNXTFKA,1031
|
|
6
|
+
maturin-1.5.0.data/scripts/maturin.exe,sha256=vu5TOz2eaxv_iVdSVQ7dmT5vPjLTA7F1_T_2SlQzj8s,15795200
|
|
7
|
+
maturin-1.5.0.dist-info/RECORD,,
|
maturin-1.3.2.dist-info/RECORD
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
maturin-1.3.2.dist-info/METADATA,sha256=eNX2_q5G5w6lSyw1-MCrWuMtqFtSdibyZzU4k5Cj0Gg,18569
|
|
2
|
-
maturin-1.3.2.dist-info/WHEEL,sha256=RSzwrAXOsWUk6la3lT4xxxrHhTyd-f2XQM337DICRvg,89
|
|
3
|
-
maturin/import_hook.py,sha256=TsZzWauEAC-xPOnuvy3kn25GM2EGqmcuvzdzS-aAHTE,5771
|
|
4
|
-
maturin/__init__.py,sha256=nues8BiqPJG1hBgdPTNKd8mlxJhV1H069Ez1G-C-MVU,6720
|
|
5
|
-
maturin/__main__.py,sha256=pXjh1oJe1m1JmVwsRwvS22kS3qiGkcLD6r7jbNXTFKA,1031
|
|
6
|
-
maturin-1.3.2.data/scripts/maturin.exe,sha256=0j8vYDax-DN16m7d7yGqPvjttlTmWKe76mExNOVfJiQ,14677504
|
|
7
|
-
maturin-1.3.2.dist-info/RECORD,,
|