man-group / man-group/pytest-plugins

pytest-virtualenv uses deprecated distutils

Open
#188 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

releasing
Dominant language
Python
Stars
597
Forks
89
PR merge metrics
No merged PRs in 30d

Description

In https://github.com/pypa/setuptools/pull/2865#discussion_r746862098, I learned that pytest-virtualenv is importing distutils, which raises Warnings (treated as errors) in the Setuptools test suite when Setuptools is attempting to supply the distutils module. Distutils is deprecated in Python 3.10 and slated for removal in Python 3.12, so should be removed from this package.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the pytest-virtualenv package code and its distutils imports. Check the Setuptools test-suite context described in the issue, then identify the package tests that cover the affected behavior. Done means pytest-virtualenv no longer imports deprecated distutils and the relevant tests pass without deprecation warnings treated as errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
testing-qa
Issue type
Refactor
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.