Commit c4bfd8d
committed
Conditionally disable the pytest distribution package test
When running tests under Python 3.12 with setuptools_scm==3.4.1, we run
into a problem where a call to setuptools.setup() tries to load a newer
version of setuptools_scm, and that conflicts with the older version
that is already in sys.modules. I haven't fully figured out the details,
but the gist is that setuptools attempts to read and install the entry
point specifications from the newer version of setuptools_scm while
using the older version's code, and there is one particular entry point
whose value refers to the setuptools_scm._integration module which
doesn't exist in the older version's code. This winds up breaking every
test that runs after the older version of setuptools_scm gets loaded.
We have various options for fixing this, but I don't want to hold up
the release any longer while figuring out what the best way to do it is.
(I'm guessing that the best approach is just to use virtual environments
for distribution package tests, but I want to explore the options.) So
I'm disabling the distribution package test which triggers this error
when using Python>=3.12 and setuptools_scm<6. We can implement a proper
fix later.1 parent 43d9538 commit c4bfd8d
1 file changed
Lines changed: 27 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
50 | 70 | | |
51 | 71 | | |
52 | 72 | | |
53 | 73 | | |
54 | | - | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
55 | 81 | | |
56 | 82 | | |
57 | 83 | | |
| |||
0 commit comments