-
Notifications
You must be signed in to change notification settings - Fork 251
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
locker: port base implementation from poetry
- Loading branch information
Showing
5 changed files
with
829 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
from poetry.core.lock.categories import LockCategory | ||
from poetry.core.lock.locker import Locker | ||
|
||
|
||
__all__ = [ | ||
LockCategory.__name__, | ||
Locker.__name__, | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
from enum import Enum | ||
|
||
|
||
class LockCategory(Enum): | ||
MAIN = "main" | ||
DEV = "dev" | ||
|
||
def __eq__(self, other): | ||
if not isinstance(other, Enum): | ||
return self.value == other | ||
super(LockCategory, self).__eq__(other) |
Oops, something went wrong.