File tree 6 files changed +30
-15
lines changed
instrumentation/opentelemetry-instrumentation-wsgi/tests
6 files changed +30
-15
lines changed Original file line number Diff line number Diff line change 4
4
*/setup.py
5
5
*/gen/*
6
6
reference/*
7
- opentelemetry-python-core/*
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ extension-pkg-whitelist=
7
7
8
8
# Add list of files or directories to be excluded. They should be base names, not
9
9
# paths.
10
- ignore =CVS,gen,opentelemetry-python-core
10
+ ignore =CVS,gen
11
11
12
12
# Add files or directories matching the regex patterns to be excluded. The
13
13
# regex matches against base names, not paths.
Original file line number Diff line number Diff line change 1
- pylint~=2.3
1
+ pylint==2.4.4
2
2
flake8~=3.7
3
3
isort~=4.3
4
4
black>=19.3b0,==19.*
Original file line number Diff line number Diff line change
1
+ # Copyright The OpenTelemetry Authors
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+ import pkg_resources
15
+
16
+ # IMPORTANT: Only the wsgi module needs this because it is always the first
17
+ # package that uses the `{rootdir}/*/tests/` path and gets installed by
18
+ # `eachdist.py` and according to `eachdist.ini`.
19
+
20
+ # Naming the tests module as a namespace package ensures that
21
+ # relative imports will resolve properly for subsequent test packages,
22
+ # as it enables searching for a composite of multiple test modules.
23
+ pkg_resources .declare_namespace (__name__ )
Original file line number Diff line number Diff line change @@ -3,8 +3,7 @@ line-length = 79
3
3
exclude = '''
4
4
(
5
5
/(
6
- reference| # original files from DataDog
7
- opentelemetry-python-core
6
+ reference # original files from DataDog
8
7
)/
9
8
)
10
9
'''
Original file line number Diff line number Diff line change @@ -262,16 +262,6 @@ commands =
262
262
basepython: python3.8
263
263
recreate = True
264
264
deps =
265
- -e {toxinidir}/opentelemetry-python-core/opentelemetry-proto
266
- -e {toxinidir}/opentelemetry-python-core/opentelemetry-api
267
- -e {toxinidir}/opentelemetry-python-core/opentelemetry-sdk
268
- -e {toxinidir}/opentelemetry-python-core/opentelemetry-instrumentation
269
- -e {toxinidir}/opentelemetry-python-core/opentelemetry-proto
270
- -e {toxinidir}/opentelemetry-python-core/tests/util
271
- -e {toxinidir}/opentelemetry-python-core/exporter/opentelemetry-exporter-jaeger
272
- -e {toxinidir}/opentelemetry-python-core/exporter/opentelemetry-exporter-zipkin
273
- -e {toxinidir}/opentelemetry-python-core/exporter/opentelemetry-exporter-prometheus
274
- -e {toxinidir}/opentelemetry-python-core/exporter/opentelemetry-exporter-otlp
275
265
-c dev-requirements.txt
276
266
pylint
277
267
flake8
@@ -282,6 +272,10 @@ deps =
282
272
httpretty
283
273
284
274
commands_pre =
275
+ python -m pip install {toxinidir}/opentelemetry-python-core/opentelemetry-api
276
+ python -m pip install {toxinidir}/opentelemetry-python-core/opentelemetry-sdk
277
+ python -m pip install {toxinidir}/opentelemetry-python-core/tests/util
278
+ python -m pip install {toxinidir}/opentelemetry-python-core/opentelemetry-instrumentation
285
279
python scripts/eachdist.py install --editable --with-test-deps
286
280
287
281
commands =
You can’t perform that action at this time.
0 commit comments