-
If you see a bug or want to request a feature open an issue on github and label it with either
featureorbugappropriately. We will try to respond as quickly as possible to either. -
If you wish to contribute to an existing bug please comment to let us know that you are working on the issue and for updates on progress.
-
Similarly if you want to work on a open
featurerequest, comment on the issue to let us know.
-
Fork this repository to your local account. You will not be allowed to push straight to master, so forking will allow you to push your changes.
-
Git clone the forked repository to a local location
git clone <location> -
Make sure you have Python3 (3.7 Preferred) as well as pip installed and working correctly. If you don't have pip because you are using a python version 3 < x < 3.4 then you should install it according to this. This project may work on Python2 but we will not be supporting any development towards Python2 related issues since Python2 is being depreciated.
-
CD to where you downloaded the repository
Note: Its recommended to use a virtual environment to help manage your python projects and dependencies. You can set one up by first installing virtualenv with
pip install virtualenvand thenpython3 -m venv <venv name>. Usually people will runpython3 -m venv venvwhich creates a virtual environment namedvenvto keep things simple. Activate the virtual environment withsource venv/bin/activate. To exit the virtual environment rundeactivate. While inside the virtual environment your python and all of its packages are associated with that specific virtualenvironment. Anypip install <pkg_namewill install that package to your specific venv. This helps keep dependencies for different projects simple, since you won't have to worry about changing installed packages globally. Just remember to activate when you start working on the project, and deactivate when you are done. -
Cd into the directory and install the requirements. You can install them manually or
pip install -r requirements.txt -
Add an upstream remote to get updates from our branch with
git remote add upstream https://www.github.com/sofarocean/wavefleet-client-python.git -
You must do your work on a branch otherwise it will not be accepted. If you are working on a bug name your branch
bug/<bug_name, and if you are working on a feature, commentfeature/<feature_name>. You can create the branch locally withgit checkout -b branch_nameand then push it to github withgit push --set-upstream origin branch_name. -
For smaller contributions like updating a readme, or fixing a small bug that is already covered by the test suite then you are most likely find with not adding any. Otherwise when you finish your work, add tests to the
testsfolder. Test your code by runningpytestin the main repo directory. -
If everything passes feel free to open a pull request to the staging branch and we will review the code. If you are stuck on a certain issue feel free to add more comments and questions to the issue thread and we will do our best to help you out!
-
Thank you for contributing!!
- Bump the semver version number in ./setup.py
- Run
build.sh