Skip to content

Author Regex Too Restrictive #6933

@muellert

Description

@muellert
  • Poetry version: 1.2.2
  • Python version: 3.9
  • OS version and name:
  • pyproject.toml: not relevant, see below
  • I am on the latest stable Poetry version, installed using a recommended method.
  • I have searched the issues of this repo and believe that this is not a duplicate.
  • I have consulted the FAQ and blog for any relevant entries or release notes.
  • If an exception occurs when executing a command, I executed it again in debug mode (-vvv option) and have included the output below.

Issue

I am trying to use Poetry in an environment where user names, as per the Gecos field, are structured like 'Surname, Given Name [Department]'. If I run 'poetry new testing-poetry', I get a pyproject.yaml file that has

authors = ["Surname, Given Name [Department]"]

When I now run 'poetry build', this will bomb out with

"Invalid author string. Must be in the format: John Smith [email protected]"

I suggest augmenting the AUTHOR_REGEX, which, in "my" installation (virtualenv) is duplicated in

core/masonry/builders/builder.py and
core/package/package.py

to allow for square brackets in the name field of the author.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't working as expectedstatus/triageThis issue needs to be triaged

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions