Skip to content

Commit

Permalink
Update plette to version 2.1.0
Browse files Browse the repository at this point in the history
This fixes breakage on files which use scripts callable.

#6173

Signed-off-by: Oz Tiram <[email protected]>
  • Loading branch information
oz123 committed Jun 8, 2024
1 parent 0618fab commit 52f7b09
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pipenv/vendor/plette/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"Lockfile", "Pipfile",
]

__version__ = '2.0.2'
__version__ = '2.1.0'

from .lockfiles import Lockfile
from .pipfiles import Pipfile
4 changes: 2 additions & 2 deletions pipenv/vendor/plette/models/scripts.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class Script(DataModel):
This always works in POSIX mode, even on Windows.
"""
__OPTIONAL__ = {
"script": (str,list)
"script": (str, list, dict)
}

def __init__(self, data):
Expand All @@ -25,7 +25,7 @@ def validate(cls, data):
raise DataValidationError("Script cannot be empty")
for k, types in cls.__OPTIONAL__.items():
if not isinstance(data, types):
raise DataValidationError(f"Invalid type for field {t}: {type(data[t])}")
raise DataValidationError(f"Invalid type for {k}: {type(data)}")
def __repr__(self):
return "Script({0!r})".format(self._parts)

Expand Down
2 changes: 1 addition & 1 deletion pipenv/vendor/vendor.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ packaging==24.0
pexpect==4.9.0
pipdeptree==2.18.1
zipp==3.18.1
plette==2.0.2
plette==2.1.0
ptyprocess==0.7.0
python-dotenv==1.0.1
pythonfinder==2.1.0
Expand Down

0 comments on commit 52f7b09

Please sign in to comment.