maturin 1.7.8b1__py3-none-macosx_10_12_x86_64.whl → 1.8.1__py3-none-macosx_10_12_x86_64.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.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: maturin
3
- Version: 1.7.8b1
3
+ Version: 1.8.1
4
4
  Classifier: Topic :: Software Development :: Build Tools
5
5
  Classifier: Programming Language :: Rust
6
6
  Classifier: Programming Language :: Python :: Implementation :: CPython
@@ -34,8 +34,8 @@ _formerly pyo3-pack_
34
34
  [![FreeBSD](https://img.shields.io/cirrus/github/PyO3/maturin/main?logo=CircleCI&style=flat-square)](https://cirrus-ci.com/github/PyO3/maturin)
35
35
  [![discord server](https://img.shields.io/discord/1209263839632424990?logo=discord)](https://discord.gg/33kcChzH7f)
36
36
 
37
- Build and publish crates with pyo3, 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.
37
+ Build and publish crates with [pyo3, cffi and uniffi bindings](https://maturin.rs/bindings) as well as rust binaries as python packages with minimal configuration.
38
+ It supports building wheels for python 3.8+ on Windows, Linux, macOS and FreeBSD, can upload them to [pypi](https://pypi.org/) and has basic PyPy and GraalPy support.
39
39
 
40
40
  Check out the [User Guide](https://maturin.rs/)!
41
41
 
@@ -58,7 +58,6 @@ There are four main commands:
58
58
  - `maturin build` builds the wheels and stores them in a folder (`target/wheels` by default), but doesn't upload them. It's possible to upload those with [twine](https://github.com/pypa/twine) or `maturin upload`.
59
59
  - `maturin develop` builds the crate and installs it as a python module directly in the current virtualenv. Note that while `maturin develop` is faster, it doesn't support all the feature that running `pip install` after `maturin build` supports.
60
60
 
61
- `pyo3` bindings are automatically detected. For cffi or binaries, you need to pass `-b cffi` or `-b bin`.
62
61
  maturin doesn't need extra configuration files and doesn't clash with an existing setuptools-rust or milksnake configuration.
63
62
  You can even integrate it with testing tools such as [tox](https://tox.readthedocs.io/en/latest/).
64
63
  There are examples for the different bindings in the `test-crates` folder.
@@ -82,50 +81,6 @@ When you publish a package to be installable with `pip install`, you upload it t
82
81
  For testing, you can use [test pypi](https://test.pypi.org/) instead, which you can use with `pip install --index-url https://test.pypi.org/simple/`.
83
82
  Note that for publishing for linux, [you need to use the manylinux docker container](#manylinux-and-auditwheel), while for publishing from your repository you can use the [PyO3/maturin-action github action](https://github.com/PyO3/maturin-action).
84
83
 
85
- ## pyo3
86
-
87
- For pyo3, maturin can only build packages for installed python versions. On linux and mac, all python versions in `PATH` are used.
88
- If you don't set your own interpreters with `-i`, a heuristic is used to search for python installations.
89
- On windows all versions from the python launcher (which is installed by default by the python.org installer) and all conda environments except base are used. You can check which versions are picked up with the `list-python` subcommand.
90
-
91
- pyo3 will set the used python interpreter in the environment variable `PYTHON_SYS_EXECUTABLE`, which can be used from custom build scripts. Maturin can build and upload wheels for pypy with pyo3, even though only pypy3.7-7.3 on linux is tested.
92
-
93
- ## Cffi
94
-
95
- Cffi wheels are compatible with all python versions including pypy. If `cffi` isn't installed and python is running inside a virtualenv, maturin will install it, otherwise you have to install it yourself (`pip install cffi`).
96
-
97
- maturin uses cbindgen to generate a header file, which can be customized by configuring cbindgen through a `cbindgen.toml` file inside your project root. Alternatively you can use a build script that writes a header file to `$PROJECT_ROOT/target/header.h`.
98
-
99
- Based on the header file maturin generates a module which exports an `ffi` and a `lib` object.
100
-
101
- <details>
102
- <summary>Example of a custom build script</summary>
103
-
104
- ```rust
105
- use cbindgen;
106
- use std::env;
107
- use std::path::Path;
108
-
109
- fn main() {
110
- let crate_dir = env::var("CARGO_MANIFEST_DIR").unwrap();
111
-
112
- let bindings = cbindgen::Builder::new()
113
- .with_no_includes()
114
- .with_language(cbindgen::Language::C)
115
- .with_crate(crate_dir)
116
- .generate()
117
- .unwrap();
118
- bindings.write_to_file(Path::new("target").join("header.h"));
119
- }
120
- ```
121
-
122
- </details>
123
-
124
- ## uniffi
125
-
126
- uniffi bindings use [uniffi-rs](https://mozilla.github.io/uniffi-rs/) to generate Python `ctypes` bindings
127
- from an interface definition file. uniffi wheels are compatible with all python versions including pypy.
128
-
129
84
  ## Mixed rust/python projects
130
85
 
131
86
  To create a mixed rust/python project, create a folder with your module name (i.e. `lib.name` in Cargo.toml) next to your Cargo.toml and add your python sources there:
@@ -0,0 +1,6 @@
1
+ maturin-1.8.1.dist-info/METADATA,sha256=zp6nQ-R1YD6ygF4lAUKKofcGmxVGJn1BDt5w9XMN4Xg,16196
2
+ maturin-1.8.1.dist-info/WHEEL,sha256=fAt_KltXDteAzV_H5YsH9SQsEgW5x57u4wziXAovG8I,103
3
+ maturin/__init__.py,sha256=S6HX3ljHfTCeA0ONi2M2or4QitPkT2wcU0D1b7YOUIk,7187
4
+ maturin/__main__.py,sha256=Fg40Rg6srWYrH0s2ZgbIOysRDnZf2tX-z5VJAPyOs4Y,1145
5
+ maturin-1.8.1.data/scripts/maturin,sha256=RbOiUHpR214aS-uGqrJtLTa77oyuqt3Jow5irMofKKs,18150376
6
+ maturin-1.8.1.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: maturin (1.7.8-beta.1)
2
+ Generator: maturin (1.8.1)
3
3
  Root-Is-Purelib: false
4
4
  Tag: py3-none-macosx_10_12_x86_64
@@ -1,6 +0,0 @@
1
- maturin-1.7.8b1.dist-info/METADATA,sha256=JXEWWXG-kmdO6hGkp2XMHwfeLIFP6hnV5z9OITRWplA,18282
2
- maturin-1.7.8b1.dist-info/WHEEL,sha256=I5eNXqNN8y-tXXIVHkVoIMWg85lyKAPss6t5eI8GAK0,110
3
- maturin/__init__.py,sha256=S6HX3ljHfTCeA0ONi2M2or4QitPkT2wcU0D1b7YOUIk,7187
4
- maturin/__main__.py,sha256=Fg40Rg6srWYrH0s2ZgbIOysRDnZf2tX-z5VJAPyOs4Y,1145
5
- maturin-1.7.8b1.data/scripts/maturin,sha256=Qhx4cMTnLIatrIBKY24jL4dc0U8AsQiqv-MQ9RT5fUw,17957392
6
- maturin-1.7.8b1.dist-info/RECORD,,