Skip to content
This repository has been archived by the owner on Sep 4, 2022. It is now read-only.

Latest commit

 

History

History
56 lines (37 loc) · 1.31 KB

CONTRIBUTING.md

File metadata and controls

56 lines (37 loc) · 1.31 KB

Contributing Guide

We'd love your help!

Env Prerequisites

Make sure you have the following env versions:

python 3.8

Fork

In the interest of keeping this repository clean and manageable, you should work from a fork. To create a fork, click the 'Fork' button at the top of the repository, then clone the fork locally using git clone [email protected]:USERNAME/otel-py.git.

You should also add this repository as an "upstream" repo to your local copy, in order to keep it up to date. You can add this as a remote like so:

git remote add upstream https://github.com/cisco-open/otel-py.git

#verify that the upstream exists
git remote -v

To update your fork, fetch the upstream repo's branches and commits, then merge your main with upstream's main:

git fetch upstream
git checkout main
git merge upstream/main

Setup repo

After the clone you will want to install all repo deps, run:

if using PyCharm - go to Preferences > Python Interpreter > and use poetry interpreter.

poetry build
make all

This will install the main package deps and then all the scope packages deps (and also will build the sub packages)

To run all tests:

make test

to generate .proto files:

python -m grpc_tools.protoc -I. --python_out=. --grpc_python_out=. hello.proto