Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename development requirement files #3874

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
.tox
~/.cache/pip
key: v3-tox-cache-${{ env.RUN_MATRIX_COMBINATION }}-${{ hashFiles('tox.ini',
'dev-requirements.txt') }}-core
'dev-requirements') }}-core
- name: Run tox
run: tox -f ${{ matrix.python-version }}-sdk -- -k opentelemetry-sdk/tests/performance/benchmarks --benchmark-json=opentelemetry-sdk/tests/output.json
- name: Report on SDK benchmark results
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ jobs:
.tox
~/.cache/pip
key: v4-tox-cache-${{ env.RUN_MATRIX_COMBINATION }}-${{ hashFiles('tox.ini',
'dev-requirements.txt') }}-core
'dev-requirements') }}-core
- name: Windows does not let git check out files with long names
if: ${{ matrix.os == 'windows-2019'}}
run: git config --system core.longpaths true
Expand Down Expand Up @@ -115,7 +115,7 @@ jobs:
path: |
.tox
~/.cache/pip
key: v4-tox-cache-${{ matrix.tox-environment }}-${{ hashFiles('tox.ini', 'dev-requirements.txt')
key: v4-tox-cache-${{ matrix.tox-environment }}-${{ hashFiles('tox.ini', 'dev-requirements')
}}-core
- name: run tox
run: tox -e ${{ matrix.tox-environment }}
Expand Down Expand Up @@ -207,6 +207,6 @@ jobs:
.tox
~/.cache/pip
key: v3-tox-cache-${{ matrix.python-version }}-${{ matrix.package }}-${{ matrix.os
}}-${{ hashFiles('tox.ini', 'dev-requirements.txt') }}-contrib
}}-${{ hashFiles('tox.ini', 'dev-requirements') }}-contrib
- name: run tox
run: tox -f ${{ matrix.python-version }}-${{ matrix.package }} -- -ra
2 changes: 1 addition & 1 deletion .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ build:

python:
install:
- requirements: docs-requirements.txt
- requirements: docs-requirements
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Installation
------------
.. code-block:: sh

pip install -rrequirements.txt
pip install -rrequirements

Run application
---------------
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/fork-process-model/flask-uwsgi/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Installation
------------
.. code-block:: sh

pip install -rrequirements.txt
pip install -rrequirements

Run application
---------------
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/metrics/reader/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Installation

.. code-block:: sh

pip install -r requirements.txt
pip install -r requirements

Run the Example
---------------
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/metrics/views/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Installation

.. code-block:: sh

pip install -r requirements.txt
pip install -r requirements

Run the Example
---------------
Expand Down
4 changes: 2 additions & 2 deletions docs/examples/opencensus-shim/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ Start Jaeger
Python Dependencies
*******************

Install the Python dependencies in :scm_raw_web:`requirements.txt <docs/examples/opencensus-shim/requirements.txt >`
Install the Python dependencies in :scm_raw_web:`requirements <docs/examples/opencensus-shim/requirements >`

.. code-block:: sh

pip install -r requirements.txt
pip install -r requirements


Alternatively, you can install the Python dependencies separately:
Expand Down
4 changes: 2 additions & 2 deletions docs/examples/opentracing/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@ Make sure that the Redis server is running by executing this:
Python Dependencies
*******************

Install the Python dependencies in :scm_raw_web:`requirements.txt <docs/examples/opentracing/requirements.txt >`
Install the Python dependencies in :scm_raw_web:`requirements <docs/examples/opentracing/requirements >`

.. code-block:: sh

pip install -r requirements.txt
pip install -r requirements


Alternatively, you can install the Python dependencies separately:
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion scripts/eachdist.py
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ def install_args(args):
"install",
"--upgrade",
"-r",
str(rootpath / "dev-requirements.txt"),
str(rootpath / "dev-requirements"),
]
+ args.pipargs,
check=True,
Expand Down
2 changes: 1 addition & 1 deletion scripts/generate_website_docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -e
# this script generates the documentation required for
# opentelemetry.io

pip install -r docs-requirements.txt
pip install -r docs-requirements

