#128 rpmdev-bumpspec is failing to detect use of rpmautospec / autorelease / autochangelog
Opened by orion. Modified

rpmdev-bumpspec on Rawhide is now silently failing to detect the use of rpmautospec. This is due to the imports failing. If I drop the try: I get:

Traceback (most recent call last):
  File "/usr/bin/rpmdev-bumpspec", line 30, in <module>
    from rpmautospec.subcommands.release import calculate_release_number
ImportError: cannot import name 'calculate_release_number' from 'rpmautospec.subcommands.release' (/usr/lib/python3.14/site-packages/rpmautospec/subcommands/release.py). Did you mean: 'calculate_release'?

It really seems like the use of try: here is misguided - we want things to fail if it cannot detect the use of rpmautospec.


Change to rpmautospec - https://github.com/fedora-infra/rpmautospec/commit/351dcc00d7e6431745ec5373011bcc076c00336f

I wonder why this only started happening now? The change you link above landed in rpmautpospec a year ago ...

I believe a change in the way rpmdev-bumpspec handles rpmautospec landed recently with the mass rebuild.

Aha. according to the commit log, the package was bumped to a git snapshot:
https://src.fedoraproject.org/rpms/rpmdevtools/commits/rawhide

But that snapshot was never built, and just ended up being built by the mass rebuild.

I have now pushed a rawhide build that reverted back to the last known good version.

Let's keep this ticket open to track the rpmdev-bumpspec regression that has happened in git since the last release.

Can this get closed now?

No, the broken code is still present on the master branch, as far as I can tell.

Metadata