maturin 1.3.2__py3-none-win_arm64.whl → 1.4.0__py3-none-win_arm64.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
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: maturin
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.4.0
|
|
4
4
|
Classifier: Topic :: Software Development :: Build Tools
|
|
5
5
|
Classifier: Programming Language :: Rust
|
|
6
6
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
@@ -43,12 +43,16 @@ Check out the [User Guide](https://maturin.rs/)!
|
|
|
43
43
|
|
|
44
44
|
## Usage
|
|
45
45
|
|
|
46
|
-
You can either download binaries from the [latest release](https://github.com/PyO3/maturin/releases/latest) or install it with
|
|
46
|
+
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
47
|
|
|
48
48
|
```shell
|
|
49
|
-
|
|
49
|
+
pipx install maturin
|
|
50
50
|
```
|
|
51
51
|
|
|
52
|
+
> **Note**
|
|
53
|
+
>
|
|
54
|
+
> `pip install maturin` should also work if you don't want to use pipx.
|
|
55
|
+
|
|
52
56
|
There are four main commands:
|
|
53
57
|
|
|
54
58
|
* `maturin new` creates a new cargo project with maturin configured.
|
|
@@ -187,7 +191,7 @@ my-project
|
|
|
187
191
|
|
|
188
192
|
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
193
|
|
|
190
|
-
```
|
|
194
|
+
```rust
|
|
191
195
|
#[pymodule]
|
|
192
196
|
#[pyo3(name="_lib_name")]
|
|
193
197
|
fn my_lib_name(_py: Python<'_>, m: &PyModule) -> PyResult<()> {
|
|
@@ -200,7 +204,7 @@ fn my_lib_name(_py: Python<'_>, m: &PyModule) -> PyResult<()> {
|
|
|
200
204
|
## Python metadata
|
|
201
205
|
|
|
202
206
|
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`
|
|
207
|
+
maturin merges metadata from `Cargo.toml` and `pyproject.toml`, `pyproject.toml` takes precedence over `Cargo.toml`.
|
|
204
208
|
|
|
205
209
|
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
210
|
|
|
@@ -210,7 +214,7 @@ name = "my-project"
|
|
|
210
214
|
dependencies = ["flask~=1.1.0", "toml==0.10.0"]
|
|
211
215
|
```
|
|
212
216
|
|
|
213
|
-
Pip allows adding so called console scripts, which are shell commands that execute some function in
|
|
217
|
+
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
218
|
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
219
|
|
|
216
220
|
```toml
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
maturin-1.4.0.dist-info/METADATA,sha256=YrxlfKqM12ZGu0EyH2hOwa91XqAwtmzozxnbiCVLFgA,18699
|
|
2
|
+
maturin-1.4.0.dist-info/WHEEL,sha256=jp5Vtln_qWS8C8C8HLUDZtceSwscDKzcoAQxjxQb8Tc,93
|
|
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.4.0.data/scripts/maturin.exe,sha256=5rUG--blSHcG403xNeurxS-WS9_u8j4aD_bAgitN0O8,16299008
|
|
7
|
+
maturin-1.4.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=tMtGablWxRB9gg2Rjf6X2NgtbhSLQehiKnIwqj-3y3s,93
|
|
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=Kd9-5dOnyZ_jdR5XrKt-Sn7MULhy56okgX2CV_onqoU,15127040
|
|
7
|
-
maturin-1.3.2.dist-info/RECORD,,
|