Skip to content

Python: regenerate recipes.csv#7801

Merged
Jenson3210 merged 1 commit into
mainfrom
Jenson3210/fix-python-recipes-csv
May 27, 2026
Merged

Python: regenerate recipes.csv#7801
Jenson3210 merged 1 commit into
mainfrom
Jenson3210/fix-python-recipes-csv

Conversation

@Jenson3210
Copy link
Copy Markdown
Contributor

Summary

  • Regenerated rewrite-python/src/main/resources/META-INF/rewrite/recipes.csv via ./gradlew :rewrite-python:recipeCsvGenerate to pick up changes made since the file was last touched on 2026-02-11.
  • Five dependency recipes (AddDependency, ChangeDependency, RemoveDependency, UpgradeDependencyVersion, UpgradeTransitiveDependencyVersion) now correctly document support for requirements.txt / Pipfile / pipenv and the "not safe as a precondition" warning. Several option description fields and the DependencyInsight data table also caught up.
  • Drift went undetected because recipeCsvValidateContent only checks CSV formatting, not whether displayName / description still match the live Recipe getters. Tracked at recipeCsvValidateContent doesn't detect drift between CSV and live Recipe.getDescription() rewrite-build-gradle-plugin#176.

Test plan

  • ./gradlew :rewrite-python:recipeCsvGenerate (regenerated file)
  • ./gradlew :rewrite-python:recipeCsvValidate (passes)

Regenerated via `./gradlew :rewrite-python:recipeCsvGenerate` to pick up
description and option changes made to the dependency recipes since the
CSV was last refreshed on 2026-02-11. Five recipes
(`AddDependency`, `ChangeDependency`, `RemoveDependency`,
`UpgradeDependencyVersion`, `UpgradeTransitiveDependencyVersion`) now
correctly document support for `requirements.txt` / `Pipfile` /
`pipenv` and the "not safe as a precondition" warning, and the
`DependencyInsight` data table reflects its current schema.

The drift went undetected because `recipeCsvValidateContent` only
validates CSV formatting, not whether descriptions still match the live
`Recipe.getDescription()`. Tracked at
openrewrite/rewrite-build-gradle-plugin#176.
@github-project-automation github-project-automation Bot moved this to In Progress in OpenRewrite May 27, 2026
@Jenson3210 Jenson3210 merged commit b7ab117 into main May 27, 2026
1 check passed
@Jenson3210 Jenson3210 deleted the Jenson3210/fix-python-recipes-csv branch May 27, 2026 14:16
@github-project-automation github-project-automation Bot moved this from In Progress to Done in OpenRewrite May 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant