Skip to content

Commit

Permalink
Lockfile - restore dev_packages attribute
Browse files Browse the repository at this point in the history
Signed-off-by: Oz Tiram <oz.tiram@gmail.com>
oz123 committed Mar 14, 2024

Verified

This commit was signed with the committer’s verified signature.
oz123 Oz Tiram
1 parent 7c2885b commit dafa60f
Showing 2 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/plette/lockfiles.py
Original file line number Diff line number Diff line change
@@ -181,3 +181,8 @@ def meta(self):
@meta.setter
def meta(self, value):
self._meta = value


@property
def dev_packages(self):
return self.develop
7 changes: 7 additions & 0 deletions src/plette/models.py
Original file line number Diff line number Diff line change
@@ -116,6 +116,13 @@ def validate_verify_ssl(self, value):
raise ValidationError("verify_ssl: must be of boolean type")
return value

def dump(self):
return {
"name": self.name,
"verify_ssl": self.verify_ssl,
"url": self.url
}


@dataclass
class PackageSpecfiers(BaseModel):

0 comments on commit dafa60f

Please sign in to comment.