Skip to content

virtualenv plugin doesn't work with current tox #427

Closed
@masklinn

Description

@masklinn

Trying to add graal to an existing project I'm hitting an issue where it doesn't seem to cooperate with tox / virtualenv. The test project is just composed of 3 files:

pyproject.toml

 [build-system]
 requires = ["setuptools"]
 build-backend = "setuptools.build_meta"

test.py

def test_thing():
    assert 1 == 1

tox.ini

[tox]
env_list = graalpy

[testenv]
package = wheel
deps = pytest
commands = pytest test.py
  • using the global tox (4.20.0 installed via pipx on a 3.10) hits a TypeError:

      File "virtualenv/run/__init__.py", line 51, in session_via_cli
        creator, seeder, activators = tuple(e.create(options) for e in elements)  # create types
      File "virtualenv/run/__init__.py", line 51, in <genexpr>
        creator, seeder, activators = tuple(e.create(options) for e in elements)  # create types
      File "virtualenv/run/plugin/creators.py", line 84, in create
        options.describe = self.describe(options, self.interpreter)
    TypeError: 'NoneType' object is not callable
    
  • creating a local venv using graal, it installs an outdated tox (3.28.0), complains that it wants isolated_build = True, then fails with TypeError: 'NoneType' object is not callable anyway (it doesn't provide a complete traceback, but I assume the issue is similar to the one in 4.20)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions