mirror of
https://github.com/httpie/cli.git
synced 2024-11-28 08:38:44 +02:00
Added travis-ci configuration.
This commit is contained in:
parent
8a4f501706
commit
6d14097844
10
.travis.yml
Normal file
10
.travis.yml
Normal file
@ -0,0 +1,10 @@
|
||||
language: python
|
||||
python:
|
||||
- 2.6
|
||||
- 2.7
|
||||
# TODO: Python 3
|
||||
#- 3.2
|
||||
script: python setup.py test
|
||||
install:
|
||||
- pip -q install requests pygments argparse
|
||||
|
@ -3,7 +3,10 @@ import os
|
||||
import sys
|
||||
import json
|
||||
import requests
|
||||
from collections import OrderedDict
|
||||
try:
|
||||
from collections import OrderedDict
|
||||
except ImportError:
|
||||
OrderedDict = dict
|
||||
from requests.structures import CaseInsensitiveDict
|
||||
from . import cli
|
||||
from . import pretty
|
||||
@ -106,5 +109,6 @@ def main(args=None,
|
||||
stdout.write(body.encode('utf-8'))
|
||||
stdout.write('\n')
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
Loading…
Reference in New Issue
Block a user