Skip to content

Add missing test dependency on setuptools #456

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 6, 2025

Conversation

mgorny
Copy link
Contributor

@mgorny mgorny commented Jul 30, 2025

Add the missing test dependency on setuptools, as it is required by greenlet.tests.test_version.VersionTests.test_version. The test is calling setup.py which requires setuptools to be installed. Prior to this change, a tox run on Python 3.12 or newer would fail, as these versions no longer include setuptools in a pristine venv:

test_version (greenlet.tests.test_version.VersionTests.test_version) ... Traceback (most recent call last):
  File "/tmp/greenlet/setup.py", line 10, in <module>
    from setuptools import setup
ModuleNotFoundError: No module named 'setuptools'
FAIL

Add the missing test dependency on `setuptools`, as it is required
by `greenlet.tests.test_version.VersionTests.test_version`.  The test
is calling `setup.py` which requires `setuptools` to be installed.
Prior to this change, a `tox` run on Python 3.12 or newer would fail,
as these versions no longer include `setuptools` in a pristine venv:

```
test_version (greenlet.tests.test_version.VersionTests.test_version) ... Traceback (most recent call last):
  File "/tmp/greenlet/setup.py", line 10, in <module>
    from setuptools import setup
ModuleNotFoundError: No module named 'setuptools'
FAIL
```

Signed-off-by: Michał Górny <mgorny@gentoo.org>
@jamadden jamadden merged commit bdb5f44 into python-greenlet:master Aug 6, 2025
23 checks passed
@jamadden
Copy link
Contributor

jamadden commented Aug 6, 2025

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants