Git Product home page Git Product logo

Comments (8)

konstin avatar konstin commented on May 25, 2024 2

@davidhewitt Thank you very much for fixing the original bug in tox!

from maturin.

KeironO avatar KeironO commented on May 25, 2024 1

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.

konstin avatar konstin commented on May 25, 2024 1

It's already released

from maturin.

thedrow avatar thedrow commented on May 25, 2024

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.

konstin avatar konstin commented on May 25, 2024

@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.

thedrow avatar thedrow commented on May 25, 2024

Can you release a new version?

from maturin.

davidhewitt avatar davidhewitt commented on May 25, 2024

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.

konstin avatar konstin commented on May 25, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.