Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 859436 - dev-python/setuptools-62.6.0 fails test TestSetupRequires.test_setup_requires_with_allow_hosts
Summary: dev-python/setuptools-62.6.0 fails test TestSetupRequires.test_setup_requires...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks:
 
Reported: 2022-07-20 01:04 UTC by Jonathan Lovelace
Modified: 2022-11-05 18:50 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
dev-python:setuptools-62.6.0:20220720-001938.log (dev-python:setuptools-62.6.0:20220720-001938.log,228.84 KB, text/x-log)
2022-07-20 01:04 UTC, Jonathan Lovelace
Details
emerge-info.txt (emerge-info.txt,8.29 KB, text/plain)
2022-07-20 01:11 UTC, Jonathan Lovelace
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Lovelace 2022-07-20 01:04:25 UTC
Created attachment 792455 [details]
dev-python:setuptools-62.6.0:20220720-001938.log

=dev-python/setuptools-62.6.0 fails its test phase for me, specifically the test TestSetupRequires.test_setup_requires_with_allow_hosts :

================================================== FAILURES ==================================================
___________________________ TestSetupRequires.test_setup_requires_with_allow_hosts ___________________________
[gw1] linux -- Python 3.10.5 /var/tmp/portage/dev-python/setuptools-62.6.0/work/setuptools-62.6.0-python3_10/i
nstall/usr/bin/python3.10                                                                                     
                                                                                                              
self = <setuptools.tests.test_easy_install.TestSetupRequires object at 0x7f728dce5c30>                        
mock_index = <MockServer(Thread-65, started daemon 140129863718464)>                                          
                                                                                                              
    def test_setup_requires_with_allow_hosts(self, mock_index):                                               
        ''' The `allow-hosts` option in not supported anymore. '''                                            
        files = {                                                                                             
            'test_pkg': {                                                                                     
                'setup.py': DALS('''                                                                          
                    from setuptools import setup                                                              
                    setup(setup_requires='python-xlib')                                                       
                    '''),                                                                                     
                'setup.cfg': DALS('''                                                                         
                    [easy_install]                                                                            
                    allow_hosts = *                                                                           
                    '''),                                                                                     
            }                                                                                                 
        }                                                                                                     
        with contexts.save_pkg_resources_state():                                                             
            with contexts.tempdir() as temp_dir:                                                              
                path.build(files, prefix=temp_dir)                                                            
                setup_py = str(pathlib.Path(temp_dir, 'test_pkg', 'setup.py'))                                
>               with pytest.raises(distutils.errors.DistutilsError):                                          
E               Failed: DID NOT RAISE <class 'distutils.errors.DistutilsError'>                               
                                                                                                              
files      = {'test_pkg': {'setup.cfg': '[easy_install]\nallow_hosts = *\n',                                  
              'setup.py': 'from setuptools import setup\n'                                                    
                          "setup(setup_requires='python-xlib')\n"}}                                           
mock_index = <MockServer(Thread-65, started daemon 140129863718464)>                                          
self       = <setuptools.tests.test_easy_install.TestSetupRequires object at 0x7f728dce5c30>                  
setup_py   = '/var/tmp/portage/dev-python/setuptools-62.6.0/temp/tmpxwkybklw/test_pkg/setup.py'               
temp_dir   = '/var/tmp/portage/dev-python/setuptools-62.6.0/temp/tmpxwkybklw'                                 
                                                                                                              
setuptools/tests/test_easy_install.py:754: Failed                                                             
-------------------------------------------- Captured stdout call --------------------------------------------
0.0.0                                                                                                         
============================================== warnings summary ==============================================
../../../../../../../usr/lib/python3.10/site-packages/pytest_asyncio/plugin.py:191                            
../../../../../../../usr/lib/python3.10/site-packages/pytest_asyncio/plugin.py:191                            
../../../../../../../usr/lib/python3.10/site-packages/pytest_asyncio/plugin.py:191                            
../../../../../../../usr/lib/python3.10/site-packages/pytest_asyncio/plugin.py:191                            
  /usr/lib/python3.10/site-packages/pytest_asyncio/plugin.py:191: DeprecationWarning: The 'asyncio_mode' defau
