Skip to content

Commit 0fc9e32

Browse files
committed
Initial commit
0 parents  commit 0fc9e32

67 files changed

Lines changed: 2947 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
6+
# Distribution / packaging
7+
.Python
8+
env/
9+
build/
10+
develop-eggs/
11+
dist/
12+
eggs/
13+
.eggs/
14+
lib/
15+
lib64/
16+
parts/
17+
sdist/
18+
var/
19+
*.egg-info/
20+
.installed.cfg
21+
*.egg
22+
23+
# PyInstaller
24+
# Usually these files are written by a python script from a template
25+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
26+
*.manifest
27+
*.spec
28+
29+
# Installer logs
30+
pip-log.txt
31+
pip-delete-this-directory.txt
32+
33+
# Unit test / coverage reports
34+
htmlcov/
35+
.tox/
36+
.coverage
37+
.coverage.*
38+
.cache
39+
nosetests.xml
40+
coverage.xml
41+
*,cover
42+
43+
.DS_Store
44+
45+
# virtual env
46+
venv/
47+
.env
48+
49+
resources/output.wav
50+
npm-debug.log
51+
.idea

.travis.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
language: python
2+
python:
3+
- "2.6"
4+
- "2.7"
5+
- "3.2"
6+
- "3.3"
7+
- "3.4"
8+
- "3.5"
9+
- "3.5-dev" # 3.5 development branch
10+
- "nightly" # currently points to 3.6-dev
11+
# command to install dependencies
12+
install:
13+
- pip install .
14+
- pip install -r requirements.txt
15+
- pip install -r requirements-dev.txt
16+
# command to run tests
17+
script: coverage run --source watson-developer-cloud -m py.test test

CONTRIBUTING.md

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# Questions
2+
3+
If you are having difficulties using the APIs or have a question about the IBM Watson Services,
4+
please ask a question on [dW Answers][dw] or [Stack Overflow][stackoverflow].
5+
6+
# Issues
7+
8+
If you encounter an issue with the Python SDK, you are welcome to submit a [bug report](https://github.com/watson-developer-cloud/python-sdk/issues).
9+
Before that, please search for similar issues. It's possible somebody has encountered this issue already.
10+
11+
## Pull Requests
12+
13+
If you want to contribute to the repository, here's a quick guide:
14+
1. Fork the repository
15+
2. develop and test your code changes with [pytest].
16+
* Respect the original code [style guide][styleguide].
17+
* Only use spaces for indentation.
18+
* Create minimal diffs - disable on save actions like reformat source code or organize imports. If you feel the source code should be reformatted create a separate PR for this change.
19+
* Check for unnecessary whitespace with git diff --check before committing.
20+
3. Make the test pass
21+
4. Commit your changes
22+
5. Push to your fork and submit a pull request to the `dev` branch
23+
24+
## Running the tests
25+
26+
You probably want to set up a [virtualenv].
27+
28+
1. Clone this repository:
29+
```
30+
git clone https://github.com/mitsuhiko/flask.git
31+
```
32+
2. Install the sdk as an editable package using the current source:
33+
```
34+
pip install --editable .
35+
```
36+
3. Install the test dependencies with:
37+
```
38+
pip install -r requirements-dev.txt
39+
```
40+
4. Run the test cases with:
41+
```
42+
py.test test
43+
```
44+
45+
## Additional Resources
46+
+ [General GitHub documentation](https://help.github.com/)
47+
+ [GitHub pull request documentation](https://help.github.com/send-pull-requests/)
48+
49+
[dw]: https://developer.ibm.com/answers/questions/ask/?topics=watson
50+
[stackoverflow]: http://stackoverflow.com/questions/ask?tags=ibm-watson
51+
[styleguide]: http://google.github.io/styleguide/pyguide.html
52+
[pytest]: http://pytest.org/latest/
53+
[virtualenv]: http://virtualenv.readthedocs.org/en/latest/index.html

0 commit comments

Comments
 (0)