Skip to content

Commit a289bd6

Browse files
authored
Merge branch 'master' into async
2 parents a7f1a81 + 275c131 commit a289bd6

File tree

6 files changed

+33
-41
lines changed

6 files changed

+33
-41
lines changed

.github/workflows/IntegrationTesting.yaml

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,18 @@ jobs:
1111

1212
steps:
1313
- name: Pull in source code from aws-xray-sdk-python Github repository
14-
uses: actions/checkout@v2
14+
uses: actions/checkout@v3
1515

1616
- name: Setup python
17-
uses: actions/setup-python@v2
17+
uses: actions/setup-python@v4
1818
with:
1919
python-version: '3.8'
2020

2121
- name: Build X-Ray Python SDK
2222
run: python setup.py sdist
2323

2424
- name: Upload SDK build artifact
25-
uses: actions/upload-artifact@v2
25+
uses: actions/upload-artifact@v3
2626
with:
2727
name: sdk-build-artifact
2828
path: .
@@ -33,15 +33,15 @@ jobs:
3333
runs-on: ubuntu-latest
3434

3535
steps:
36-
- uses: actions/checkout@v2
36+
- uses: actions/checkout@v3
3737

3838
- name: Setup python
39-
uses: actions/setup-python@v2
39+
uses: actions/setup-python@v4
4040
with:
4141
python-version: '3.8'
4242

4343
- name: Download X-Ray SDK build artifact
44-
uses: actions/download-artifact@v2
44+
uses: actions/download-artifact@v3
4545
with:
4646
name: sdk-build-artifact
4747
path: ./sample-apps/flask
@@ -55,7 +55,7 @@ jobs:
5555
working-directory: ./sample-apps/flask
5656

5757
- name: Upload WebApp with X-Ray SDK build artifact
58-
uses: actions/upload-artifact@v2
58+
uses: actions/upload-artifact@v3
5959
with:
6060
name: sdk-flask-build-artifact
6161
path: ./sample-apps/flask/deploy.zip
@@ -67,10 +67,10 @@ jobs:
6767

6868
steps:
6969
- name: Checkout X-Ray SDK to get terraform source
70-
uses: actions/checkout@v2
70+
uses: actions/checkout@v3
7171

7272
- name: Download WebApp with X-Ray SDK build artifact
73-
uses: actions/download-artifact@v2
73+
uses: actions/download-artifact@v3
7474
with:
7575
name: sdk-flask-build-artifact
7676

@@ -85,7 +85,7 @@ jobs:
8585
aws-region: us-west-2
8686

8787
- name: Setup Terraform
88-
uses: hashicorp/setup-terraform@v1
88+
uses: hashicorp/setup-terraform@v2
8989

9090
- name: Terraform Init
9191
run: terraform init
@@ -109,7 +109,7 @@ jobs:
109109
working-directory: ./terraform
110110

111111
- name: Upload terraform state files for destorying resources
112-
uses: actions/upload-artifact@v2
112+
uses: actions/upload-artifact@v3
113113
with:
114114
name: terraform-state-artifact
115115
path: ./terraform
@@ -120,8 +120,9 @@ jobs:
120120
runs-on: ubuntu-latest
121121

122122
steps:
123-
- uses: actions/setup-java@v1
123+
- uses: actions/setup-java@v3
124124
with:
125+
distribution: 'zulu'
125126
java-version: 14
126127

127128
- name: Configure AWS Credentials
@@ -132,7 +133,7 @@ jobs:
132133
aws-region: us-west-2
133134

134135
- name: Checkout test framework
135-
uses: actions/checkout@v2
136+
uses: actions/checkout@v3
136137
with:
137138
repository: aws-observability/aws-otel-test-framework
138139
ref: terraform
@@ -148,7 +149,7 @@ jobs:
148149

149150
steps:
150151
- name: Download terraform state artifact
151-
uses: actions/download-artifact@v2
152+
uses: actions/download-artifact@v3
152153
with:
153154
name: terraform-state-artifact
154155

