Skip to content

Comments

pep440: replace lark in favour of regex #152

Merged
sdispater merged 2 commits intopython-poetry:masterfrom
abn:pep44/regex
Mar 31, 2021
Merged

pep440: replace lark in favour of regex #152
sdispater merged 2 commits intopython-poetry:masterfrom
abn:pep44/regex

Conversation

@abn
Copy link
Member

@abn abn commented Mar 30, 2021

The lark early implementation of PEP440 that was introduced was not
performant. The implementation added on average around 7 seconds to
the test suite execution time.

This change drops the lark parser, and uses packaging.version
provided regex for version string parsing. New dataclass interface for
version instances remain unaffected.

fyi: @sdispater

abn added 2 commits March 30, 2021 18:36
The lark early implementation of PEP440 that was introduced was not
performant. The implementation added on average around 7 seconds to
the test suite execution time.

This change drops the lark parser, and uses `packaging.version`
provided regex for version string parsing. New dataclass interface for
version instances remain unaffected.
@abn abn requested a review from a team March 30, 2021 16:37
@sdispater sdispater merged commit 8996496 into python-poetry:master Mar 31, 2021
@abn abn deleted the pep44/regex branch March 31, 2021 09:30
@sdispater sdispater mentioned this pull request Apr 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants