Bug 2259524 - python-lazy-object-proxy fails to build with Python 3.13: LookupError: setuptools-scm was unable to detect version for /builddir/build/BUILD/python-lazy-object-proxy-1.10.0.
Summary: python-lazy-object-proxy fails to build with Python 3.13: LookupError: setupt...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: python-lazy-object-proxy
Version: 40
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Gwyn Ciesla
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.13
TreeView+ depends on / blocked
 
Reported: 2024-01-22 08:30 UTC by Karolina Surma
Modified: 2025-04-25 02:12 UTC (History)
4 users (show)

Fixed In Version: python-lazy-object-proxy-1.11.0-1.fc41 python-lazy-object-proxy-1.11.0-1.fc40 python-lazy-object-proxy-1.11.0-1.fc42
Clone Of:
Environment:
Last Closed: 2025-04-25 01:49:17 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github pypa setuptools_scm issues 1011 0 None open LookupError: setuptools-scm was unable to detect version if [tool.setuptools_scm] is in pyproject.toml 2024-01-29 12:52:37 UTC

Description Karolina Surma 2024-01-22 08:30:23 UTC
python-lazy-object-proxy fails to build with Python 3.13.0a3.

+ /usr/bin/python3 -Bs /usr/lib/rpm/redhat/pyproject_wheel.py /builddir/build/BUILD/python-lazy-object-proxy-1.10.0/pyproject-wheeldir
Processing /builddir/build/BUILD/python-lazy-object-proxy-1.10.0
  Preparing metadata (pyproject.toml): started
  Running command Preparing metadata (pyproject.toml)
  Traceback (most recent call last):
    File "/usr/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
      main()
      ~~~~^^
    File "/usr/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
      json_out['return_val'] = hook(**hook_input['kwargs'])
                               ~~~~^^^^^^^^^^^^^^^^^^^^^^^^
    File "/usr/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 149, in prepare_metadata_for_build_wheel
      return hook(metadata_directory, config_settings)
             ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/usr/lib/python3.13/site-packages/setuptools/build_meta.py", line 396, in prepare_metadata_for_build_wheel
      self.run_setup()
      ~~~~~~~~~~~~~~^^
    File "/usr/lib/python3.13/site-packages/setuptools/build_meta.py", line 341, in run_setup
      exec(code, locals())
      ~~~~^^^^^^^^^^^^^^^^
    File "<string>", line 76, in <module>
    File "/usr/lib/python3.13/site-packages/setuptools/__init__.py", line 103, in setup
      return distutils.core.setup(**attrs)
             ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
    File "/usr/lib/python3.13/site-packages/setuptools/_distutils/core.py", line 147, in setup
      _setup_distribution = dist = klass(attrs)
                                   ~~~~~^^^^^^^
    File "/usr/lib/python3.13/site-packages/setuptools/dist.py", line 303, in __init__
      _Distribution.__init__(self, dist_attrs)
      ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
    File "/usr/lib/python3.13/site-packages/setuptools/_distutils/dist.py", line 283, in __init__
      self.finalize_options()
      ~~~~~~~~~~~~~~~~~~~~~^^
    File "/usr/lib/python3.13/site-packages/setuptools/dist.py", line 680, in finalize_options
      ep(self)
      ~~^^^^^^
    File "/usr/lib/python3.13/site-packages/setuptools_scm/_integration/setuptools.py", line 121, in infer_version
      _assign_version(dist, config)
      ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^
    File "/usr/lib/python3.13/site-packages/setuptools_scm/_integration/setuptools.py", line 56, in _assign_version
      _version_missing(config)
      ~~~~~~~~~~~~~~~~^^^^^^^^
    File "/usr/lib/python3.13/site-packages/setuptools_scm/_get_version_impl.py", line 112, in _version_missing
      raise LookupError(
      ...<8 lines>...
      )
  LookupError: setuptools-scm was unable to detect version for /builddir/build/BUILD/python-lazy-object-proxy-1.10.0.

  Make sure you're either building from a fully intact git repository or PyPI tarballs. Most other sources (such as GitHub's tarballs, a git checkout without the .git folder) don't contain the necessary metadata and will not work.

https://docs.python.org/3.13/whatsnew/3.13.html

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.13/fedora-rawhide-x86_64/06933703-python-lazy-object-proxy/

For all our attempts to build python-lazy-object-proxy with Python 3.13, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.13/package/python-lazy-object-proxy/

Testing and mass rebuild of packages is happening in copr.
You can follow these instructions to test locally in mock if your package builds with Python 3.13:
https://copr.fedorainfracloud.org/coprs/g/python/python3.13/

Let us know here if you have any questions.

Python 3.13 is planned to be included in Fedora 41.
To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.13.
A build failure prevents us from testing all dependent packages (transitive [Build]Requires),
so if this package is required a lot, it's important for us to get it fixed soon.

We'd appreciate help from the people who know this package best,
but if you don't want to work on this now, let us know so we can try to work around it on our side.

Comment 1 Gwyn Ciesla 2024-01-23 22:42:10 UTC
Works for me now.

Comment 2 Karolina Surma 2024-01-29 10:05:59 UTC
It works in the current Rawhide, but not in the Copr with Python 3.13. Since it's not clear to me yet where the issue lies, let me reopen this bug for now.

