Allow the package extras to contain dashes in name

This commit is contained in:
sireliah 2021-05-27 10:56:33 +02:00
parent a5d82ecb02
commit 90d4c8e8a6
No known key found for this signature in database
GPG key ID: DC3990B77E67C595
3 changed files with 340 additions and 23 deletions

View file

@ -129,7 +129,7 @@ let
if exprs.type == "expr" then
(
let
mVal = ''[a-zA-Z0-9\'"_\. ]+'';
mVal = ''[a-zA-Z0-9\'"_\. \-]+'';
mOp = "in|[!=<>]+";
e = stripStr exprs.value;
m = builtins.map stripStr (builtins.match ''^(${mVal}) *(${mOp}) *(${mVal})$'' e);

358
tests/extras/poetry.lock generated

File diff suppressed because one or more lines are too long

View file

@ -8,6 +8,9 @@ authors = ["Your Name <you@example.com>"]
python = "^3.6"
setuptools-scm = { version = "^3.4", extras = ["toml"] }
# Extra with dash in the name should work
boto3-stubs = {extras = ["cognito-idp"], version = "^1.17.82"}
[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"