Skip to content

Commit ace3978

Browse files
committed
Add support for pymemcache version > 4.0.0
1 parent 2d4e6c9 commit ace3978

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

instrumentation/opentelemetry-instrumentation-pymemcache/pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ dependencies = [
3333

3434
[project.optional-dependencies]
3535
instruments = [
36-
"pymemcache >= 1.3.5, < 4",
36+
"pymemcache >= 1.3.5, < 5",
3737
]
3838
test = [
3939
"opentelemetry-instrumentation-pymemcache[instruments]",

instrumentation/opentelemetry-instrumentation-pymemcache/src/opentelemetry/instrumentation/pymemcache/package.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# limitations under the License.
1414

1515

16-
_instruments = ("pymemcache >= 1.3.5, < 4",)
16+
_instruments = ("pymemcache >= 1.3.5, < 5",)

tox.ini

+4-3
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,8 @@ envlist =
122122
; ext-psycopg2 intentionally excluded from pypy3
123123

124124
; opentelemetry-instrumentation-pymemcache
125-
py3{7,8,9,10,11}-test-instrumentation-pymemcache{135,200,300,342}
126-
pypy3-test-instrumentation-pymemcache{135,200,300,342}
125+
py3{7,8,9,10,11}-test-instrumentation-pymemcache{135,200,300,342,400}
126+
pypy3-test-instrumentation-pymemcache{135,200,300,342,400}
127127

128128
; opentelemetry-instrumentation-pymongo
129129
py3{7,8,9,10,11}-test-instrumentation-pymongo
@@ -267,6 +267,7 @@ deps =
267267
pymemcache200: pymemcache >2.0.0,<3.0.0
268268
pymemcache300: pymemcache >3.0.0,<3.4.2
269269
pymemcache342: pymemcache ==3.4.2
270+
pymemcache400: pymemcache ==4.0.0
270271
httpx18: httpx>=0.18.0,<0.19.0
271272
httpx18: respx~=0.17.0
272273
httpx21: httpx>=0.19.0
@@ -390,7 +391,7 @@ commands_pre =
390391

391392
mysql: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-dbapi {toxinidir}/instrumentation/opentelemetry-instrumentation-mysql[test]
392393

393-
pymemcache{135,200,300,342}: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-pymemcache[test]
394+
pymemcache{135,200,300,342,400}: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-pymemcache[test]
394395

395396
pymongo: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-pymongo[test]
396397

0 commit comments

Comments
 (0)