Skip to content

Commit 6176ea5

Browse files
committed
grpc, openfeature, fix graphene
1 parent 1ae16bf commit 6176ea5

File tree

6 files changed

+26
-118
lines changed

6 files changed

+26
-118
lines changed

.github/workflows/test-integrations-flags.yml

Lines changed: 0 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -22,70 +22,6 @@ env:
2222
CACHED_BUILD_PATHS: |
2323
${{ github.workspace }}/dist-serverless
2424
jobs:
25-
test-flags-latest:
26-
name: Flags (latest)
27-
timeout-minutes: 30
28-
runs-on: ${{ matrix.os }}
29-
strategy:
30-
fail-fast: false
31-
matrix:
32-
python-version: ["3.8","3.12","3.13"]
33-
# python3.6 reached EOL and is no longer being supported on
34-
# new versions of hosted runners on Github Actions
35-
# ubuntu-20.04 is the last version that supported python3.6
36-
# see https://github.com/actions/setup-python/issues/544#issuecomment-1332535877
37-
os: [ubuntu-20.04]
38-
steps:
39-
- uses: actions/[email protected]
40-
- uses: actions/setup-python@v5
41-
with:
42-
python-version: ${{ matrix.python-version }}
43-
allow-prereleases: true
44-
- name: Setup Test Env
45-
run: |
46-
pip install "coverage[toml]" tox
47-
- name: Erase coverage
48-
run: |
49-
coverage erase
50-
- name: Test launchdarkly latest
51-
run: |
52-
set -x # print commands that are executed
53-
./scripts/runtox.sh "py${{ matrix.python-version }}-launchdarkly-latest"
54-
- name: Test openfeature latest
55-
run: |
56-
set -x # print commands that are executed
57-
./scripts/runtox.sh "py${{ matrix.python-version }}-openfeature-latest"
58-
- name: Test unleash latest
59-
run: |
60-
set -x # print commands that are executed
61-
./scripts/runtox.sh "py${{ matrix.python-version }}-unleash-latest"
62-
- name: Generate coverage XML (Python 3.6)
63-
if: ${{ !cancelled() && matrix.python-version == '3.6' }}
64-
run: |
65-
export COVERAGE_RCFILE=.coveragerc36
66-
coverage combine .coverage-sentry-*
67-
coverage xml --ignore-errors
68-
- name: Generate coverage XML
69-
if: ${{ !cancelled() && matrix.python-version != '3.6' }}
70-
run: |
71-
coverage combine .coverage-sentry-*
72-
coverage xml
73-
- name: Upload coverage to Codecov
74-
if: ${{ !cancelled() }}
75-
uses: codecov/[email protected]
76-
with:
77-
token: ${{ secrets.CODECOV_TOKEN }}
78-
files: coverage.xml
79-
# make sure no plugins alter our coverage reports
80-
plugin: noop
81-
verbose: true
82-
- name: Upload test results to Codecov
83-
if: ${{ !cancelled() }}
84-
uses: codecov/test-results-action@v1
85-
with:
86-
token: ${{ secrets.CODECOV_TOKEN }}
87-
files: .junitxml
88-
verbose: true
8925
test-flags-pinned:
9026
name: Flags (pinned)
9127
timeout-minutes: 30

.github/workflows/test-integrations-network.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
strategy:
3030
fail-fast: false
3131
matrix:
32-
python-version: ["3.8","3.9","3.11","3.12","3.13"]
32+
python-version: ["3.9","3.12","3.13"]
3333
# python3.6 reached EOL and is no longer being supported on
3434
# new versions of hosted runners on Github Actions
3535
# ubuntu-20.04 is the last version that supported python3.6
@@ -97,7 +97,7 @@ jobs:
9797
strategy:
9898
fail-fast: false
9999
matrix:
100-
python-version: ["3.6","3.7","3.8","3.9","3.10","3.11","3.12"]
100+
python-version: ["3.6","3.7","3.8","3.9","3.10","3.11","3.12","3.13"]
101101
# python3.6 reached EOL and is no longer being supported on
102102
# new versions of hosted runners on Github Actions
103103
# ubuntu-20.04 is the last version that supported python3.6

