Split SDK is an open source project and we welcome feedback and contribution. The information below describes how to build the project with your changes, run the tests, and send the Pull Request(PR).
- Python: 3.7 or newer. Python 3.12 is recommended for day-to-day development; the repo's
.python-versionpoints to it for pyenv/uv users. - Redis: a local
redis-serverlistening onlocalhost:6379, required by the Redis tests. - Kerberos extra (
pip install -e ".[kerberos]"): only needed for Kerberos proxy authentication, and installed by the test extras since the tests cover it. It buildsgssapifrom source, so on Debian/Ubuntu installlibkrb5-devandbuild-essentialfirst. macOS ships Kerberos, so nothing extra is usually needed (brew install krb5only if the build fails). - Optional: a virtual environment (
python -m venv .venv, or uv) to keep dependencies isolated, and pyenv or uv to install other Python versions.
- Fork the repository and create a topic branch from
developmentbranch (we follow GitFlow:mainholds the stable release history anddevelopmentis the integration branch). Please use a descriptive name for your branch. - While developing, use descriptive messages in your commits. Avoid short or meaningless sentences like "fix bug".
- Make sure to add tests for both positive and negative cases.
- Run the linter script of the project and fix any issues you find.
- Run the build script and make sure it runs with no errors.
- Run all tests and make sure there are no failures.
git pushyour changes to GitHub within your topic branch.- Open a Pull Request(PR) from your forked repo and into the
developmentbranch of the original repository. - When creating your PR, please describe what you accomplished, how to test your changes, and any extra notes reviewers should know about.
- Check for conflicts once the pull request is created to make sure your PR can be merged cleanly into
development. - Keep an eye out for any feedback or comments from Split's SDK team.
To run the tests, from the repository root:
pip install -U pip setuptoolspip install -e ".[test,redis,asyncio,kerberos]"- Start Redis if it isn't running:
redis-server --daemonize yes python -m pytest
To lint, run flake8 splitio/.
If you have any other questions or need to contact us directly in a private manner send us a note at sdks@split.io.