lt value will change to 'strict' in future, please explicitly use 'asyncio_mode=strict' or 'asyncio_mode=auto'
 in pytest configuration file.                                                                                
    config.issue_config_time_warning(LEGACY_MODE, stacklevel=2)                                       
                                                                                                              
setuptools/tests/test_bdist_egg.py: 2 warnings
setuptools/tests/test_easy_install.py: 13 warnings 
setuptools/tests/test_install_scripts.py: 2 warnings   
  /var/tmp/portage/dev-python/setuptools-62.6.0/work/setuptools-62.6.0/setuptools/command/install.py:34: Setup
toolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.   
    warnings.warn(                                                                                            
                           
setuptools/tests/test_dist.py: 1 warning                                                                      
setuptools/tests/test_easy_install.py: 18 warnings     
  /var/tmp/portage/dev-python/setuptools-62.6.0/work/setuptools-62.6.0/setuptools/installer.py:27: SetuptoolsD
eprecationWarning: setuptools.installer is deprecated. Requirements should be satisfied by a PEP 517 installer
.                                                                                                             
    warnings.warn(                                                                                            
                                                                                                              
setuptools/tests/test_easy_install.py: 10 warnings                                                            
  /var/tmp/portage/dev-python/setuptools-62.6.0/work/setuptools-62.6.0/setuptools/command/easy_install.py:144:
 EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-base
d tools.                                                                                                      
    warnings.warn(                                                                                            
                                                                                                              
setuptools/tests/test_easy_install.py: 25 warnings                                                            
setuptools/tests/test_sandbox.py: 2 warnings                                                                  
  /var/tmp/portage/dev-python/setuptools-62.6.0/work/setuptools-62.6.0/setuptools/__init__.py:10: DeprecationW
arning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP
 632 for potential alternatives                        
    import distutils.core                                                                                     
                                                       
setuptools/tests/test_easy_install.py::test_editable_user_and_build_isolation                       
setuptools/tests/test_easy_install.py::TestEasyInstallTest::test_unicode_content_in_sdist                     
setuptools/tests/test_easy_install.py::TestEasyInstallTest::test_script_install                             
  /usr/lib/python3.10/distutils/command/build_scripts.py:7: DeprecationWarning: The distutils.sysconfig module
 is deprecated, use sysconfig instead                                                                         
    from distutils import sysconfig                                                                           
                                                                                                              
setuptools/tests/test_config_discovery.py: 11 warnings                                                        
setuptools/tests/config/test_pyprojecttoml.py: 5 warnings          
setuptools/tests/config/test_apply_pyprojecttoml.py: 1 warning
setuptools/tests/config/test_pyprojecttoml_dynamic_deps.py: 3 warnings
  /var/tmp/portage/dev-python/setuptools-62.6.0/work/setuptools-62.6.0/setuptools/config/pyprojecttoml.py:104:
 _BetaConfiguration: Support for `[tool.setuptools]` in `pyproject.toml` is still *beta*.
    warnings.warn(msg, _BetaConfiguration)

setuptools/tests/test_easy_install.py::TestEasyInstallTest::test_unicode_filename_in_sdist
setuptools/tests/test_easy_install.py::TestDistutilsPackage::test_bdist_egg_available_on_distutils_pkg
  /usr/lib/python3.10/distutils/command/install.py:13: DeprecationWarning: The distutils.sysconfig module is d
eprecated, use sysconfig instead
    from distutils.sysconfig import get_config_vars

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
Comment 1 Jonathan Lovelace 2022-07-20 01:11:30 UTC
Created attachment 792458 [details]
emerge-info.txt
Comment 2 Jonathan Lovelace 2022-11-05 15:41:15 UTC
I'm still seeing this with versions 65.4.1 and 65.5.0.

Since the specific test is "test_setup_requires_with_allow_hosts", it might be relevant that my /etc/hosts contains over 212,000 "0.0.0.0" entries (which I'm now getting from https://github.com/StevenBlack/hosts) to block unwanted outgoing traffic; I remember an issue with Chromium's test suite that turned out to be caused by the size of my hosts file.
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2022-11-05 18:50:41 UTC
You win.  Mine is barely 3105 lines long xP.