TMP_DIR=/tmp/python_otel_docs
rm -Rf ${TMP_DIR}
Expand Down
2 changes: 1 addition & 1 deletion scripts/proto_codegen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ echo "Creating temporary virtualenv at $venv_dir using $(python3 --version)"
python3 -m venv $venv_dir
source $venv_dir/bin/activate
python -m pip install \
-c $repo_root/gen-requirements.txt \
-c $repo_root/gen-requirements \
grpcio-tools mypy-protobuf
echo 'python -m grpc_tools.protoc --version'
python -m grpc_tools.protoc --version
Expand Down
90 changes: 45 additions & 45 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ envlist =

[testenv]
deps =
-c dev-requirements.txt
-c dev-requirements
opentelemetry: pytest
opentelemetry: pytest-benchmark
opentelemetry: flaky
Expand All @@ -115,53 +115,53 @@ commands_pre =
; Install without -e to test the actual installation
py3{8,9,10,11}: python -m pip install -U pip setuptools wheel

api: pip install -r {toxinidir}/opentelemetry-api/test-requirements.txt
sdk: pip install -r {toxinidir}/opentelemetry-sdk/test-requirements.txt
semantic-conventions: pip install -r {toxinidir}/opentelemetry-semantic-conventions/test-requirements.txt
test-utils: pip install -r {toxinidir}/tests/opentelemetry-test-utils/test-requirements.txt
api: pip install -r {toxinidir}/opentelemetry-api/test-requirements
sdk: pip install -r {toxinidir}/opentelemetry-sdk/test-requirements
semantic-conventions: pip install -r {toxinidir}/opentelemetry-semantic-conventions/test-requirements
test-utils: pip install -r {toxinidir}/tests/opentelemetry-test-utils/test-requirements

; Install common packages for all the tests. These are not needed in all the
; cases but it saves a lot of boilerplate in this file.
opentelemetry: pip install {toxinidir}/opentelemetry-api {toxinidir}/opentelemetry-semantic-conventions {toxinidir}/opentelemetry-sdk {toxinidir}/tests/opentelemetry-test-utils

protobuf-0: pip install -r {toxinidir}/opentelemetry-proto/test-requirements-0.txt
protobuf-1: pip install -r {toxinidir}/opentelemetry-proto/test-requirements-1.txt
protobuf-0: pip install -r {toxinidir}/opentelemetry-proto/test-requirements-0
protobuf-1: pip install -r {toxinidir}/opentelemetry-proto/test-requirements-1

getting-started: pip install -r {toxinidir}/docs/getting_started/tests/requirements.txt
getting-started: pip install -r {toxinidir}/docs/getting_started/tests/requirements
getting-started: pip install -e {env:CONTRIB_REPO}\#egg=opentelemetry-util-http&subdirectory=util/opentelemetry-util-http
getting-started: pip install -e {env:CONTRIB_REPO}\#egg=opentelemetry-instrumentation&subdirectory=opentelemetry-instrumentation
getting-started: pip install -e {env:CONTRIB_REPO}\#egg=opentelemetry-instrumentation-requests&subdirectory=instrumentation/opentelemetry-instrumentation-requests
getting-started: pip install -e {env:CONTRIB_REPO}\#egg=opentelemetry-instrumentation-wsgi&subdirectory=instrumentation/opentelemetry-instrumentation-wsgi
getting-started: pip install -e {env:CONTRIB_REPO}\#egg=opentelemetry-instrumentation-flask&subdirectory=instrumentation/opentelemetry-instrumentation-flask

exporter-opencensus: pip install -r {toxinidir}/exporter/opentelemetry-exporter-opencensus/test-requirements.txt
exporter-opencensus: pip install -r {toxinidir}/exporter/opentelemetry-exporter-opencensus/test-requirements

exporter-otlp-proto-common-0: pip install -r {toxinidir}/exporter/opentelemetry-exporter-otlp-proto-common/test-requirements-0.txt
exporter-otlp-proto-common-1: pip install -r {toxinidir}/exporter/opentelemetry-exporter-otlp-proto-common/test-requirements-1.txt
exporter-otlp-proto-common-0: pip install -r {toxinidir}/exporter/opentelemetry-exporter-otlp-proto-common/test-requirements-0
exporter-otlp-proto-common-1: pip install -r {toxinidir}/exporter/opentelemetry-exporter-otlp-proto-common/test-requirements-1

exporter-otlp-combined: pip install -r {toxinidir}/exporter/opentelemetry-exporter-otlp/test-requirements.txt
exporter-otlp-combined: pip install -r {toxinidir}/exporter/opentelemetry-exporter-otlp/test-requirements

opentelemetry-exporter-otlp-proto-grpc-0: pip install -r {toxinidir}/exporter/opentelemetry-exporter-otlp-proto-grpc/test-requirements-0.txt
opentelemetry-exporter-otlp-proto-grpc-1: pip install -r {toxinidir}/exporter/opentelemetry-exporter-otlp-proto-grpc/test-requirements-1.txt
opentelemetry-exporter-otlp-proto-grpc-0: pip install -r {toxinidir}/exporter/opentelemetry-exporter-otlp-proto-grpc/test-requirements-0
opentelemetry-exporter-otlp-proto-grpc-1: pip install -r {toxinidir}/exporter/opentelemetry-exporter-otlp-proto-grpc/test-requirements-1

opentelemetry-exporter-otlp-proto-http-0: pip install -r {toxinidir}/exporter/opentelemetry-exporter-otlp-proto-http/test-requirements-0.txt
opentelemetry-exporter-otlp-proto-http-1: pip install -r {toxinidir}/exporter/opentelemetry-exporter-otlp-proto-http/test-requirements-1.txt
opentelemetry-exporter-otlp-proto-http-0: pip install -r {toxinidir}/exporter/opentelemetry-exporter-otlp-proto-http/test-requirements-0
opentelemetry-exporter-otlp-proto-http-1: pip install -r {toxinidir}/exporter/opentelemetry-exporter-otlp-proto-http/test-requirements-1

opentracing-shim: pip install -r {toxinidir}/shim/opentelemetry-opentracing-shim/test-requirements.txt
opentracing-shim: pip install -r {toxinidir}/shim/opentelemetry-opentracing-shim/test-requirements

opencensus-shim: pip install -r {toxinidir}/shim/opentelemetry-opencensus-shim/test-requirements.txt
opencensus-shim: pip install -r {toxinidir}/shim/opentelemetry-opencensus-shim/test-requirements

exporter-prometheus: pip install -r {toxinidir}/exporter/opentelemetry-exporter-prometheus/test-requirements.txt
exporter-prometheus: pip install -r {toxinidir}/exporter/opentelemetry-exporter-prometheus/test-requirements

exporter-zipkin-combined: pip install -r {toxinidir}/exporter/opentelemetry-exporter-zipkin/test-requirements.txt
exporter-zipkin-combined: pip install -r {toxinidir}/exporter/opentelemetry-exporter-zipkin/test-requirements

exporter-zipkin-proto-http: pip install -r {toxinidir}/exporter/opentelemetry-exporter-zipkin-proto-http/test-requirements.txt
exporter-zipkin-proto-http: pip install -r {toxinidir}/exporter/opentelemetry-exporter-zipkin-proto-http/test-requirements

exporter-zipkin-json: pip install -r {toxinidir}/exporter/opentelemetry-exporter-zipkin-json/test-requirements.txt
exporter-zipkin-json: pip install -r {toxinidir}/exporter/opentelemetry-exporter-zipkin-json/test-requirements

propagator-b3: pip install -r {toxinidir}/propagator/opentelemetry-propagator-b3/test-requirements.txt
propagator-b3: pip install -r {toxinidir}/propagator/opentelemetry-propagator-b3/test-requirements

propagator-jaeger: pip install -r {toxinidir}/propagator/opentelemetry-propagator-jaeger/test-requirements.txt
propagator-jaeger: pip install -r {toxinidir}/propagator/opentelemetry-propagator-jaeger/test-requirements

; In order to get a healthy coverage report,
; we have to install packages in editable mode.
Expand Down Expand Up @@ -218,27 +218,27 @@ commands =
basepython: python3
recreate = True
deps =
-r dev-requirements.txt
-r dev-requirements

commands_pre =
pip install -r {toxinidir}/opentelemetry-api/test-requirements.txt \
-r {toxinidir}/opentelemetry-sdk/test-requirements.txt \
-r {toxinidir}/opentelemetry-semantic-conventions/test-requirements.txt \
-r {toxinidir}/opentelemetry-proto/test-requirements-0.txt \
-r {toxinidir}/shim/opentelemetry-opentracing-shim/test-requirements.txt \
-r {toxinidir}/shim/opentelemetry-opencensus-shim/test-requirements.txt \
-r {toxinidir}/exporter/opentelemetry-exporter-opencensus/test-requirements.txt \
-r {toxinidir}/tests/opentelemetry-test-utils/test-requirements.txt \
-r {toxinidir}/exporter/opentelemetry-exporter-otlp-proto-common/test-requirements-0.txt \
-r {toxinidir}/exporter/opentelemetry-exporter-otlp-proto-http/test-requirements-0.txt \
-r {toxinidir}/exporter/opentelemetry-exporter-otlp-proto-grpc/test-requirements-0.txt \
-r {toxinidir}/exporter/opentelemetry-exporter-prometheus/test-requirements.txt \
-r {toxinidir}/exporter/opentelemetry-exporter-zipkin-proto-http/test-requirements.txt \
-r {toxinidir}/exporter/opentelemetry-exporter-zipkin-json/test-requirements.txt \
-r {toxinidir}/exporter/opentelemetry-exporter-otlp/test-requirements.txt \
-r {toxinidir}/exporter/opentelemetry-exporter-zipkin/test-requirements.txt \
-r {toxinidir}/propagator/opentelemetry-propagator-b3/test-requirements.txt \
-r {toxinidir}/propagator/opentelemetry-propagator-jaeger/test-requirements.txt
pip install -r {toxinidir}/opentelemetry-api/test-requirements \
-r {toxinidir}/opentelemetry-sdk/test-requirements \
-r {toxinidir}/opentelemetry-semantic-conventions/test-requirements \
-r {toxinidir}/opentelemetry-proto/test-requirements-0 \
-r {toxinidir}/shim/opentelemetry-opentracing-shim/test-requirements \
-r {toxinidir}/shim/opentelemetry-opencensus-shim/test-requirements \
-r {toxinidir}/exporter/opentelemetry-exporter-opencensus/test-requirements \
-r {toxinidir}/tests/opentelemetry-test-utils/test-requirements \
-r {toxinidir}/exporter/opentelemetry-exporter-otlp-proto-common/test-requirements-0 \
-r {toxinidir}/exporter/opentelemetry-exporter-otlp-proto-http/test-requirements-0 \
-r {toxinidir}/exporter/opentelemetry-exporter-otlp-proto-grpc/test-requirements-0 \
-r {toxinidir}/exporter/opentelemetry-exporter-prometheus/test-requirements \
-r {toxinidir}/exporter/opentelemetry-exporter-zipkin-proto-http/test-requirements \
-r {toxinidir}/exporter/opentelemetry-exporter-zipkin-json/test-requirements \
-r {toxinidir}/exporter/opentelemetry-exporter-otlp/test-requirements \
-r {toxinidir}/exporter/opentelemetry-exporter-zipkin/test-requirements \
-r {toxinidir}/propagator/opentelemetry-propagator-b3/test-requirements \
-r {toxinidir}/propagator/opentelemetry-propagator-jaeger/test-requirements

commands =
python scripts/eachdist.py lint --check-only
Expand All @@ -247,8 +247,8 @@ commands =
basepython: python3
recreate = True
deps =
-c {toxinidir}/dev-requirements.txt
-r {toxinidir}/docs-requirements.txt
-c {toxinidir}/dev-requirements
-r {toxinidir}/docs-requirements
changedir = docs
commands =
sphinx-build -E -a -W -b html -T . _build/html
Expand Down