―――――――――――――――――――――― TestInstallation.test_installation ――――――――――――――――――――――
self = <test.test_installation.TestInstallation testMethod=test_installation>
rw_dir = '/tmp/test_installationo1a7a3rg'
@with_rw_directory
def test_installation(self, rw_dir):
self.setUp_venv(rw_dir)
result = subprocess.run(
[self.pip, "install", "-r", "requirements.txt"],
stdout=subprocess.PIPE,
cwd=self.sources,
)
self.assertEqual(
0,
result.returncode,
msg=result.stderr or result.stdout or "Can't install requirements",
)
result = subprocess.run(
[self.python, "setup.py", "install"],
stdout=subprocess.PIPE,
cwd=self.sources,
)
> self.assertEqual(
0,
result.returncode,
msg=result.stderr or result.stdout or "Can't build - setup.py failed",
)
E AssertionError: 0 != 1 : Can't build - setup.py failed
test/test_installation.py:39: AssertionError
----------------------------- Captured stderr call -----------------------------
Traceback (most recent call last):
File "/home/runner/work/GitPython/GitPython/setup.py", line 2, in <module>
from setuptools import setup, find_packages
ModuleNotFoundError: No module named 'setuptools'
The Python 3.12 release candidate is out! 🚀
See also https://dev.to/hugovk/help-test-python-312-beta-1508/
Python 3.12.0 final will be released in one month: https://peps.python.org/pep-0693/
However, when adding 3.12 to the CI like hugovk@427164b, it fails with:
―――――――――――――――――――――― TestInstallation.test_installation ―――――――――――――――――――――― self = <test.test_installation.TestInstallation testMethod=test_installation> rw_dir = '/tmp/test_installationo1a7a3rg' @with_rw_directory def test_installation(self, rw_dir): self.setUp_venv(rw_dir) result = subprocess.run( [self.pip, "install", "-r", "requirements.txt"], stdout=subprocess.PIPE, cwd=self.sources, ) self.assertEqual( 0, result.returncode, msg=result.stderr or result.stdout or "Can't install requirements", ) result = subprocess.run( [self.python, "setup.py", "install"], stdout=subprocess.PIPE, cwd=self.sources, ) > self.assertEqual( 0, result.returncode, msg=result.stderr or result.stdout or "Can't build - setup.py failed", ) E AssertionError: 0 != 1 : Can't build - setup.py failed test/test_installation.py:39: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/home/runner/work/GitPython/GitPython/setup.py", line 2, in <module> from setuptools import setup, find_packages ModuleNotFoundError: No module named 'setuptools'