-
Notifications
You must be signed in to change notification settings - Fork 559
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
port AnyOptions shortcut and travis-ci setup from master
- Loading branch information
1 parent
0c5122b
commit 09e2663
Showing
5 changed files
with
94 additions
and
7 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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,12 @@ | |||
language: python | |||
python: | |||
- "2.5" | |||
- "2.6" | |||
- "2.7" | |||
- "3.1" | |||
- "3.2" | |||
- "pypy" | |||
# command to install dependencies | |||
install: pip install pytest --use-mirrors | |||
# command to run tests | |||
script: py.test |
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
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,20 @@ | |||
"""Example of program which use [options] shortcut in pattern | |||
Usage: | |||
any_options_example.py [options] | |||
Options: | |||
-h --help show this help message and exit | |||
--version show version and exit | |||
-n, --number N use N as a number | |||
-t, --timeout TIMEOUT set timeout TIMEOUT seconds | |||
--apply apply changes to database | |||
-q operate in quiet mode | |||
""" | |||
from docopt import docopt | |||
|
|||
|
|||
if __name__ == '__main__': | |||
arguments = docopt(__doc__, version='1.0.0rc2') | |||
print(arguments) |
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