Skip to content

Commit

Permalink
adding python-snappy to setup.cfg
Browse files Browse the repository at this point in the history
  • Loading branch information
Azfaar Qureshi committed Dec 22, 2020
1 parent 6cf2236 commit 26c9059
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Table of Contents

Installation
------------
Prerequisite
Prerequisites
~~~~~~~~~~~~
1. Install the snappy c-library
**DEB**: ``sudo apt-get install libsnappy-dev``
Expand All @@ -59,9 +59,6 @@ Prerequisite

**Windows**: ``pip install python_snappy-0.5-cp36-cp36m-win_amd64.whl``

2. Install python-snappy
`pip install python-snappy`

Exporter
~~~~~~~~

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ install_requires =
requests == 2.25.0
opentelemetry-api == 0.17.dev0
opentelemetry-sdk == 0.17.dev0

python-snappy >= 0.5.4
[options.packages.find]
where = src

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
from typing import Dict, Sequence

import requests

import snappy

from opentelemetry.exporter.prometheus_remote_write.gen.remote_pb2 import (
WriteRequest,
)
Expand Down
6 changes: 4 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,8 @@ deps =
httpretty

commands_pre =
sudo apt-get install libsnappy-dev
pip install python-snappy
python -m pip install {toxinidir}/opentelemetry-python-core/opentelemetry-api
python -m pip install {toxinidir}/opentelemetry-python-core/opentelemetry-instrumentation
python -m pip install {toxinidir}/opentelemetry-python-core/opentelemetry-sdk
Expand Down Expand Up @@ -356,6 +358,8 @@ changedir =
tests/opentelemetry-docker-tests/tests

commands_pre =
sudo apt-get install libsnappy-dev
pip install python-snappy
pip install -e {toxinidir}/opentelemetry-python-core/opentelemetry-api \
-e {toxinidir}/opentelemetry-python-core/opentelemetry-instrumentation \
-e {toxinidir}/opentelemetry-python-core/opentelemetry-sdk \
Expand All @@ -373,8 +377,6 @@ commands_pre =
-e {toxinidir}/instrumentation/opentelemetry-instrumentation-system-metrics \
-e {toxinidir}/opentelemetry-python-core/exporter/opentelemetry-exporter-opencensus \
-e {toxinidir}/exporter/opentelemetry-exporter-prometheus-remote-write
sudo apt-get install libsnappy-dev
pip install python-snappy
docker-compose up -d
python check_availability.py
commands =
Expand Down

0 comments on commit 26c9059

Please sign in to comment.