Skip to content

Fix poetry migration so that maintainers and authors are under the correct section and in the correct format #445

@aaron-gary

Description

@aaron-gary

In the previous ticket #437 we discovered that there is one more format we need to account for in the pyproject.toml [tool.poetry] to [project] migration. Since we didn't have that scenario covered we removed the "authors" and "maintainers" from the migration. We need to finish the baton migration so that we can re-incorporate the remaining items for migration.

Steps to reproduce:

  1. run mvn clean install -P bootstrap
  2. Check the habushu-maven-plugin/target/test-classes/migration/poetry-v2/with-fields-in-tool-poetry.toml file and observe where authors and maintainers are located

Expected result:

  • Build passes without failure
  • The authors and maintainers are under [project] and are in the format `[{name = "Some Name", email = "someone@example.con"}]

Actual result:
maintainers and authors are under [tool.poetry] and are not in the correct format

Note: blank lines are important (make sure there is a blank line preceding the added code)

DoD:

  • Update the scenario with according to the steps to reproduce
  • the maven build passes

Test Steps:

  1. Pull latest changes
  2. Run the build
    mvn clean install -P bootstrap
  3. Verify the build succeeds

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions