If you have issues with the APIs or have a question about the Watson services, see Stack Overflow.
If you encounter an issue with the Python SDK, you are welcome to submit a bug report. Before that, please search for similar issues. It's possible somebody has encountered this issue already.
If you want to contribute to the repository, here's a quick guide:
- Fork the repository
- Install
virtualenv
andtox
- Develop and test your code changes with pytest.
- Respect the original code style guide.
- Only use spaces for indentation.
- 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.
- Check for unnecessary whitespace with
git diff --check
before committing. - Make sure your code supports Python 3.9, 3.10, 3.11. You can use
pyenv
andtox
for this
- Make the test pass
- Commit your changes
- Commits should follow the Angular commit message guidelines. This is because our release tool uses this format for determining release versions and generating changelogs. To make this easier, we recommend using the Commitizen CLI with the
cz-conventional-changelog
adapter.
- Push to your fork and submit a pull request to the
dev
branch
You probably want to set up a virtualenv.
- Clone this repository:
git clone https://github.com/watson-developer-cloud/python-sdk.git
- Install the sdk as an editable package using the current source:
pip install --editable .
- Install the test dependencies with:
pip install -r requirements-dev.txt
- Run the test cases with:
py.test test