-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Return generators from builders (#19)
- Loading branch information
Showing
24 changed files
with
580 additions
and
410 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 |
---|---|---|
@@ -1,5 +1,10 @@ | ||
# History | ||
|
||
## 0.2.0 (2021-03-23) | ||
|
||
* Builders now return generators | ||
* Added post processors | ||
|
||
## 0.1.0 (2021-03-09) | ||
|
||
* Initial version |
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
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
__version__ = "0.1.0" | ||
__version__ = "0.2.0" | ||
|
||
from .panimg import convert | ||
|
||
|
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 |
---|---|---|
@@ -1,2 +1,18 @@ | ||
from pathlib import Path | ||
from typing import Dict, List | ||
|
||
|
||
class ValidationError(Exception): | ||
pass | ||
|
||
|
||
class UnconsumedFilesException(Exception): | ||
""" | ||
Raised on completion of an image builder and there are unconsumed files. | ||
Contains a dictionary with a map of the errors encountered when loading | ||
the unconsumed file. | ||
""" | ||
|
||
def __init__(self, *args, file_errors: Dict[Path, List[str]]): | ||
super().__init__(*args) | ||
self.file_errors = file_errors |
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
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
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
Oops, something went wrong.