Comment 3 Miro Hrončok 2024-01-29 11:19:41 UTC
$ mock -r fedora-rawhide-python313 --enablerepo=local -nN ./python-lazy-object-proxy-1.10.0-3.fc40.src.rpm
Finish: rpmbuild python-lazy-object-proxy-1.10.0-3.fc40.src.rpm
Finish: build phase for python-lazy-object-proxy-1.10.0-3.fc40.src.rpm
...
Finish: run

Comment 4 Miro Hrončok 2024-01-29 11:43:56 UTC
Local mock:

  DEBUG setuptools_scm.config file pyproject.toml
  DEBUG setuptools_scm.entrypoints version_from_ep setuptools_scm.parse_scm in /builddir/build/BUILD/python-lazy-object-proxy-1.10.0
  DEBUG setuptools_scm.discover looking for ep setuptools_scm.parse_scm in /builddir/build/BUILD/python-lazy-object-proxy-1.10.0
  DEBUG setuptools_scm.entrypoints version_from_ep setuptools_scm.parse_scm_fallback in .
  DEBUG setuptools_scm.discover looking for ep setuptools_scm.parse_scm_fallback in .
  DEBUG setuptools_scm.discover found ep EntryPoint(name='pyproject.toml', value='setuptools_scm.fallbacks:fallback_version', group='setuptools_scm.parse_scm_fallback') in .
  DEBUG setuptools_scm.fallbacks FALLBACK 1.10.0
  INFO setuptools_scm.version version 1.10.0 -> 1.10.0
  DEBUG setuptools_scm.entrypoints EntryPoint(name='pyproject.toml', value='setuptools_scm.fallbacks:fallback_version', group='setuptools_scm.parse_scm_fallback') found <ScmVersion 1.10.0 dist=0 node=None dirty=False branch=None>

Copr:

  DEBUG setuptools_scm.config file pyproject.toml
  DEBUG setuptools_scm.entrypoints version_from_ep setuptools_scm.parse_scm in /builddir/build/BUILD/python-lazy-object-proxy-1.10.0
  DEBUG setuptools_scm.discover looking for ep setuptools_scm.parse_scm in /builddir/build/BUILD/python-lazy-object-proxy-1.10.0
  DEBUG setuptools_scm.entrypoints version_from_ep setuptools_scm.parse_scm_fallback in .
  DEBUG setuptools_scm.discover looking for ep setuptools_scm.parse_scm_fallback in .
  DEBUG setuptools_scm.discover found ep EntryPoint(name='pyproject.toml', value='setuptools_scm.fallbacks:fallback_version', group='setuptools_scm.parse_scm_fallback') in .
  DEBUG setuptools_scm.entrypoints EntryPoint(name='pyproject.toml', value='setuptools_scm.fallbacks:fallback_version', group='setuptools_scm.parse_scm_fallback') found None
  DEBUG setuptools_scm.discover found ep EntryPoint(name='setup.py', value='setuptools_scm.fallbacks:fallback_version', group='setuptools_scm.parse_scm_fallback') in .
  DEBUG setuptools_scm.entrypoints EntryPoint(name='setup.py', value='setuptools_scm.fallbacks:fallback_version', group='setuptools_scm.parse_scm_fallback') found None
  DEBUG setuptools_scm.config check absolute root=. relative_to=pyproject.toml
  DEBUG setuptools_scm.config file pyproject.toml


Makes no sense to me :(

Comment 5 Karolina Surma 2024-01-29 12:52:37 UTC
Adding the upstream issue report

Comment 6 Aoife Moloney 2024-02-15 23:11:07 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 40 development cycle.
Changing version to 40.

Comment 7 Fedora Update System 2025-04-16 19:25:39 UTC
FEDORA-2025-e80e6d7f41 (python-lazy-object-proxy-1.11.0-1.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-e80e6d7f41

Comment 8 Fedora Update System 2025-04-16 19:25:40 UTC
FEDORA-2025-3c2a34a1b8 (python-lazy-object-proxy-1.11.0-1.fc40) has been submitted as an update to Fedora 40.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-3c2a34a1b8

Comment 9 Fedora Update System 2025-04-16 19:25:40 UTC
FEDORA-2025-c8c4e9ee14 (python-lazy-object-proxy-1.11.0-1.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-c8c4e9ee14

Comment 10 Fedora Update System 2025-04-17 21:03:37 UTC
FEDORA-2025-e80e6d7f41 has been pushed to the Fedora 42 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-e80e6d7f41`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-e80e6d7f41

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 11 Fedora Update System 2025-04-17 21:48:23 UTC
FEDORA-2025-c8c4e9ee14 has been pushed to the Fedora 41 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-c8c4e9ee14`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-c8c4e9ee14

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 12 Fedora Update System 2025-04-17 22:00:19 UTC
FEDORA-2025-3c2a34a1b8 has been pushed to the Fedora 40 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-3c2a34a1b8`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-3c2a34a1b8

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 13 Fedora Update System 2025-04-25 01:49:17 UTC
FEDORA-2025-c8c4e9ee14 (python-lazy-object-proxy-1.11.0-1.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 14 Fedora Update System 2025-04-25 02:00:19 UTC
FEDORA-2025-3c2a34a1b8 (python-lazy-object-proxy-1.11.0-1.fc40) has been pushed to the Fedora 40 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 15 Fedora Update System 2025-04-25 02:12:13 UTC
FEDORA-2025-e80e6d7f41 (python-lazy-object-proxy-1.11.0-1.fc42) has been pushed to the Fedora 42 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.