File tree Expand file tree Collapse file tree 5 files changed +38
-28
lines changed Expand file tree Collapse file tree 5 files changed +38
-28
lines changed Original file line number Diff line number Diff line change @@ -37,11 +37,6 @@ Pre-requirements:
37
37
From ` aws-otel-python-instrumentation/contract-tests ` execute:
38
38
39
39
```
40
- ./create-images.sh
41
- mkdir dist
42
- cd images/mock-collector
43
- python3 -m build --outdir ../../dist
44
- pip wheel --no-deps mock_collector-1.0.0.tar.gz
45
- pip install mock_collector-1.0.0-py3-none-any.whl --force-reinstall
46
- <TODO>
40
+ ./set-up-contract-tests.sh
41
+ pytest tests
47
42
```
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ dependencies = [
18
18
]
19
19
20
20
[tool .hatch .build .targets .sdist ]
21
- include = [" /src " ]
21
+ include = [" *.py " ]
22
22
23
23
[tool .hatch .build .targets .wheel ]
24
- packages = [" src/amazon " ]
24
+ include = [" *.py " ]
Original file line number Diff line number Diff line change
1
+ cd images/mock-collector
2
+ docker build . -t aws-appsignals-mock-collector-python
3
+ cd ..
4
+
5
+ cd applications
6
+ for dir in * /
7
+ do
8
+ cd $dir
9
+ docker build . -t aws-appsignals-tests-${dir%/ } -app
10
+ cd ..
11
+ done
12
+
13
+ cd ../..
14
+
15
+ mkdir dist
16
+ rm -rf dist/*
17
+ cd images/mock-collector
18
+ python3 -m build --outdir ../../dist --no-isolation
19
+ cd ../../dist
20
+ pip wheel --no-deps mock_collector-1.0.0.tar.gz
21
+ pip install mock_collector-1.0.0-py3-none-any.whl --force-reinstall
22
+
23
+ cd ../tests
24
+ python3 -m build --outdir ../dist --no-isolation
25
+ cd ../dist
26
+ pip wheel --no-deps contract_tests-1.0.0.tar.gz
27
+ # --force-reinstall causes `ERROR: No matching distribution found for mock-collector==1.0.0`, but uninstalling and reinstalling works pretty reliably.
28
+ pip uninstall contract-tests -y
29
+ pip install contract_tests-1.0.0-py3-none-any.whl
30
+
31
+ cd ..
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ name = "contract-tests"
7
7
description = " Contract tests for AWS OTEL Python Instrumentation"
8
8
version = " 1.0.0"
9
9
license = " Apache-2.0"
10
- requires-python = " >=3.8
10
+ requires-python = " >=3.8"
11
11
12
12
dependencies = [
13
13
" opentelemetry-proto==1.22.0" ,
@@ -22,10 +22,7 @@ dependencies = [
22
22
test = []
23
23
24
24
[tool .hatch .build .targets .sdist ]
25
- include = [
26
- " /src" ,
27
- " /tests" ,
28
- ]
25
+ include = [" /test" ]
29
26
30
27
[tool .hatch .build .targets .wheel ]
31
- packages = [" src /amazon" ]
28
+ packages = [" test /amazon" ]
You can’t perform that action at this time.
0 commit comments