Skip to content

Why does Poetry skip awsapilib's dependency on 2captcha-python? #8100

Answered by radoering
iainelder asked this question in Q&A
Discussion options

You must be logged in to vote
>>> Dependency.create_from_pep_508("2captcha-python>=1.2.0")
lark.exceptions.UnexpectedCharacters: No terminal matches '2' in the current parser context, at line 1 col 1
2captcha-python>=1.2.0
^
Expected one of: 
	* NAME

Poetry just does not support packages starting with a digit:
https://github.com/python-poetry/poetry-core/blob/1ba6836a2d9ca4fa1042bc506129e452b7c86955/src/poetry/core/version/grammars/pep508.lark#L13

According to PEP 508:

identifier    = letterOrDigit identifier_end*
name          = identifier

Looks like a Poetry bug.

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by radoering
Comment options

You must be logged in to vote
1 reply
@radoering
Comment options

Comment options

You must be logged in to vote
0 replies
# for free to join this conversation on GitHub. Already have an account? # to comment
Category
Q&A
Labels
None yet
2 participants