Skip to content

fix: warn about invalid generated package versions - #1527

Merged
dbanty merged 1 commit into
openapi-generators:mainfrom
Boulea7:fix/invalid-package-metadata-version
Nov 30, 2026
Merged

dbanty merged 1 commit into
openapi-generators:mainfrom
Boulea7:fix/invalid-package-metadata-version

Conversation

@Boulea7

@Boulea7 Boulea7 commented Nov 30, 2026

Copy link
Copy Markdown
Contributor

Slurm's OpenAPI document reports dbv0.0.37. The generated package reaches the build backend before that version is rejected. The built-in metadata templates now warn during generation and point to package_version_override. For this document, the following configuration produced an installable wheel.

package_version_override: "0.0.37"

The warning respects --fail-on-warning. The generated version string is preserved, since an API version prefix may distinguish versions that would otherwise map to the same Python package version.

I built and installed the wheel from the Slurm document in #1526 and exercised its generated GET /openapi client against an in-memory transport. The repository suite passed 483 tests with 100% coverage, including all five snapshots.

Relates to #1526.

Prepared with OpenAI Codex assistance and independently reviewed.

Point users to package_version_override when a bundled metadata template writes a version that Python packaging tools cannot parse.

Assisted-by: OpenAI Codex

@dbanty dbanty left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@dbanty
dbanty added this pull request to the merge queue Nov 30, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 30, 2026
@dbanty
dbanty added this pull request to the merge queue Nov 30, 2026
Merged via the queue into openapi-generators:main with commit e2acd43 Nov 30, 2026
80 of 86 checks passed
@knope-bot knope-bot Bot mentioned this pull request Nov 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants