Skip to content

Latest commit

 

History

History
67 lines (41 loc) · 1.69 KB

CONTRIBUTING.md

File metadata and controls

67 lines (41 loc) · 1.69 KB

To get started contributing to this project, you'll first need to set up your development environment.

git clone https://github.com/ChainAccelOrg/audit-repo-cloner.git
cd audit-repo-cloner
python3 -m venv venv
source venv/bin/activate

We set up a virtual environment so that packages you install get installed to an isolated location (the venv folder we just created). If you want to exit this virtual environment, you can run deactivate.

Then, install the development dependencies.

pip install -r requirements.txt

Optional

You can also install the package in editable mode.

pip install -e .

The pip install -e . command installs our package in "editable" mode. This means that any changes you make to the code will be reflected in the package you import in your own code.

This would be if you want to run make changes and test them out on your own code in another project.

Tests

Unit Tests

pytest

Integration Tests

TODO

All tests

TODO

Upload to PyPI (For most contributors)

Once the package is ready, do the following:

  1. Update the __version__ in __version__.py
  2. Cut a release in the GitHub UI with the same version as what's in __version__.py

The github actions should then automatically push it to PyPI.

Uploading to PyPI (Manual)

For maintainers only. You can view the docs to learn more.

Note: setup.py sdist is deprecated. Use python3 -m build instead.

python3 -m build
python3 -m twine upload dist/*

Right now, we have our GitHub actions setup so that every release we push we automatically upload to PyPI.