test_integration: allow PEP 625 sdist name#1096
Conversation
Signed-off-by: William Woodruff <[email protected]>
Signed-off-by: William Woodruff <[email protected]>
Signed-off-by: William Woodruff <[email protected]>
|
I confirmed that this fixes the dist name assert locally, but the integration suite is now flaking on TestPyPI itself returning 503s. The flake on (macOS, 3.8) appears to be something very deeply broken: I can confirm that >>> from lxml import etree
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: dlopen(/Users/william/tmp/env/lib/python3.8/site-packages/lxml/etree.cpython-38-darwin.so, 0x0002): symbol not found in flat namespace '_exsltDateXpathCtxtRegister'
>>> (That approximates how |
Signed-off-by: William Woodruff <[email protected]>
|
Integration is still flaky for the reason above, but I've "fixed" the Python 3.8 macOS failure by excluding the current patch version of |
This should fix the integration tests.
Explanation: the integration suite uses
pypa/sampleproject, which usessetuptoolsas its build backend.setuptoolsin turn has recently switched to adhering to PEP 625, which enforces that hyphens in package names be normalized to underscores to eliminate a parsing ambiguity in the sdist file format.sampleproject's backend dependency onsetuptoolsis unconstrained, which means in principle that the latest version should always be used. However, this patch allows both the PEP 625 and the old variant, just in casepipor other layers of the stack select an oldersetuptools.See also: pypa/setuptools#3593