-
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.
- Loading branch information
Showing
9 changed files
with
58 additions
and
26 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
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,31 @@ | ||
# TODO: | ||
|
||
List of things we need to do/fix before releasing on PyPI: | ||
|
||
### General | ||
|
||
- [ ] Make sure you cannot create a field called "inputs" | ||
- [ ] Make sure it raies if you give it a kwarg it doesn't know about. | ||
- [ ] Think of a better way to pass exceptions. I don't like passing the | ||
`nameduple` in the Exception. | ||
|
||
- [ ] Support for Python 2.X. | ||
- [ ] Update README and provide more useful examples. | ||
- [ ] Put test requirements into `test-requirements.txt` | ||
- [ ] Make execute an `@abstractmethod`, so that an error gets raised if | ||
you don't define `execute` in your mutation subclass. | ||
- [ ] Release on pypi. | ||
- [ ] Support for running commands in an atomic (all or nothing) fashion, | ||
perhaps using a contextmanager. | ||
- [x] Create setup.py file | ||
- [x] Add `__version__` | ||
- [x] Test that exceptions can be raised when you `run`. | ||
|
||
|
||
### Testing | ||
|
||
- [ ] Make sure default values get overridden if there's a user-provided value. | ||
- [ ] Make sure command fails if you provide unexpected inputs. | ||
- [ ] Make sure `Mutation.__getattr__` raises if you ask it for something that does not exist. | ||
|
||
|
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,3 +1,3 @@ | ||
from .core import Mutation | ||
|
||
__version__ = '0.1.0' | ||
__version__ = '0.1.0' |
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
This file was deleted.
Oops, something went wrong.
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 @@ | ||
def wrap(item): | ||
if not isinstance(item, (list, tuple)): | ||
return [item] | ||
return item | ||
return item |
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