-
-
Notifications
You must be signed in to change notification settings - Fork 284
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add pyo3-mixed-legacy crate to test cross-compilation with older pyo3…
… (for Python 3.6 support).
- Loading branch information
Ashley Anderson
committed
Dec 3, 2021
1 parent
0013ef2
commit 83482c1
Showing
17 changed files
with
395 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
[package] | ||
authors = ["konstin <[email protected]>"] | ||
name = "pyo3-mixed" | ||
version = "2.1.3" | ||
description = "Implements a dummy function combining rust and python" | ||
readme = "Readme.md" | ||
edition = "2018" | ||
|
||
[dependencies] | ||
pyo3 = { version = "0.15.1", features = ["extension-module"] } | ||
|
||
[lib] | ||
name = "pyo3_mixed" | ||
crate-type = ["cdylib"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# pyo3-mixed | ||
|
||
A package for testing maturin with a mixed pyo3/python project. | ||
|
||
## Usage | ||
|
||
```bash | ||
pip install . | ||
``` | ||
|
||
```python | ||
import pyo3_mixed | ||
assert pyo3_mixed.get_42() == 42 | ||
``` | ||
|
||
## Testing | ||
|
||
Install tox: | ||
|
||
```bash | ||
pip install tox | ||
``` | ||
|
||
Run it: | ||
|
||
```bash | ||
tox | ||
``` | ||
|
||
The tests are in `test_pyo3_mixed.py`, while the configuration is in tox.ini |
Oops, something went wrong.