Skip to content

Please make test_examples.py use venv #109

@mgorny

Description

@mgorny

The tests in test_examples.py currently install straight into the parent environment. Unfortunately, this means that in the best case the examples are left installed, and in the worst the tests cannot be run because pip is set not to allow installing packages into the build environment (the error: externally-managed-environment):

$ pip list | grep example
example_hatchling  24.7.0
example_noop       100
example_setuppy    1.2.3
example_setuptools 2.3.4

Could you please make the tests use a dedicated venv (set up with system_site_packages=True and symlinks=True) for every test case?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions