We welcome contributions from the community and are pleased to have you join us. This document will help you get started.
Poetry is a dependency management and packaging tool in Python that makes it easy to manage virtual environments. It's particularly useful when you need to test changes to the TaskingAI client in a local development setup.
Whether you're looking to fix a bug, add a new feature, or just improve the TaskingAI client, you'll want to be able to:
- Test your changes in isolation from your system Python installation.
- See your changes reflected immediately in any local code that imports the TaskingAI client.
- Keep track of your changes in git to enable collaboration and code review through GitHub pull requests.
First, create a fork of the TaskingAI client repository on GitHub, and then clone your fork locally:
git clone https://github.com/<your-username>/taskingai-python-client.git
cd taskingai-python-client
You can install Poetry by following the instructions on the official website.
Once Poetry is installed, you can install all the required dependencies by running:
poetry install
Enter the virtual environment shell created by Poetry:
poetry shell
Verify the setup:
poetry env info
Now you can start making changes to the TaskingAI client. To test your changes, you may want to:
- Write unit tests.
- Run the TaskingAI client in your local applications or Jupyter Notebooks.
After making your changes, push them to your fork and create a pull request on the original TaskingAI repository.
To use your development version of the TaskingAI client in another application or Jupyter Notebook:
Run:
poetry env info --path
Source the activate
script in your virtualenv:
source <your-virtualenv-path>/bin/activate
Create a test file in your TaskingAI client code directory and another in your second shell to verify that changes to the client are reflected immediately.
If you have any questions or run into issues, please file an issue on GitHub.
Thank you for contributing to TaskingAI!