-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Closed
python-poetry/poetry-core
#517Labels
kind/bugSomething isn't working as expectedSomething isn't working as expectedstatus/triageThis issue needs to be triagedThis issue needs to be triaged
Milestone
Description
- 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 (
-vvvoption) 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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
kind/bugSomething isn't working as expectedSomething isn't working as expectedstatus/triageThis issue needs to be triagedThis issue needs to be triaged