Skip to content

Commit

Permalink
Bump plette to v2.0.2
Browse files Browse the repository at this point in the history
Signed-off-by: Oz Tiram <oz.tiram@gmail.com>
  • Loading branch information
oz123 committed Apr 25, 2024
1 parent b77b211 commit 9abca81
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 40 deletions.
3 changes: 1 addition & 2 deletions pipenv/vendor/plette/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
"Lockfile", "Pipfile",
]

# not yet released
__version__ = '2.0.0pre'
__version__ = '2.0.2'

from .lockfiles import Lockfile
from .pipfiles import Pipfile
32 changes: 0 additions & 32 deletions pipenv/vendor/plette/__main__.py

This file was deleted.

4 changes: 2 additions & 2 deletions pipenv/vendor/plette/lockfiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import collections.abc as collections_abc


from pipenv.vendor.plette.models import DataModel, Meta, PackageCollection
from .models import DataModel, Meta, PackageCollection


class _LockFileEncoder(json.JSONEncoder):
Expand Down Expand Up @@ -115,7 +115,7 @@ def __getitem__(self, key):
return value

def __setitem__(self, key, value):
if isinstance(value, DataView):
if isinstance(value, DataModel):
self._data[key] = value._data
else:
self._data[key] = value
Expand Down
4 changes: 2 additions & 2 deletions pipenv/vendor/plette/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
__all__ = [
"DataView", "DataModelCollection", "DataModelMapping", "DataModelSequence",
"validate", "DataValidationError",
"DataModel", "DataModelCollection", "DataModelMapping", "DataModelSequence",
"DataValidationError",
"Hash", "Package", "Requires", "Source", "Script",
"Meta", "PackageCollection", "ScriptCollection", "SourceCollection",
]
Expand Down
2 changes: 1 addition & 1 deletion pipenv/vendor/plette/pipfiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def __getitem__(self, key):
return value

def __setitem__(self, key, value):
if isinstance(value, DataView):
if isinstance(value, DataModel):
self._data[key] = value._data
else:
self._data[key] = value
Expand Down
2 changes: 1 addition & 1 deletion pipenv/vendor/vendor.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ colorama==0.4.6
dparse==0.6.3
pexpect==4.9.0
pipdeptree==2.16.2
plette==0.4.4
plette==2.0.2
ptyprocess==0.7.0
python-dotenv==1.0.1
pythonfinder==2.1.0
Expand Down

0 comments on commit 9abca81

Please sign in to comment.