@@ -160,7 +161,7 @@ jobs:
160161
aws-region: us-west-2
161162

162163
- name: Setup Terraform
163-
uses: hashicorp/setup-terraform@v1
164+
uses: hashicorp/setup-terraform@v2
164165

165166
- name: Terraform Init
166167
run: terraform init

.github/workflows/Release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: Checkout master branch
15-
uses: actions/checkout@v2
15+
uses: actions/checkout@v3
1616

1717
- name: Create Release
1818
id: create_release

.github/workflows/UnitTesting.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ jobs:
2828
testenv: [core, ext]
2929
steps:
3030
- name: Checkout repo
31-
uses: actions/checkout@v2
31+
uses: actions/checkout@v3
3232

3333
- name: Setup Python
34-
uses: actions/setup-python@v2
34+
uses: actions/setup-python@v4
3535
with:
3636
python-version: ${{ env[matrix.python-version] }}
3737

@@ -40,7 +40,7 @@ jobs:
4040

4141
- name: Cache tox environment
4242
# Preserves .tox directory between runs for faster installs
43-
uses: actions/cache@v2
43+
uses: actions/cache@v3
4444
with:
4545
path: |
4646
.tox

.github/workflows/continuous-monitoring.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Checkout Repository
13-
uses: actions/checkout@v2
13+
uses: actions/checkout@v3
1414

1515
- name: Configure AWS Credentials
1616
uses: aws-actions/configure-aws-credentials@v1
@@ -19,7 +19,7 @@ jobs:
1919
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
2020
aws-region: us-east-1
2121

22-
- uses: actions/setup-python@v2
22+
- uses: actions/setup-python@v4
2323
with:
2424
python-version: '3.x'
2525

setup.py

Lines changed: 8 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,11 @@
1-
import sys
2-
31
from setuptools import setup, find_packages
42
from os import path
53
from aws_xray_sdk.version import VERSION
64

75
CURRENT_DIR = path.abspath(path.dirname(__file__))
86

9-
try:
10-
from pypandoc import convert
11-
read_md = lambda f: convert(f, 'rst')
12-
except ImportError:
13-
read_md = lambda f: open(f, 'r').read()
14-
15-
long_description = read_md(path.join(CURRENT_DIR, 'README.md'))
16-
17-
INSTALL_REQUIRED_DEPS = [
18-
'enum34;python_version<"3.4"',
19-
'wrapt',
20-
'botocore>=1.11.3',
21-
]
22-
23-
if sys.version_info[0] == 2:
24-
INSTALL_REQUIRED_DEPS.append("future")
7+
with open(path.join(CURRENT_DIR, 'README.md'), 'r') as f:
8+
long_description = f.read()
259

2610
setup(
2711
name='aws-xray-sdk',
@@ -55,7 +39,12 @@
5539
'Programming Language :: Python :: 3.9',
5640
],
5741

58-
install_requires=INSTALL_REQUIRED_DEPS,
42+
install_requires=[
43+
'enum34;python_version<"3.4"',
44+
'wrapt',
45+
'future;python_version<"3"',
46+
'botocore>=1.11.3',
47+
],
5948

6049
keywords='aws xray sdk',
6150

tox.ini

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,9 @@ deps =
100100
ext-django-4: Django >=4.0,<5.0
101101
ext-django: django-fake-model
102102

103-
ext-pynamodb: pynamodb >= 3.3.1
103+
py{27,34,35}-ext-pynamodb: pynamodb >=3.3.1,<4.4
104+
py{27,34,35}-ext-pynamodb: botocore <1.28
105+
py{36,37,38,39}-ext-pynamodb: pynamodb >=3.3.1
104106

105107
ext-psycopg2: psycopg2
106108
ext-psycopg2: testing.postgresql

0 commit comments

Comments
 (0)