Comments (8)
@davidhewitt Thank you very much for fixing the original bug in tox!
from maturin.
Would it be possible to get an estimate of how long it'll take for this to be fixed? If it's not high on your priority list, is there any way in which I can make a workaround for this?
from maturin.
It's already released
from maturin.
Now I have a new problem...
This is my pyproject.toml:
[build-system]
requires = ["maturin"]
build-backend = "maturin"
This is my tox.ini:
# tox (https://tox.readthedocs.io/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
[tox]
envlist = py35, py36, py37, pypy3
isolated_build = True
[testenv]
deps =
pytest>=5.0
pytest-benchmark
hypothesis
commands =
pytest -vvvv
When I try to invoke tox I get:
.package recreate: /home/omer/Documents/Projects/fastuuid/.tox/.package
.package installdeps: maturin
ERROR: invocation failed (exit code 1), logfile: /home/omer/Documents/Projects/fastuuid/.tox/.package/log/.package-2.log
=================================================== log start ===================================================
Traceback (most recent call last):
File "/home/omer/.local/share/virtualenvs/fastuuid/lib/python3.7/site-packages/tox/helper/build_requires.py", line 7, in <module>
backend = __import__(backend_spec, fromlist=[None])
ModuleNotFoundError: No module named 'maturin'
==================================================== log end ====================================================
ERROR: FAIL could not package project - v = InvocationError("/home/omer/Documents/Projects/fastuuid/.tox/.package/bin/python /home/omer/.local/share/virtualenvs/fastuuid/lib/python3.7/site-packages/tox/helper/build_requires.py maturin ''", 1)
The package can be installed and I'm using it to build the shared library as expected.
Any idea?
from maturin.
@thedrow I forgot to also rename the pyo3_pack directory which I've fixed in 04206b9. With that commit the old error message should return.
from maturin.
Can you release a new version?
from maturin.
FYI as of tox 3.18.1
the issue should be resolved in tox. From local testing when writing maturing examples for pyo3 I think we need #336 to be merged, and then we should be good to update the readme!
from maturin.
I've tested an it works now, however testing locally is tedious due to tox-dev/tox#1634. I'll update the examples
from maturin.
Related Issues (20)
- Build fails if REUSE-compliant LICENSES directory is present
- Panic when running `maturin build --interpreter python --target x86_64-pc-windows-msvc` HOT 2
- Source distribution missing workspace files HOT 6
- Build option to dynamically set abi3 version HOT 9
- Make it possible to skip passing `--interpreter` option when building editable wheels via pep517 backend
- Uniffi multiple crates not supported
- Uniffi-bindgen not detected in cargo workspace
- Maturin uses .gitignore from the incorrect context when used in out-of-project build environments such as conda
- [cffi] Allow generated shared library to have a name other than `native.so` HOT 2
- When the .pyd file is in use and Maturin develop mentions the Pip warning, that needs to be much more obvious that that's really bad.
- uniffi-bindgen verion 0.26 not supported HOT 5
- Python can't find DLL when linking external C library (gtstreamer) on Windows HOT 7
- Automatic `.pyi` stub file generation HOT 2
- maturin and uniffi doesn't appear to be using pyproject.toml HOT 3
- `maturin sdist` includes extraneous files in source distribution tar.gz HOT 1
- Add a way to include non-python/rust files in generated sdist/wheel despite .gitignore HOT 3
- Use virtualenv for pytest in generated GitHub Actions configuration
- Use macOS M1 runner in generated GitHub Actions configuration
- Improve error when cross compiling to windows without llvm-dlltool HOT 1
- Maturin Fails to x-compile for target `--target i686-pc-windows-msvc` HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from maturin.