scripts/populate_tox/config.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,12 +170,15 @@
170170
},
171171
"graphene": {
172172
"package": "graphene",
173-
"deps": {"*": ["blinker", "fastapi", "flask", "httpx"]},
173+
"deps": {
174+
"*": ["blinker", "fastapi", "flask", "httpx"],
175+
"py3.6": ["aiocontextvars"],
176+
},
174177
},
175178
"grpc": {
176179
"package": "grpcio",
177180
"deps": {
178-
"*": ["protobuf", "mypy-protobuf", "types-protobuf", "pytest-asyncio"]
181+
"*": ["protobuf", "mypy-protobuf", "types-protobuf", "pytest-asyncio"],
179182
},
180183
},
181184
"httpx": {

scripts/populate_tox/populate_tox.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,10 @@
6060
"fastapi",
6161
"gcp",
6262
"gevent",
63-
"grpc",
6463
"httpx",
6564
"litestar",
6665
"openai",
6766
"openai_notiktoken",
68-
"openfeature",
6967
"langchain",
7068
"langchain_notiktoken",
7169
"opentelemetry",

scripts/populate_tox/tox.jinja

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -100,12 +100,6 @@ envlist =
100100
# GCP
101101
{py3.7}-gcp
102102

103-
# gRPC
104-
{py3.7,py3.9}-grpc-v{1.39}
105-
{py3.7,py3.10}-grpc-v{1.49}
106-
{py3.7,py3.11}-grpc-v{1.59}
107-
{py3.8,py3.11,py3.12}-grpc-latest
108-
109103
# HTTPX
110104
{py3.6,py3.9}-httpx-v{0.16,0.18}
111105
{py3.6,py3.10}-httpx-v{0.20,0.22}
@@ -132,10 +126,6 @@ envlist =
132126
{py3.9,py3.11,py3.12}-openai-latest
133127
{py3.9,py3.11,py3.12}-openai-notiktoken
134128

135-
# OpenFeature
136-
{py3.8,py3.12,py3.13}-openfeature-v0.7
137-
{py3.8,py3.12,py3.13}-openfeature-latest
138-
139129
# OpenTelemetry (OTel)
140130
{py3.7,py3.9,py3.12,py3.13}-opentelemetry
141131

@@ -319,16 +309,6 @@ deps =
319309
fastapi-v{0.79}: fastapi~=0.79.0
320310
fastapi-latest: fastapi
321311
322-
# gRPC
323-
grpc: protobuf
324-
grpc: mypy-protobuf
325-
grpc: types-protobuf
326-
grpc: pytest-asyncio
327-
grpc-v1.39: grpcio~=1.39.0
328-
grpc-v1.49: grpcio~=1.49.1
329-
grpc-v1.59: grpcio~=1.59.0
330-
grpc-latest: grpcio
331-
332312
# HTTPX
333313
httpx-v0.16: pytest-httpx==0.10.0
334314
httpx-v0.18: pytest-httpx==0.12.0
@@ -389,10 +369,6 @@ deps =
389369
openai-latest: tiktoken~=0.6.0
390370
openai-notiktoken: openai
391371
392-
# OpenFeature
393-
openfeature-v0.7: openfeature-sdk~=0.7.1
394-
openfeature-latest: openfeature-sdk
395-
396372
# OpenTelemetry (OTel)
397373
opentelemetry: opentelemetry-distro
398374

tox.ini

Lines changed: 19 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -100,12 +100,6 @@ envlist =
100100
# GCP
101101
{py3.7}-gcp
102102

103-
# gRPC
104-
{py3.7,py3.9}-grpc-v{1.39}
105-
{py3.7,py3.10}-grpc-v{1.49}
106-
{py3.7,py3.11}-grpc-v{1.59}
107-
{py3.8,py3.11,py3.12}-grpc-latest
108-
109103
# HTTPX
110104
{py3.6,py3.9}-httpx-v{0.16,0.18}
111105
{py3.6,py3.10}-httpx-v{0.20,0.22}
@@ -132,10 +126,6 @@ envlist =
132126
{py3.9,py3.11,py3.12}-openai-latest
133127
{py3.9,py3.11,py3.12}-openai-notiktoken
134128

135-
# OpenFeature
136-
{py3.8,py3.12,py3.13}-openfeature-v0.7
137-
{py3.8,py3.12,py3.13}-openfeature-latest
138-
139129
# OpenTelemetry (OTel)
140130
{py3.7,py3.9,py3.12,py3.13}-opentelemetry
141131

@@ -211,6 +201,8 @@ envlist =
211201
{py3.8,py3.12,py3.13}-launchdarkly-v9.8.1
212202
{py3.8,py3.12,py3.13}-launchdarkly-v9.9.0
213203

204+
{py3.8,py3.12,py3.13}-openfeature-v0.7.4
205+
214206
{py3.8,py3.12,py3.13}-unleash-v6.0.1
215207

216208

@@ -233,6 +225,11 @@ envlist =
233225

234226

235227
# ~~~ Network ~~~
228+
{py3.6,py3.7,py3.8}-grpc-v1.27.2
229+
{py3.6,py3.8,py3.9}-grpc-v1.40.0
230+
{py3.7,py3.10,py3.11}-grpc-v1.55.3
231+
{py3.8,py3.12,py3.13}-grpc-v1.69.0
232+
236233
{py3.6,py3.7,py3.8}-requests-v2.23.0
237234
{py3.6,py3.8,py3.9}-requests-v2.26.0
238235
{py3.7,py3.10,py3.11}-requests-v2.29.0
@@ -427,16 +424,6 @@ deps =
427424
fastapi-v{0.79}: fastapi~=0.79.0
428425
fastapi-latest: fastapi
429426

430-
# gRPC
431-
grpc: protobuf
432-
grpc: mypy-protobuf
433-
grpc: types-protobuf
434-
grpc: pytest-asyncio
435-
grpc-v1.39: grpcio~=1.39.0
436-
grpc-v1.49: grpcio~=1.49.1
437-
grpc-v1.59: grpcio~=1.59.0
438-
grpc-latest: grpcio
439-
440427
# HTTPX
441428
httpx-v0.16: pytest-httpx==0.10.0
442429
httpx-v0.18: pytest-httpx==0.12.0
@@ -497,10 +484,6 @@ deps =
497484
openai-latest: tiktoken~=0.6.0
498485
openai-notiktoken: openai
499486

500-
# OpenFeature
501-
openfeature-v0.7: openfeature-sdk~=0.7.1
502-
openfeature-latest: openfeature-sdk
503-
504487
# OpenTelemetry (OTel)
505488
opentelemetry: opentelemetry-distro
506489

@@ -607,6 +590,8 @@ deps =
607590
launchdarkly-v9.8.1: launchdarkly-server-sdk==9.8.1
608591
launchdarkly-v9.9.0: launchdarkly-server-sdk==9.9.0
609592

593+
openfeature-v0.7.4: openfeature-sdk==0.7.4
594+
610595
unleash-v6.0.1: UnleashClient==6.0.1
611596

612597

@@ -628,6 +613,7 @@ deps =
628613
graphene: fastapi
629614
graphene: flask
630615
graphene: httpx
616+
py3.6-graphene: aiocontextvars
631617

632618
strawberry-v0.209.8: strawberry-graphql[fastapi,flask]==0.209.8
633619
strawberry-v0.225.1: strawberry-graphql[fastapi,flask]==0.225.1
@@ -639,6 +625,15 @@ deps =
639625

640626

641627
# ~~~ Network ~~~
628+
grpc-v1.27.2: grpcio==1.27.2
629+
grpc-v1.40.0: grpcio==1.40.0
630+
grpc-v1.55.3: grpcio==1.55.3
631+
grpc-v1.69.0: grpcio==1.69.0
632+
grpc: protobuf
633+
grpc: mypy-protobuf
634+
grpc: types-protobuf
635+
grpc: pytest-asyncio
636+
642637
requests-v2.23.0: requests==2.23.0
643638
requests-v2.26.0: requests==2.26.0
644639
requests-v2.29.0: requests==2.29.0

0 commit comments

Comments
 (0)