Source: python-requests-mock
Version: 1.12.1-1
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: [email protected]
Usertags: ftbfs-20240728 ftbfs-trixie

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
>  debian/rules build
> make: pyversions: No such file or directory
> py3versions: no X-Python3-Version in control file, using supported versions
> dh build --buildsystem=pybuild --with python3,sphinxdoc
>    dh_update_autotools_config -O--buildsystem=pybuild
>    dh_autoreconf -O--buildsystem=pybuild
>    dh_auto_configure -O--buildsystem=pybuild
>    dh_auto_build -O--buildsystem=pybuild
> I: pybuild plugin_pyproject:129: Building wheel for python3.12 with "build" 
> module
> I: pybuild base:311: python3.12 -m build --skip-dependency-check 
> --no-isolation --wheel --outdir 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_requests-mock  
> * Building wheel...
> /usr/lib/python3/dist-packages/setuptools/config/_apply_pyprojecttoml.py:72: 
> _MissingDynamic: `description` defined outside of `pyproject.toml` is ignored.
> !!
> 
>         
> ********************************************************************************
>         The following seems to be defined outside of `pyproject.toml`:
> 
>         `description = 'Mock out responses from the requests package'`
> 
>         According to the spec (see the link below), however, setuptools CANNOT
>         consider this value unless `description` is listed as `dynamic`.
> 
>         
> https://packaging.python.org/en/latest/specifications/pyproject-toml/#declaring-project-metadata-the-project-table
> 
>         To prevent this problem, you can list `description` under `dynamic` 
> or alternatively
>         remove the `[project]` table from your file and rely entirely on 
> other means of
>         configuration.
>         
> ********************************************************************************
> 
> !!
>   _handle_missing_dynamic(dist, project_table)
> /usr/lib/python3/dist-packages/setuptools/config/_apply_pyprojecttoml.py:72: 
> _MissingDynamic: `readme` defined outside of `pyproject.toml` is ignored.
> !!
> 
>         
> ********************************************************************************
>         The following seems to be defined outside of `pyproject.toml`:
> 
>         `readme = 
> '===============================\nrequests-mock\n===============================\n\nIntro\n=====\n\n`requests-mock`
>  provides a building block to stub out the HTTP `requests`_ portions of your 
> testing code.\nYou should checkout the `docs`_ for more information.\n\nThe 
> Basics\n==========\n\nEverything in `requests`_ eventually goes through an 
> adapter to do the transport work.\n`requests-mock` creates a custom `adapter` 
> that allows you to predefine responses when certain URIs are called.\n\nThere 
> are then a number of methods provided to get the adapter used.\n\nA simple 
> example:\n\n.. code:: python\n\n    >>> import requests\n    >>> import 
> requests_mock\n\n    >>> session = requests.Session()\n    >>> adapter = 
> requests_mock.Adapter()\n    >>> session.mount(\'mock://\', adapter)\n\n    
> >>> adapter.register_uri(\'GET\', \'mock://test.com\', text=\'data\')\n    
> >>> resp = session.get(\'mock://test.com\')\n    >>> resp.status_code, 
> resp.text\n    (200, \'data\')\n\nObviously having all URLs be `mock://` 
> prefixed isn\'t going to be useful,\nso you can use `requests_mock.Mocker` to 
> get the adapter into place.\n\nAs a context manager:\n\n.. code:: python\n\n  
>   >>> with requests_mock.Mocker() as m:\n    ...     
> m.get(\'http://test.com\', text=\'data\')\n    ...     
> requests.get(\'http://test.com\').text\n    ...\n    \'data\'\n\nOr as a 
> decorator:\n\n.. code:: python\n\n    >>> @requests_mock.Mocker()\n    ... 
> def test_func(m):\n    ...     m.get(\'http://test.com\', text=\'data\')\n    
> ...     return requests.get(\'http://test.com\').text\n    ...\n    >>> 
> test_func()\n    \'data\'\n\nOr as a pytest fixture:\n\n.. code:: python\n\n  
>   >>> def test_simple(requests_mock):\n    ...    
> requests_mock.get(\'http://test.com\', text=\'data\')\n    ...    assert 
> \'data\' == requests.get(\'http://test.com\').text\n\nFor more information 
> checkout the `docs`_.\n\nReporting Bugs\n==============\n\nDevelopment and 
> bug tracking is performed on `GitHub`_.\n\nQuestions\n=========\n\nThere is a 
> tag dedicated to `requests-mock` on `StackOverflow`_ where you can ask usage 
> questions.\n\nLicense\n=======\n\nLicensed under the Apache License, Version 
> 2.0 (the "License"); you may\nnot use this file except in compliance with the 
> License. You may obtain\na copy of the License at\n\n     
> https://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable 
> law or agreed to in writing, software\ndistributed under the License is 
> distributed on an "AS IS" BASIS, WITHOUT\nWARRANTIES OR CONDITIONS OF ANY 
> KIND, either express or implied. See the\nLicense for the specific language 
> governing permissions and limitations\nunder the License.\n\n.. _requests: 
> https://requests.readthedocs.io\n.. _docs: 
> https://requests-mock.readthedocs.io/\n.. _GitHub: 
> https://github.com/jamielennox/requests-mock\n.. _StackOverflow: 
> https://stackoverflow.com/questions/tagged/requests-mock\n'`
> 
>         According to the spec (see the link below), however, setuptools CANNOT
>         consider this value unless `readme` is listed as `dynamic`.
> 
>         
> https://packaging.python.org/en/latest/specifications/pyproject-toml/#declaring-project-metadata-the-project-table
> 
>         To prevent this problem, you can list `readme` under `dynamic` or 
> alternatively
>         remove the `[project]` table from your file and rely entirely on 
> other means of
>         configuration.
>         
> ********************************************************************************
> 
> !!
>   _handle_missing_dynamic(dist, project_table)
> /usr/lib/python3/dist-packages/setuptools/config/_apply_pyprojecttoml.py:72: 
> _MissingDynamic: `requires-python` defined outside of `pyproject.toml` is 
> ignored.
> !!
> 
>         
> ********************************************************************************
>         The following seems to be defined outside of `pyproject.toml`:
> 
>         `requires-python = <SpecifierSet('>=3.5')>`
> 
>         According to the spec (see the link below), however, setuptools CANNOT
>         consider this value unless `requires-python` is listed as `dynamic`.
> 
>         
> https://packaging.python.org/en/latest/specifications/pyproject-toml/#declaring-project-metadata-the-project-table
> 
>         To prevent this problem, you can list `requires-python` under 
> `dynamic` or alternatively
>         remove the `[project]` table from your file and rely entirely on 
> other means of
>         configuration.
>         
> ********************************************************************************
> 
> !!
>   _handle_missing_dynamic(dist, project_table)
> /usr/lib/python3/dist-packages/setuptools/config/_apply_pyprojecttoml.py:72: 
> _MissingDynamic: `license` defined outside of `pyproject.toml` is ignored.
> !!
> 
>         
> ********************************************************************************
>         The following seems to be defined outside of `pyproject.toml`:
> 
>         `license = 'Apache-2'`
> 
>         According to the spec (see the link below), however, setuptools CANNOT
>         consider this value unless `license` is listed as `dynamic`.
> 
>         
> https://packaging.python.org/en/latest/specifications/pyproject-toml/#declaring-project-metadata-the-project-table
> 
>         To prevent this problem, you can list `license` under `dynamic` or 
> alternatively
>         remove the `[project]` table from your file and rely entirely on 
> other means of
>         configuration.
>         
> ********************************************************************************
> 
> !!
>   _handle_missing_dynamic(dist, project_table)
> /usr/lib/python3/dist-packages/setuptools/config/_apply_pyprojecttoml.py:72: 
> _MissingDynamic: `authors` defined outside of `pyproject.toml` is ignored.
> !!
> 
>         
> ********************************************************************************
>         The following seems to be defined outside of `pyproject.toml`:
> 
>         `authors = 'Jamie Lennox'`
> 
>         According to the spec (see the link below), however, setuptools CANNOT
>         consider this value unless `authors` is listed as `dynamic`.
> 
>         
> https://packaging.python.org/en/latest/specifications/pyproject-toml/#declaring-project-metadata-the-project-table
> 
>         To prevent this problem, you can list `authors` under `dynamic` or 
> alternatively
>         remove the `[project]` table from your file and rely entirely on 
> other means of
>         configuration.
>         
> ********************************************************************************
> 
> !!
>   _handle_missing_dynamic(dist, project_table)
> /usr/lib/python3/dist-packages/setuptools/config/_apply_pyprojecttoml.py:72: 
> _MissingDynamic: `classifiers` defined outside of `pyproject.toml` is ignored.
> !!
> 
>         
> ********************************************************************************
>         The following seems to be defined outside of `pyproject.toml`:
> 
>         `classifiers = ['Development Status :: 5 - Production/Stable', 
> 'Intended Audience :: Developers', 'Intended Audience :: Information 
> Technology', 'License :: OSI Approved :: Apache Software License', 'Operating 
> System :: OS Independent', 'Programming Language :: Python', 'Programming 
> Language :: Python :: 3', 'Programming Language :: Python :: 3.8', 
> 'Programming Language :: Python :: 3.9', 'Programming Language :: Python :: 
> 3.10', 'Programming Language :: Python :: 3.11', 'Programming Language :: 
> Python :: 3.12', 'Programming Language :: Python :: Implementation :: 
> CPython', 'Programming Language :: Python :: Implementation :: PyPy', 'Topic 
> :: Software Development :: Testing']`
> 
>         According to the spec (see the link below), however, setuptools CANNOT
>         consider this value unless `classifiers` is listed as `dynamic`.
> 
>         
> https://packaging.python.org/en/latest/specifications/pyproject-toml/#declaring-project-metadata-the-project-table
> 
>         To prevent this problem, you can list `classifiers` under `dynamic` 
> or alternatively
>         remove the `[project]` table from your file and rely entirely on 
> other means of
>         configuration.
>         
> ********************************************************************************
> 
> !!
>   _handle_missing_dynamic(dist, project_table)
> /usr/lib/python3/dist-packages/setuptools/config/_apply_pyprojecttoml.py:72: 
> _MissingDynamic: `urls` defined outside of `pyproject.toml` is ignored.
> !!
> 
>         
> ********************************************************************************
>         The following seems to be defined outside of `pyproject.toml`:
> 
>         `urls = {'Source': 'https://github.com/jamielennox/requests-mock'}`
> 
>         According to the spec (see the link below), however, setuptools CANNOT
>         consider this value unless `urls` is listed as `dynamic`.
> 
>         
> https://packaging.python.org/en/latest/specifications/pyproject-toml/#declaring-project-metadata-the-project-table
> 
>         To prevent this problem, you can list `urls` under `dynamic` or 
> alternatively
>         remove the `[project]` table from your file and rely entirely on 
> other means of
>         configuration.
>         
> ********************************************************************************
> 
> !!
>   _handle_missing_dynamic(dist, project_table)
> /usr/lib/python3/dist-packages/setuptools/config/_apply_pyprojecttoml.py:72: 
> _MissingDynamic: `entry-points` defined outside of `pyproject.toml` is 
> ignored.
> !!
> 
>         
> ********************************************************************************
>         The following seems to be defined outside of `pyproject.toml`:
> 
>         `entry-points = {'pytest11': ['requests_mock = 
> requests_mock.contrib._pytest_plugin']}`
> 
>         According to the spec (see the link below), however, setuptools CANNOT
>         consider this value unless `entry-points` is listed as `dynamic`.
> 
>         
> https://packaging.python.org/en/latest/specifications/pyproject-toml/#declaring-project-metadata-the-project-table
> 
>         To prevent this problem, you can list `entry-points` under `dynamic` 
> or alternatively
>         remove the `[project]` table from your file and rely entirely on 
> other means of
>         configuration.
>         
> ********************************************************************************
> 
> !!
>   _handle_missing_dynamic(dist, project_table)
> /usr/lib/python3/dist-packages/setuptools/config/_apply_pyprojecttoml.py:72: 
> _MissingDynamic: `dependencies` defined outside of `pyproject.toml` is 
> ignored.
> !!
> 
>         
> ********************************************************************************
>         The following seems to be defined outside of `pyproject.toml`:
> 
>         `dependencies = ['requests>=2.22,<3']`
> 
>         According to the spec (see the link below), however, setuptools CANNOT
>         consider this value unless `dependencies` is listed as `dynamic`.
> 
>         
> https://packaging.python.org/en/latest/specifications/pyproject-toml/#declaring-project-metadata-the-project-table
> 
>         To prevent this problem, you can list `dependencies` under `dynamic` 
> or alternatively
>         remove the `[project]` table from your file and rely entirely on 
> other means of
>         configuration.
>         
> ********************************************************************************
> 
> !!
>   _handle_missing_dynamic(dist, project_table)
> /usr/lib/python3/dist-packages/setuptools/config/_apply_pyprojecttoml.py:72: 
> _MissingDynamic: `optional-dependencies` defined outside of `pyproject.toml` 
> is ignored.
> !!
> 
>         
> ********************************************************************************
>         The following seems to be defined outside of `pyproject.toml`:
> 
>         `optional-dependencies = {'fixture': ['fixtures']}`
> 
>         According to the spec (see the link below), however, setuptools CANNOT
>         consider this value unless `optional-dependencies` is listed as 
> `dynamic`.
> 
>         
> https://packaging.python.org/en/latest/specifications/pyproject-toml/#declaring-project-metadata-the-project-table
> 
>         To prevent this problem, you can list `optional-dependencies` under 
> `dynamic` or alternatively
>         remove the `[project]` table from your file and rely entirely on 
> other means of
>         configuration.
>         
> ********************************************************************************
> 
> !!
>   _handle_missing_dynamic(dist, project_table)
> Traceback (most recent call last):
>   File 
> "/usr/lib/python3/dist-packages/pyproject_hooks/_in_process/_in_process.py", 
> line 373, in <module>
>     main()
>   File 
> "/usr/lib/python3/dist-packages/pyproject_hooks/_in_process/_in_process.py", 
> line 357, in main
>     json_out["return_val"] = hook(**hook_input["kwargs"])
>                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File 
> "/usr/lib/python3/dist-packages/pyproject_hooks/_in_process/_in_process.py", 
> line 271, in build_wheel
>     return _build_backend().build_wheel(
>            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "/usr/lib/python3/dist-packages/setuptools/build_meta.py", line 415, 
> in build_wheel
>     return self._build_with_temp_dir(
>            ^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "/usr/lib/python3/dist-packages/setuptools/build_meta.py", line 397, 
> in _build_with_temp_dir
>     self.run_setup()
>   File "/usr/lib/python3/dist-packages/setuptools/build_meta.py", line 313, 
> in run_setup
>     exec(code, locals())
>   File "<string>", line 1, in <module>
>   File "/usr/lib/python3/dist-packages/setuptools/__init__.py", line 103, in 
> setup
>     return distutils.core.setup(**attrs)
>            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "/usr/lib/python3/dist-packages/setuptools/_distutils/core.py", line 
> 158, in setup
>     dist.parse_config_files()
>   File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 632, in 
> parse_config_files
>     pyprojecttoml.apply_configuration(self, filename, ignore_option_errors)
>   File "/usr/lib/python3/dist-packages/setuptools/config/pyprojecttoml.py", 
> line 71, in apply_configuration
>     return _apply(dist, config, filepath)
>            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File 
> "/usr/lib/python3/dist-packages/setuptools/config/_apply_pyprojecttoml.py", 
> line 53, in apply
>     _apply_project_table(dist, config, root_dir)
>   File 
> "/usr/lib/python3/dist-packages/setuptools/config/_apply_pyprojecttoml.py", 
> line 79, in _apply_project_table
>     corresp(dist, value, root_dir)
>   File 
> "/usr/lib/python3/dist-packages/setuptools/config/_apply_pyprojecttoml.py", 
> line 161, in _long_description
>     file = val.get("file") or ()
>            ^^^^^^^
> AttributeError: 'NoneType' object has no attribute 'get'
> 
> ERROR Backend subprocess exited when trying to invoke build_wheel
> E: pybuild pybuild:389: build: plugin pyproject failed with: exit code=1: 
> python3.12 -m build --skip-dependency-check --no-isolation --wheel --outdir 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_requests-mock  
> dh_auto_build: error: pybuild --build -i python{version} -p 3.12 returned 
> exit code 13
> make: *** [debian/rules:10: build] Error 25


The full build log is available from:
http://qa-logs.debian.net/2024/07/28/python-requests-mock_1.12.1-1_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20240728;[email protected]
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20240728&[email protected]&allbugs=1&cseverity=1&ctags=1&caffected=1#results

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please mark it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.

Reply via email to