diff --git a/.github/workflows/scheduled_test.yml b/.github/workflows/scheduled_test.yml index 09ee4397f6f..29ca8c119d5 100644 --- a/.github/workflows/scheduled_test.yml +++ b/.github/workflows/scheduled_test.yml @@ -30,9 +30,10 @@ jobs: with: python-version: ${{ matrix.python-version }} poetry-version: "1.4.2" + working-directory: libs/langchain install-command: | echo "Running scheduled tests, installing dependencies with poetry..." - poetry install -E scheduled_testing + poetry install --with=test_integration - name: Run tests env: OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} diff --git a/libs/langchain/poetry.lock b/libs/langchain/poetry.lock index 712a4406bff..282136c1add 100644 --- a/libs/langchain/poetry.lock +++ b/libs/langchain/poetry.lock @@ -46,7 +46,7 @@ name = "aioboto3" version = "11.2.0" description = "Async boto3 wrapper" category = "main" -optional = false +optional = true python-versions = ">=3.7,<4.0" files = [ {file = "aioboto3-11.2.0-py3-none-any.whl", hash = "sha256:df4b83c3943b009a4dcd9f397f9f0491a374511b1ef37545082a771ca1e549fb"}, @@ -65,7 +65,7 @@ name = "aiobotocore" version = "2.5.0" description = "Async client for aws services using botocore and aiohttp" category = "main" -optional = false +optional = true python-versions = ">=3.7" files = [ {file = "aiobotocore-2.5.0-py3-none-any.whl", hash = "sha256:9a2a022d7b78ec9a2af0de589916d2721cddbf96264401b78d7a73c1a1435f3b"}, @@ -239,7 +239,7 @@ name = "aioitertools" version = "0.11.0" description = "itertools and builtins for AsyncIO and mixed iterables" category = "main" -optional = false +optional = true python-versions = ">=3.6" files = [ {file = "aioitertools-0.11.0-py3-none-any.whl", hash = "sha256:04b95e3dab25b449def24d7df809411c10e62aab0cbe31a50ca4e68748c43394"}, @@ -518,7 +518,7 @@ name = "arxiv" version = "1.4.7" description = "Python wrapper for the arXiv API: http://arxiv.org/help/api/" category = "main" -optional = false +optional = true python-versions = ">=3.7" files = [ {file = "arxiv-1.4.7-py3-none-any.whl", hash = "sha256:22b8f610957bb6859a25fac9dc205ab6ba76d521791119a5762ea52625e398a0"}, @@ -648,7 +648,7 @@ name = "authlib" version = "1.2.0" description = "The ultimate Python library in building OAuth and OpenID Connect servers and clients." category = "main" -optional = false +optional = true python-versions = "*" files = [ {file = "Authlib-1.2.0-py2.py3-none-any.whl", hash = "sha256:4ddf4fd6cfa75c9a460b361d4bd9dac71ffda0be879dbe4292a02e92349ad55a"}, @@ -832,7 +832,7 @@ name = "backoff" version = "2.2.1" description = "Function decoration for backoff and retry" category = "main" -optional = false +optional = true python-versions = ">=3.7,<4.0" files = [ {file = "backoff-2.2.1-py3-none-any.whl", hash = "sha256:63579f9a0628e06278f7e47b7d7d5b6ce20dc65c5e96a6f3ca99a6adca0396e8"}, @@ -1100,27 +1100,12 @@ files = [ [package.dependencies] numpy = ">=1.15.0" -[[package]] -name = "blurhash" -version = "1.1.4" -description = "Pure-Python implementation of the blurhash algorithm." -category = "dev" -optional = false -python-versions = "*" -files = [ - {file = "blurhash-1.1.4-py2.py3-none-any.whl", hash = "sha256:7611c1bc41383d2349b6129208587b5d61e8792ce953893cb49c38beeb400d1d"}, - {file = "blurhash-1.1.4.tar.gz", hash = "sha256:da56b163e5a816e4ad07172f5639287698e09d7f3dc38d18d9726d9c1dbc4cee"}, -] - -[package.extras] -test = ["Pillow", "numpy", "pytest"] - [[package]] name = "boto3" version = "1.26.76" description = "The AWS SDK for Python" category = "main" -optional = false +optional = true python-versions = ">= 3.7" files = [ {file = "boto3-1.26.76-py3-none-any.whl", hash = "sha256:b4c2969b7677762914394b8273cc1905dfe5b71f250741c1a575487ae357e729"}, @@ -1140,7 +1125,7 @@ name = "botocore" version = "1.29.76" description = "Low-level, data-driven core of boto 3." category = "main" -optional = false +optional = true python-versions = ">= 3.7" files = [ {file = "botocore-1.29.76-py3-none-any.whl", hash = "sha256:70735b00cd529f152992231ca6757e458e5ec25db43767b3526e9a35b2f143b7"}, @@ -1319,7 +1304,7 @@ name = "cachetools" version = "5.3.1" description = "Extensible memoizing collections and decorators" category = "main" -optional = false +optional = true python-versions = ">=3.7" files = [ {file = "cachetools-5.3.1-py3-none-any.whl", hash = "sha256:95ef631eeaea14ba2e36f06437f36463aac3a096799e876ee55e5cdccb102590"}, @@ -1618,52 +1603,6 @@ files = [ {file = "charset_normalizer-3.1.0-py3-none-any.whl", hash = "sha256:3d9098b479e78c85080c98e1e35ff40b4a31d8953102bb0fd7d1b6f8a2111a3d"}, ] -[[package]] -name = "chroma-hnswlib" -version = "0.7.1" -description = "Chromas fork of hnswlib" -category = "dev" -optional = false -python-versions = "*" -files = [ - {file = "chroma-hnswlib-0.7.1.tar.gz", hash = "sha256:f72592dc7d0522c25cc1f8864db7a3781f179ba989f209cc3ea01694c0d76493"}, - {file = "chroma_hnswlib-0.7.1-cp310-cp310-macosx_13_0_arm64.whl", hash = "sha256:38f51585d81a5072db70b17207afd1f57670c209836d0fbbf2a1aa7e8bece6b7"}, -] - -[package.dependencies] -numpy = "*" - -[[package]] -name = "chromadb" -version = "0.4.1" -description = "Chroma." -category = "dev" -optional = false -python-versions = ">=3.7" -files = [ - {file = "chromadb-0.4.1-py3-none-any.whl", hash = "sha256:980e776bfbb76a2689418b03a254e7edb888961f57b7615f815c8d95f048b396"}, - {file = "chromadb-0.4.1.tar.gz", hash = "sha256:9b1a76d615dd2280e7b30ff82101ed31c26782a4d832070046309fde82515385"}, -] - -[package.dependencies] -chroma-hnswlib = "0.7.1" -fastapi = ">=0.95.2,<0.100.0" -graphlib-backport = {version = ">=1.0.3", markers = "python_version < \"3.9\""} -importlib-resources = "*" -numpy = ">=1.21.6" -onnxruntime = ">=1.14.1" -overrides = ">=7.3.1" -pandas = ">=1.3" -posthog = ">=2.4.0" -pulsar-client = ">=3.1.0" -pydantic = ">=1.9,<2.0" -pypika = ">=0.48.9" -requests = ">=2.28" -tokenizers = ">=0.13.2" -tqdm = ">=4.65.0" -typing-extensions = ">=4.5.0" -uvicorn = {version = ">=0.18.3", extras = ["standard"]} - [[package]] name = "circus" version = "0.18.0" @@ -1775,7 +1714,7 @@ name = "clickhouse-connect" version = "0.5.25" description = "ClickHouse core driver, SqlAlchemy, and Superset libraries" category = "main" -optional = false +optional = true python-versions = "~=3.7" files = [ {file = "clickhouse-connect-0.5.25.tar.gz", hash = "sha256:98af3fff571d1069d2c6dd2f4c0feb220fe4c55bd12608e841c842582061982f"}, @@ -1956,7 +1895,7 @@ name = "coloredlogs" version = "15.0.1" description = "Colored terminal output for Python's logging module" category = "main" -optional = false +optional = true python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" files = [ {file = "coloredlogs-15.0.1-py2.py3-none-any.whl", hash = "sha256:612ee75c546f53e92e70049c9dbfcc18c935a2b9a53b66085ce9ef6a6e5c0934"}, @@ -2364,7 +2303,7 @@ name = "deeplake" version = "3.6.11" description = "Activeloop Deep Lake" category = "main" -optional = false +optional = true python-versions = "*" files = [ {file = "deeplake-3.6.11.tar.gz", hash = "sha256:97e22aa56e0a48dc935597f46a6f968393a4f95e799fa1df8bc7997231a40892"}, @@ -2426,7 +2365,7 @@ name = "deprecated" version = "1.2.14" description = "Python @deprecated decorator to deprecate old python classes, functions or methods." category = "main" -optional = false +optional = true python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" files = [ {file = "Deprecated-1.2.14-py2.py3-none-any.whl", hash = "sha256:6fac8b097794a90302bdbb17b9b815e732d3c4720583ff1b198499d78470466c"}, @@ -2459,7 +2398,7 @@ name = "dill" version = "0.3.6" description = "serialize all of python" category = "main" -optional = false +optional = true python-versions = ">=3.7" files = [ {file = "dill-0.3.6-py3-none-any.whl", hash = "sha256:a07ffd2351b8c678dfc4a856a3005f8067aea51d6ba6c700796a4d9e280f39f0"}, @@ -2486,7 +2425,7 @@ name = "dnspython" version = "2.3.0" description = "DNS toolkit" category = "main" -optional = false +optional = true python-versions = ">=3.7,<4.0" files = [ {file = "dnspython-2.3.0-py3-none-any.whl", hash = "sha256:89141536394f909066cabd112e3e1a37e4e654db00a25308b0f130bc3152eb46"}, @@ -2695,7 +2634,7 @@ name = "elastic-transport" version = "8.4.0" description = "Transport classes and utilities shared among Python Elastic client libraries" category = "main" -optional = false +optional = true python-versions = ">=3.6" files = [ {file = "elastic-transport-8.4.0.tar.gz", hash = "sha256:b9ad708ceb7fcdbc6b30a96f886609a109f042c0b9d9f2e44403b3133ba7ff10"}, @@ -2714,7 +2653,7 @@ name = "elasticsearch" version = "8.8.0" description = "Python client for Elasticsearch" category = "main" -optional = false +optional = true python-versions = ">=3.6, <4" files = [ {file = "elasticsearch-8.8.0-py3-none-any.whl", hash = "sha256:2223ee9daaa3c80c25b28ec3f7c48e66fce6b767a338333d9a81886046a07df6"}, @@ -2722,7 +2661,6 @@ files = [ ] [package.dependencies] -aiohttp = {version = ">=3,<4", optional = true, markers = "extra == \"async\""} elastic-transport = ">=8,<9" [package.extras] @@ -2822,7 +2760,7 @@ name = "fastapi" version = "0.95.2" description = "FastAPI framework, high performance, easy to learn, fast to code, ready for production" category = "main" -optional = false +optional = true python-versions = ">=3.7" files = [ {file = "fastapi-0.95.2-py3-none-any.whl", hash = "sha256:d374dbc4ef2ad9b803899bd3360d34c534adc574546e25314ab72c0c4411749f"}, @@ -2922,7 +2860,7 @@ name = "feedparser" version = "6.0.10" description = "Universal feed parser, handles RSS 0.9x, RSS 1.0, RSS 2.0, CDF, Atom 0.3, and Atom 1.0 feeds" category = "main" -optional = false +optional = true python-versions = ">=3.6" files = [ {file = "feedparser-6.0.10-py3-none-any.whl", hash = "sha256:79c257d526d13b944e965f6095700587f27388e50ea16fd245babe4dfae7024f"}, @@ -2948,7 +2886,7 @@ name = "filelock" version = "3.12.2" description = "A platform independent file lock." category = "main" -optional = false +optional = true python-versions = ">=3.7" files = [ {file = "filelock-3.12.2-py3-none-any.whl", hash = "sha256:cbb791cdea2a72f23da6ac5b5269ab0a0d161e9ef0100e653b69049a7706d1ec"}, @@ -3021,7 +2959,7 @@ name = "flatbuffers" version = "23.5.26" description = "The FlatBuffers serialization format for Python" category = "main" -optional = false +optional = true python-versions = "*" files = [ {file = "flatbuffers-23.5.26-py2.py3-none-any.whl", hash = "sha256:c0ff356da363087b915fde4b8b45bdda73432fc17cddb3c8157472eab1422ad1"}, @@ -3237,7 +3175,7 @@ name = "fsspec" version = "2023.6.0" description = "File-system specification" category = "main" -optional = false +optional = true python-versions = ">=3.8" files = [ {file = "fsspec-2023.6.0-py3-none-any.whl", hash = "sha256:1cbad1faef3e391fba6dc005ae9b5bdcbf43005c9167ce78c915549c352c869a"}, @@ -3529,7 +3467,7 @@ name = "gptcache" version = "0.1.32" description = "GPTCache, a powerful caching library that can be used to speed up and lower the cost of chat applications that rely on the LLM service. GPTCache works as a memcache for AIGC applications, similar to how Redis works for traditional applications." category = "main" -optional = false +optional = true python-versions = ">=3.8.1" files = [ {file = "gptcache-0.1.32-py3-none-any.whl", hash = "sha256:e85eb40ac54ebd8c0db1d67ba962b505d87321f287446083cfd80c4f205d2d10"}, @@ -3630,18 +3568,6 @@ requests = ">=2.0,<3.0" typing-extensions = ">=4.0,<5.0" websockets = ">=10.0,<12.0" -[[package]] -name = "graphlib-backport" -version = "1.0.3" -description = "Backport of the Python 3.9 graphlib module for Python 3.6+" -category = "dev" -optional = false -python-versions = ">=3.6,<4.0" -files = [ - {file = "graphlib_backport-1.0.3-py3-none-any.whl", hash = "sha256:24246967b9e7e6a91550bc770e6169585d35aa32790258579a8a3899a8c18fde"}, - {file = "graphlib_backport-1.0.3.tar.gz", hash = "sha256:7bb8fc7757b8ae4e6d8000a26cd49e9232aaa9a3aa57edb478474b8424bfaae2"}, -] - [[package]] name = "graphql-core" version = "3.2.3" @@ -3733,7 +3659,7 @@ name = "grpcio" version = "1.47.5" description = "HTTP/2-based RPC framework" category = "main" -optional = false +optional = true python-versions = ">=3.6" files = [ {file = "grpcio-1.47.5-cp310-cp310-linux_armv7l.whl", hash = "sha256:acc73289d0c44650aa1f21eccfa967f5623b01c3b5e2b4596fe5f9c5bf10956d"}, @@ -3888,7 +3814,7 @@ name = "h11" version = "0.14.0" description = "A pure-Python, bring-your-own-I/O implementation of HTTP/1.1" category = "main" -optional = false +optional = true python-versions = ">=3.7" files = [ {file = "h11-0.14.0-py3-none-any.whl", hash = "sha256:e3fe4ac4b851c468cc8363d500db52c2ead036020723024a109d37346efaa761"}, @@ -4029,7 +3955,7 @@ name = "httptools" version = "0.5.0" description = "A collection of framework independent HTTP protocol utils." category = "main" -optional = false +optional = true python-versions = ">=3.5.0" files = [ {file = "httptools-0.5.0-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:8f470c79061599a126d74385623ff4744c4e0f4a0997a353a44923c0b561ee51"}, @@ -4111,7 +4037,7 @@ name = "huggingface-hub" version = "0.15.1" description = "Client library to download and publish models, datasets and other repos on the huggingface.co hub" category = "main" -optional = false +optional = true python-versions = ">=3.7.0" files = [ {file = "huggingface_hub-0.15.1-py3-none-any.whl", hash = "sha256:05b0fb0abbf1f625dfee864648ac3049fe225ac4371c7bafaca0c2d3a2f83445"}, @@ -4143,7 +4069,7 @@ name = "humanfriendly" version = "10.0" description = "Human friendly output for text interfaces using Python" category = "main" -optional = false +optional = true python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" files = [ {file = "humanfriendly-10.0-py2.py3-none-any.whl", hash = "sha256:1697e1a8a8f550fd43c2865cd84542fc175a61dcb779b6fee18cf6b6ccba1477"}, @@ -4158,7 +4084,7 @@ name = "humbug" version = "0.3.1" description = "Humbug: Do you build developer tools? Humbug helps you know your users." category = "main" -optional = false +optional = true python-versions = "*" files = [ {file = "humbug-0.3.1-py3-none-any.whl", hash = "sha256:f9e3c8dd60a8ba943194f7ed45caa66e5db43d99f3745c60030ec40e6313a927"}, @@ -4633,7 +4559,7 @@ name = "jmespath" version = "1.0.1" description = "JSON Matching Expressions" category = "main" -optional = false +optional = true python-versions = ">=3.7" files = [ {file = "jmespath-1.0.1-py3-none-any.whl", hash = "sha256:02e2e4cc71b5bcab88332eebf907519190dd9e6e82107fa7f83b1003a6252980"}, @@ -4645,7 +4571,7 @@ name = "joblib" version = "1.2.0" description = "Lightweight pipelining with Python functions" category = "main" -optional = false +optional = true python-versions = ">=3.7" files = [ {file = "joblib-1.2.0-py3-none-any.whl", hash = "sha256:091138ed78f800342968c523bdde947e7a305b8594b910a0fea2ab83c3c6d385"}, @@ -5202,7 +5128,7 @@ name = "libdeeplake" version = "0.0.60" description = "C++ backend for Deep Lake" category = "main" -optional = false +optional = true python-versions = "*" files = [ {file = "libdeeplake-0.0.60-cp310-cp310-macosx_10_12_x86_64.whl", hash = "sha256:077c663370834831343b512cb4d2b166634f1aaea31e31f86721e257ce0ed1dd"}, @@ -5322,7 +5248,7 @@ name = "loguru" version = "0.7.0" description = "Python logging made (stupidly) simple" category = "main" -optional = false +optional = true python-versions = ">=3.5" files = [ {file = "loguru-0.7.0-py3-none-any.whl", hash = "sha256:b93aa30099fa6860d4727f1b81f8718e965bb96253fa190fab2077aaad6d15d3"}, @@ -5434,7 +5360,7 @@ name = "lz4" version = "4.3.2" description = "LZ4 Bindings for Python" category = "main" -optional = false +optional = true python-versions = ">=3.7" files = [ {file = "lz4-4.3.2-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:1c4c100d99eed7c08d4e8852dd11e7d1ec47a3340f49e3a96f8dfbba17ffb300"}, @@ -5657,32 +5583,6 @@ files = [ [package.dependencies] marshmallow = ">=2.0.0" -[[package]] -name = "mastodon-py" -version = "1.8.1" -description = "Python wrapper for the Mastodon API" -category = "dev" -optional = false -python-versions = "*" -files = [ - {file = "Mastodon.py-1.8.1-py2.py3-none-any.whl", hash = "sha256:22bc7e060518ef2eaa69d911cde6e4baf56bed5ea0dd407392c49051a7ac526a"}, - {file = "Mastodon.py-1.8.1.tar.gz", hash = "sha256:4a64cb94abadd6add73e4b8eafdb5c466048fa5f638284fd2189034104d4687e"}, -] - -[package.dependencies] -blurhash = ">=1.1.4" -decorator = ">=4.0.0" -python-dateutil = "*" -python-magic = {version = "*", markers = "platform_system != \"Windows\""} -python-magic-bin = {version = "*", markers = "platform_system == \"Windows\""} -requests = ">=2.4.2" -six = "*" - -[package.extras] -blurhash = ["blurhash (>=1.1.4)"] -test = ["blurhash (>=1.1.4)", "cryptography (>=1.6.0)", "http-ece (>=1.0.5)", "pytest", "pytest-cov", "pytest-mock", "pytest-runner", "pytest-vcr", "pytz", "requests-mock", "vcrpy"] -webpush = ["cryptography (>=1.6.0)", "http-ece (>=1.0.5)"] - [[package]] name = "matplotlib" version = "3.7.2" @@ -5810,7 +5710,7 @@ name = "mmh3" version = "3.1.0" description = "Python wrapper for MurmurHash (MurmurHash3), a set of fast and robust hash functions." category = "main" -optional = false +optional = true python-versions = "*" files = [ {file = "mmh3-3.1.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:16ee043b1bac040b4324b8baee39df9fdca480a560a6d74f2eef66a5009a234e"}, @@ -5855,7 +5755,7 @@ name = "momento" version = "1.6.0" description = "SDK for Momento" category = "main" -optional = false +optional = true python-versions = ">=3.7,<4.0" files = [ {file = "momento-1.6.0-py3-none-any.whl", hash = "sha256:a7f9a85a4372274bd5eafba95d6ab72bafa2d947abfbb16f8d0afb4b6501e4fb"}, @@ -5872,7 +5772,7 @@ name = "momento-wire-types" version = "0.64.1" description = "Momento Client Proto Generated Files" category = "main" -optional = false +optional = true python-versions = ">=3.7,<4.0" files = [ {file = "momento_wire_types-0.64.1-py3-none-any.whl", hash = "sha256:b6fb773831e7aaf95c60223e450e985606076a45df120814ecb9a97904948fe5"}, @@ -5883,18 +5783,6 @@ files = [ grpcio = "*" protobuf = ">=3,<5" -[[package]] -name = "monotonic" -version = "1.6" -description = "An implementation of time.monotonic() for Python 2 & < 3.3" -category = "dev" -optional = false -python-versions = "*" -files = [ - {file = "monotonic-1.6-py2.py3-none-any.whl", hash = "sha256:68687e19a14f11f26d140dd5c86f3dba4bf5df58003000ed467e0e2a69bca96c"}, - {file = "monotonic-1.6.tar.gz", hash = "sha256:3a55207bcfed53ddd5c5bae174524062935efed17792e9de2ad0205ce9ad63f7"}, -] - [[package]] name = "more-itertools" version = "9.1.0" @@ -5912,7 +5800,7 @@ name = "mpmath" version = "1.3.0" description = "Python library for arbitrary-precision floating-point arithmetic" category = "main" -optional = false +optional = true python-versions = "*" files = [ {file = "mpmath-1.3.0-py3-none-any.whl", hash = "sha256:a0b2b9fe80bbcd81a6647ff13108738cfb482d481d826cc0e02f5b35e5c88d2c"}, @@ -6148,7 +6036,7 @@ name = "multiprocess" version = "0.70.14" description = "better multiprocessing and multithreading in python" category = "main" -optional = false +optional = true python-versions = ">=3.7" files = [ {file = "multiprocess-0.70.14-pp37-pypy37_pp73-macosx_10_9_x86_64.whl", hash = "sha256:560a27540daef4ce8b24ed3cc2496a3c670df66c96d02461a4da67473685adf3"}, @@ -6609,7 +6497,7 @@ name = "nltk" version = "3.8.1" description = "Natural Language Toolkit" category = "main" -optional = false +optional = true python-versions = ">=3.7" files = [ {file = "nltk-3.8.1-py3-none-any.whl", hash = "sha256:fd5c9109f976fa86bcadba8f91e47f5e9293bd034474752e92a520f81c93dda5"}, @@ -6755,7 +6643,7 @@ name = "numcodecs" version = "0.11.0" description = "A Python package providing buffer compression and transformation codecs for use" category = "main" -optional = false +optional = true python-versions = ">=3.8" files = [ {file = "numcodecs-0.11.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:c0bc116752be45b4f9dca4315e5a2b4185e3b46f68c997dbb84aef334ceb5a1d"}, @@ -6869,7 +6757,7 @@ name = "nvidia-cublas-cu11" version = "11.10.3.66" description = "CUBLAS native runtime libraries" category = "main" -optional = false +optional = true python-versions = ">=3" files = [ {file = "nvidia_cublas_cu11-11.10.3.66-py3-none-manylinux1_x86_64.whl", hash = "sha256:d32e4d75f94ddfb93ea0a5dda08389bcc65d8916a25cb9f37ac89edaeed3bded"}, @@ -6885,7 +6773,7 @@ name = "nvidia-cuda-nvrtc-cu11" version = "11.7.99" description = "NVRTC native runtime libraries" category = "main" -optional = false +optional = true python-versions = ">=3" files = [ {file = "nvidia_cuda_nvrtc_cu11-11.7.99-2-py3-none-manylinux1_x86_64.whl", hash = "sha256:9f1562822ea264b7e34ed5930567e89242d266448e936b85bc97a3370feabb03"}, @@ -6902,7 +6790,7 @@ name = "nvidia-cuda-runtime-cu11" version = "11.7.99" description = "CUDA Runtime native Libraries" category = "main" -optional = false +optional = true python-versions = ">=3" files = [ {file = "nvidia_cuda_runtime_cu11-11.7.99-py3-none-manylinux1_x86_64.whl", hash = "sha256:cc768314ae58d2641f07eac350f40f99dcb35719c4faff4bc458a7cd2b119e31"}, @@ -6918,7 +6806,7 @@ name = "nvidia-cudnn-cu11" version = "8.5.0.96" description = "cuDNN runtime libraries" category = "main" -optional = false +optional = true python-versions = ">=3" files = [ {file = "nvidia_cudnn_cu11-8.5.0.96-2-py3-none-manylinux1_x86_64.whl", hash = "sha256:402f40adfc6f418f9dae9ab402e773cfed9beae52333f6d86ae3107a1b9527e7"}, @@ -6991,48 +6879,6 @@ soundfile = ">=0.12.1,<0.13.0" types-pyyaml = ">=6.0.12.10,<7.0.0.0" uvicorn = ">=0.22.0,<0.23.0" -[[package]] -name = "onnxruntime" -version = "1.15.1" -description = "ONNX Runtime is a runtime accelerator for Machine Learning models" -category = "dev" -optional = false -python-versions = "*" -files = [ - {file = "onnxruntime-1.15.1-cp310-cp310-macosx_10_15_x86_64.whl", hash = "sha256:baad59e6a763237fa39545325d29c16f98b8a45d2dfc524c67631e2e3ba44d16"}, - {file = "onnxruntime-1.15.1-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:568c2db848f619a0a93e843c028e9fb4879929d40b04bd60f9ba6eb8d2e93421"}, - {file = "onnxruntime-1.15.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:69088d7784bb04dedfd9e883e2c96e4adf8ae0451acdd0abb78d68f59ecc6d9d"}, - {file = "onnxruntime-1.15.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:3cef43737b2cd886d5d718d100f56ec78c9c476c5db5f8f946e95024978fe754"}, - {file = "onnxruntime-1.15.1-cp310-cp310-win32.whl", hash = "sha256:79d7e65abb44a47c633ede8e53fe7b9756c272efaf169758c482c983cca98d7e"}, - {file = "onnxruntime-1.15.1-cp310-cp310-win_amd64.whl", hash = "sha256:8bc4c47682933a7a2c79808688aad5f12581305e182be552de50783b5438e6bd"}, - {file = "onnxruntime-1.15.1-cp311-cp311-macosx_10_15_x86_64.whl", hash = "sha256:652b2cb777f76446e3cc41072dd3d1585a6388aeff92b9de656724bc22e241e4"}, - {file = "onnxruntime-1.15.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:89b86dbed15740abc385055a29c9673a212600248d702737ce856515bdeddc88"}, - {file = "onnxruntime-1.15.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ed5cdd9ee748149a57f4cdfa67187a0d68f75240645a3c688299dcd08742cc98"}, - {file = "onnxruntime-1.15.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:2f748cce6a70ed38c19658615c55f4eedb9192765a4e9c4bd2682adfe980698d"}, - {file = "onnxruntime-1.15.1-cp311-cp311-win32.whl", hash = "sha256:e0312046e814c40066e7823da58075992d51364cbe739eeeb2345ec440c3ac59"}, - {file = "onnxruntime-1.15.1-cp311-cp311-win_amd64.whl", hash = "sha256:f0980969689cb956c22bd1318b271e1be260060b37f3ddd82c7d63bd7f2d9a79"}, - {file = "onnxruntime-1.15.1-cp38-cp38-macosx_10_15_x86_64.whl", hash = "sha256:345986cfdbd6f4b20a89b6a6cd9abd3e2ced2926ae0b6e91fefa8149f95c0f09"}, - {file = "onnxruntime-1.15.1-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:a4d7b3ad75e040f1e95757f69826a11051737b31584938a26d466a0234c6de98"}, - {file = "onnxruntime-1.15.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:3603d07b829bcc1c14963a76103e257aade8861eb208173b300cc26e118ec2f8"}, - {file = "onnxruntime-1.15.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d3df0625b9295daf1f7409ea55f72e1eeb38d54f5769add53372e79ddc3cf98d"}, - {file = "onnxruntime-1.15.1-cp38-cp38-win32.whl", hash = "sha256:f68b47fdf1a0406c0292f81ac993e2a2ae3e8b166b436d590eb221f64e8e187a"}, - {file = "onnxruntime-1.15.1-cp38-cp38-win_amd64.whl", hash = "sha256:52d762d297cc3f731f54fa65a3e329b813164970671547bef6414d0ed52765c9"}, - {file = "onnxruntime-1.15.1-cp39-cp39-macosx_10_15_x86_64.whl", hash = "sha256:99228f9f03dc1fc8af89a28c9f942e8bd3e97e894e263abe1a32e4ddb1f6363b"}, - {file = "onnxruntime-1.15.1-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:45db7f96febb0cf23e3af147f35c4f8de1a37dd252d1cef853c242c2780250cd"}, - {file = "onnxruntime-1.15.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:2bafc112a36db25c821b90ab747644041cb4218f6575889775a2c12dd958b8c3"}, - {file = "onnxruntime-1.15.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:985693d18f2d46aa34fd44d7f65ff620660b2c8fa4b8ec365c2ca353f0fbdb27"}, - {file = "onnxruntime-1.15.1-cp39-cp39-win32.whl", hash = "sha256:708eb31b0c04724bf0f01c1309a9e69bbc09b85beb750e5662c8aed29f1ff9fd"}, - {file = "onnxruntime-1.15.1-cp39-cp39-win_amd64.whl", hash = "sha256:73d6de4c42dfde1e9dbea04773e6dc23346c8cda9c7e08c6554fafc97ac60138"}, -] - -[package.dependencies] -coloredlogs = "*" -flatbuffers = "*" -numpy = ">=1.21.6" -packaging = "*" -protobuf = "*" -sympy = "*" - [[package]] name = "openai" version = "0.27.8" @@ -7661,7 +7507,7 @@ name = "pathos" version = "0.3.0" description = "parallel graph management and execution in heterogeneous computing" category = "main" -optional = false +optional = true python-versions = ">=3.7" files = [ {file = "pathos-0.3.0-py3-none-any.whl", hash = "sha256:b1f5a79b1c79a594330d451832642ee5bb61dd77dc75ba9e5c72087c77e8994c"}, @@ -7776,7 +7622,7 @@ name = "pillow" version = "9.5.0" description = "Python Imaging Library (Fork)" category = "main" -optional = false +optional = true python-versions = ">=3.7" files = [ {file = "Pillow-9.5.0-cp310-cp310-macosx_10_10_x86_64.whl", hash = "sha256:ace6ca218308447b9077c14ea4ef381ba0b67ee78d64046b3f19cf4e1139ad16"}, @@ -7856,7 +7702,7 @@ name = "pinecone-client" version = "2.2.2" description = "Pinecone client and SDK" category = "main" -optional = false +optional = true python-versions = ">=3.8" files = [ {file = "pinecone-client-2.2.2.tar.gz", hash = "sha256:391fe413754efd4e0ef00154b44271d63c4cdd4bedf088d23111a5725d863210"}, @@ -7882,7 +7728,7 @@ name = "pinecone-text" version = "0.4.2" description = "Text utilities library by Pinecone.io" category = "main" -optional = false +optional = true python-versions = ">=3.8,<4.0" files = [ {file = "pinecone_text-0.4.2-py3-none-any.whl", hash = "sha256:79468c197b2fc7738c1511a6b5b8e7697fad613604ad935661a438f621ad2004"}, @@ -8060,36 +7906,12 @@ docs = ["sphinx (>=1.7.1)"] redis = ["redis"] tests = ["pytest (>=5.4.1)", "pytest-cov (>=2.8.1)", "pytest-mypy (>=0.8.0)", "pytest-timeout (>=2.1.0)", "redis", "sphinx (>=6.0.0)"] -[[package]] -name = "posthog" -version = "3.0.1" -description = "Integrate PostHog into any python application." -category = "dev" -optional = false -python-versions = "*" -files = [ - {file = "posthog-3.0.1-py2.py3-none-any.whl", hash = "sha256:9c7f92fecc713257d4b2710d05b456569c9156fbdd3e85655ba7ba5ba6c7b3ae"}, - {file = "posthog-3.0.1.tar.gz", hash = "sha256:57d2791ff5752ce56ba0f9bb8876faf3ca9208f1c2c6ceaeb5a2504c34493767"}, -] - -[package.dependencies] -backoff = ">=1.10.0" -monotonic = ">=1.5" -python-dateutil = ">2.1" -requests = ">=2.7,<3.0" -six = ">=1.5" - -[package.extras] -dev = ["black", "flake8", "flake8-print", "isort", "pre-commit"] -sentry = ["django", "sentry-sdk"] -test = ["coverage", "flake8", "freezegun (==0.3.15)", "mock (>=2.0.0)", "pylint", "pytest"] - [[package]] name = "pox" version = "0.3.2" description = "utilities for filesystem exploration and automated builds" category = "main" -optional = false +optional = true python-versions = ">=3.7" files = [ {file = "pox-0.3.2-py3-none-any.whl", hash = "sha256:56fe2f099ecd8a557b8948082504492de90e8598c34733c9b1fdeca8f7b6de61"}, @@ -8101,7 +7923,7 @@ name = "ppft" version = "1.7.6.6" description = "distributed and parallel python" category = "main" -optional = false +optional = true python-versions = ">=3.7" files = [ {file = "ppft-1.7.6.6-py3-none-any.whl", hash = "sha256:f355d2caeed8bd7c9e4a860c471f31f7e66d1ada2791ab5458ea7dca15a51e41"}, @@ -8183,21 +8005,6 @@ files = [ [package.dependencies] wcwidth = "*" -[[package]] -name = "promptlayer" -version = "0.1.89" -description = "PromptLayer is a package to keep track of your GPT models training" -category = "dev" -optional = false -python-versions = "*" -files = [ - {file = "promptlayer-0.1.89.tar.gz", hash = "sha256:a7ed3875416d4f29c07a3f5ffe803b42ed9745d741f79cd4ed164deb3f312f3e"}, -] - -[package.dependencies] -langchain = "*" -requests = "*" - [[package]] name = "protobuf" version = "3.19.6" @@ -8359,54 +8166,6 @@ files = [ {file = "ptyprocess-0.7.0.tar.gz", hash = "sha256:5c5d0a3b48ceee0b48485e0c26037c0acd7d29765ca3fbb5cb3831d347423220"}, ] -[[package]] -name = "pulsar-client" -version = "3.2.0" -description = "Apache Pulsar Python client library" -category = "dev" -optional = false -python-versions = "*" -files = [ - {file = "pulsar_client-3.2.0-cp310-cp310-macosx_10_15_universal2.whl", hash = "sha256:da53bbe1903026ca1253d36a67bde0ae88513497091658aee8c5514c3e567483"}, - {file = "pulsar_client-3.2.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ec595a71b7a25f1a72a1350efd6680a511b53253c3cac1911ba3d6c4d71fa64c"}, - {file = "pulsar_client-3.2.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e3557c65463d74ec8d2864752389beb06761ab591dd134a164e0b1303c66719b"}, - {file = "pulsar_client-3.2.0-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:d51dc76fec48217489bde95754ad58288c9389361de42f5a27d64e19840d27fb"}, - {file = "pulsar_client-3.2.0-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:9ef2baf85311e0fe1b98342fdafbb93a1818a08ef999eaa524234fedf6f3b941"}, - {file = "pulsar_client-3.2.0-cp310-cp310-win_amd64.whl", hash = "sha256:0928b02beda0c98e77178f4e30e962ddb8ee8c3320e4c7304a78b0796e976523"}, - {file = "pulsar_client-3.2.0-cp311-cp311-macosx_10_15_universal2.whl", hash = "sha256:584f44b03474a69906be711a597a4d516263a55be31e49fc07be503dc8406821"}, - {file = "pulsar_client-3.2.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a637b9a3b30860c61e68a7b8ea650e0987d89e82f73b6a3df1ab662a6438fdda"}, - {file = "pulsar_client-3.2.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b4a187fdc5febcf16f725179dcf2c476f31eeebd8353794d91754a3202dd5072"}, - {file = "pulsar_client-3.2.0-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:5ff879f868cf1fd29db99f39fdb22b3ec3e749c648aca28526689756d922d1c5"}, - {file = "pulsar_client-3.2.0-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:4a5f85d0cc414f739a5b51d843f213b54b2cd768c3a34f7c27cca410712b1f81"}, - {file = "pulsar_client-3.2.0-cp311-cp311-win_amd64.whl", hash = "sha256:4fe748283848d829a80c0323558faeebea4c240d69fa58314ac90344f6999d17"}, - {file = "pulsar_client-3.2.0-cp37-cp37m-macosx_10_15_universal2.whl", hash = "sha256:06b91c26def86dbbc35be15257999fd8a2afbadf32983916ea3eef44f4d4cab4"}, - {file = "pulsar_client-3.2.0-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:39ec897bc8d232e6b118793378fc662a844334b829a28a1b4ad1c5fe8d019135"}, - {file = "pulsar_client-3.2.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:aa37c96c25c1b5aff3bad0fd0194b385ec190b2c67a2f439ac91577f81ae18d3"}, - {file = "pulsar_client-3.2.0-cp37-cp37m-musllinux_1_1_aarch64.whl", hash = "sha256:d49cdd4d1b7fc2e80d100acf14e6fd3898f6e099e403fc56ed22a690245b2fec"}, - {file = "pulsar_client-3.2.0-cp37-cp37m-musllinux_1_1_x86_64.whl", hash = "sha256:0058ca3191fd24528ccf94dba6f12e4093831454a2597166f96900d0717271bf"}, - {file = "pulsar_client-3.2.0-cp37-cp37m-win_amd64.whl", hash = "sha256:cb69b0411008e0b56df51de0aab20aa1c1a12aef3019b9ceba89afbae1f07fe2"}, - {file = "pulsar_client-3.2.0-cp38-cp38-macosx_10_15_universal2.whl", hash = "sha256:f7d33e99602352df7a30707eab4e5781654602212fb618928bffb5523f2bcf35"}, - {file = "pulsar_client-3.2.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ad1ac15a175ca90555c681a4d0134568771c6346b97a172f3ef14006556a50ae"}, - {file = "pulsar_client-3.2.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:369e08ef1d5cb196dd9271039928800f90b4701a9c9df90bc068b44260d2fb11"}, - {file = "pulsar_client-3.2.0-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:a52ba2b6736a2ebeed31b590e75d417dda149e333461655860efa84d898a3eb4"}, - {file = "pulsar_client-3.2.0-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:5c801334b3b569b23976481a2922bcea0c6dd990fc26544658dd9e9c8f78ca36"}, - {file = "pulsar_client-3.2.0-cp38-cp38-win_amd64.whl", hash = "sha256:cd01fd419280e9013d1655bc53662248be2656b623b1506480e1a985aa7dadd2"}, - {file = "pulsar_client-3.2.0-cp39-cp39-macosx_10_15_universal2.whl", hash = "sha256:0abe54d84db76435a6cd88ce27610352cabc7efae9fa3e7f874e032ec2ca0b3f"}, - {file = "pulsar_client-3.2.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:b9a1b6a806eb4819d8cbab1c4ae44ebf2110a94204a46c365f5757e1455252f2"}, - {file = "pulsar_client-3.2.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:34ea2a6b75ae0e303d522e5b57c75a4ff03dc18b9bfc14151fb14dfaf5866f17"}, - {file = "pulsar_client-3.2.0-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:be6d3a9b2e1db3b6d1a7db5e13f7b4ed420674cf072cdb520fb004c4cd54c0af"}, - {file = "pulsar_client-3.2.0-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:b6b733e6239ffb505f7084df0175baf9d0215f14d0a02e9bbd1fdf71a2d6ea17"}, - {file = "pulsar_client-3.2.0-cp39-cp39-win_amd64.whl", hash = "sha256:edc2135d02b4793efb086edca0ffaa6e8ac9133961c2cdc17ae487e0a53da481"}, -] - -[package.dependencies] -certifi = "*" - -[package.extras] -all = ["apache-bookkeeper-client (>=4.16.1)", "fastavro (==1.7.3)", "grpcio (>=1.8.2)", "prometheus-client", "protobuf (>=3.6.1,<=3.20.3)", "ratelimit"] -avro = ["fastavro (==1.7.3)"] -functions = ["apache-bookkeeper-client (>=4.16.1)", "grpcio (>=1.8.2)", "prometheus-client", "protobuf (>=3.6.1,<=3.20.3)", "ratelimit"] - [[package]] name = "pure-eval" version = "0.2.2" @@ -8719,24 +8478,6 @@ files = [ [package.dependencies] typing-extensions = "*" -[[package]] -name = "pygithub" -version = "1.59.0" -description = "Use the full Github API v3" -category = "dev" -optional = false -python-versions = ">=3.7" -files = [ - {file = "PyGithub-1.59.0-py3-none-any.whl", hash = "sha256:126bdbae72087d8d038b113aab6b059b4553cb59348e3024bb1a1cae406ace9e"}, - {file = "PyGithub-1.59.0.tar.gz", hash = "sha256:6e05ff49bac3caa7d1d6177a10c6e55a3e20c85b92424cc198571fd0cf786690"}, -] - -[package.dependencies] -deprecated = "*" -pyjwt = {version = ">=2.4.0", extras = ["crypto"]} -pynacl = ">=1.4.0" -requests = ">=2.14.0" - [[package]] name = "pygments" version = "2.15.1" @@ -8757,7 +8498,7 @@ name = "pyjwt" version = "2.7.0" description = "JSON Web Token implementation in Python" category = "main" -optional = false +optional = true python-versions = ">=3.7" files = [ {file = "PyJWT-2.7.0-py3-none-any.whl", hash = "sha256:ba2b425b15ad5ef12f200dc67dd56af4e26de2331f965c5439994dad075876e1"}, @@ -8800,7 +8541,7 @@ name = "pymongo" version = "4.3.3" description = "Python driver for MongoDB " category = "main" -optional = false +optional = true python-versions = ">=3.7" files = [ {file = "pymongo-4.3.3-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:74731c9e423c93cbe791f60c27030b6af6a948cef67deca079da6cd1bb583a8e"}, @@ -8942,33 +8683,6 @@ files = [ {file = "PyMuPDF-1.22.3.tar.gz", hash = "sha256:5ecd928e96e63092571020973aa145b57b75707f3a3df97c742e563112615891"}, ] -[[package]] -name = "pynacl" -version = "1.5.0" -description = "Python binding to the Networking and Cryptography (NaCl) library" -category = "dev" -optional = false -python-versions = ">=3.6" -files = [ - {file = "PyNaCl-1.5.0-cp36-abi3-macosx_10_10_universal2.whl", hash = "sha256:401002a4aaa07c9414132aaed7f6836ff98f59277a234704ff66878c2ee4a0d1"}, - {file = "PyNaCl-1.5.0-cp36-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_24_aarch64.whl", hash = "sha256:52cb72a79269189d4e0dc537556f4740f7f0a9ec41c1322598799b0bdad4ef92"}, - {file = "PyNaCl-1.5.0-cp36-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a36d4a9dda1f19ce6e03c9a784a2921a4b726b02e1c736600ca9c22029474394"}, - {file = "PyNaCl-1.5.0-cp36-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_24_x86_64.whl", hash = "sha256:0c84947a22519e013607c9be43706dd42513f9e6ae5d39d3613ca1e142fba44d"}, - {file = "PyNaCl-1.5.0-cp36-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:06b8f6fa7f5de8d5d2f7573fe8c863c051225a27b61e6860fd047b1775807858"}, - {file = "PyNaCl-1.5.0-cp36-abi3-musllinux_1_1_aarch64.whl", hash = "sha256:a422368fc821589c228f4c49438a368831cb5bbc0eab5ebe1d7fac9dded6567b"}, - {file = "PyNaCl-1.5.0-cp36-abi3-musllinux_1_1_x86_64.whl", hash = "sha256:61f642bf2378713e2c2e1de73444a3778e5f0a38be6fee0fe532fe30060282ff"}, - {file = "PyNaCl-1.5.0-cp36-abi3-win32.whl", hash = "sha256:e46dae94e34b085175f8abb3b0aaa7da40767865ac82c928eeb9e57e1ea8a543"}, - {file = "PyNaCl-1.5.0-cp36-abi3-win_amd64.whl", hash = "sha256:20f42270d27e1b6a29f54032090b972d97f0a1b0948cc52392041ef7831fee93"}, - {file = "PyNaCl-1.5.0.tar.gz", hash = "sha256:8ac7448f09ab85811607bdd21ec2464495ac8b7c66d146bf545b0f08fb9220ba"}, -] - -[package.dependencies] -cffi = ">=1.4.1" - -[package.extras] -docs = ["sphinx (>=1.6.5)", "sphinx-rtd-theme"] -tests = ["hypothesis (>=3.27.0)", "pytest (>=3.2.1,!=3.3.0)"] - [[package]] name = "pynvml" version = "11.5.0" @@ -9076,17 +8790,6 @@ files = [ doc = ["sphinx", "sphinx_rtd_theme"] test = ["flake8", "isort", "pytest"] -[[package]] -name = "pypika" -version = "0.48.9" -description = "A SQL query builder API for Python" -category = "dev" -optional = false -python-versions = "*" -files = [ - {file = "PyPika-0.48.9.tar.gz", hash = "sha256:838836a61747e7c8380cd1b7ff638694b7a7335345d0f559b04b2cd832ad5378"}, -] - [[package]] name = "pyproj" version = "3.5.0" @@ -9155,7 +8858,7 @@ name = "pyreadline3" version = "3.4.1" description = "A python implementation of GNU readline." category = "main" -optional = false +optional = true python-versions = "*" files = [ {file = "pyreadline3-3.4.1-py3-none-any.whl", hash = "sha256:b0efb6516fd4fb07b45949053826a62fa4cb353db5be2bbb4a7aa1fdd1e345fb"}, @@ -9478,31 +9181,6 @@ files = [ {file = "python_json_logger-2.0.7-py3-none-any.whl", hash = "sha256:f380b826a991ebbe3de4d897aeec42760035ac760345e57b812938dc8b35e2bd"}, ] -[[package]] -name = "python-magic" -version = "0.4.27" -description = "File type identification using libmagic" -category = "dev" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" -files = [ - {file = "python-magic-0.4.27.tar.gz", hash = "sha256:c1ba14b08e4a5f5c31a302b7721239695b2f0f058d125bd5ce1ee36b9d9d3c3b"}, - {file = "python_magic-0.4.27-py2.py3-none-any.whl", hash = "sha256:c212960ad306f700aa0d01e5d7a325d20548ff97eb9920dcd29513174f0294d3"}, -] - -[[package]] -name = "python-magic-bin" -version = "0.4.14" -description = "File type identification using libmagic binary package" -category = "dev" -optional = false -python-versions = "*" -files = [ - {file = "python_magic_bin-0.4.14-py2.py3-none-macosx_10_6_intel.whl", hash = "sha256:7b1743b3dbf16601d6eedf4e7c2c9a637901b0faaf24ad4df4d4527e7d8f66a4"}, - {file = "python_magic_bin-0.4.14-py2.py3-none-win32.whl", hash = "sha256:34a788c03adde7608028203e2dbb208f1f62225ad91518787ae26d603ae68892"}, - {file = "python_magic_bin-0.4.14-py2.py3-none-win_amd64.whl", hash = "sha256:90be6206ad31071a36065a2fc169c5afb5e0355cbe6030e87641c6c62edc2b69"}, -] - [[package]] name = "python-multipart" version = "0.0.6" @@ -9983,7 +9661,7 @@ name = "redis" version = "4.5.5" description = "Python client for Redis database and key-value store" category = "main" -optional = false +optional = true python-versions = ">=3.7" files = [ {file = "redis-4.5.5-py3-none-any.whl", hash = "sha256:77929bc7f5dab9adf3acba2d3bb7d7658f1e0c2f1cafe7eb36434e751c471119"}, @@ -10002,7 +9680,7 @@ name = "regex" version = "2023.6.3" description = "Alternative regular expression module, to replace re." category = "main" -optional = false +optional = true python-versions = ">=3.6" files = [ {file = "regex-2023.6.3-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:824bf3ac11001849aec3fa1d69abcb67aac3e150a933963fb12bda5151fe1bfd"}, @@ -10299,7 +9977,7 @@ name = "s3transfer" version = "0.6.1" description = "An Amazon S3 Transfer Manager" category = "main" -optional = false +optional = true python-versions = ">= 3.7" files = [ {file = "s3transfer-0.6.1-py3-none-any.whl", hash = "sha256:3c0da2d074bf35d6870ef157158641178a4204a6e689e82546083e31e0311346"}, @@ -10317,7 +9995,7 @@ name = "safetensors" version = "0.3.1" description = "Fast and Safe Tensor serialization" category = "main" -optional = false +optional = true python-versions = "*" files = [ {file = "safetensors-0.3.1-cp310-cp310-macosx_10_11_x86_64.whl", hash = "sha256:2ae9b7dd268b4bae6624729dac86deb82104820e9786429b0583e5168db2f770"}, @@ -10393,7 +10071,7 @@ name = "scikit-learn" version = "1.2.2" description = "A set of python modules for machine learning and data mining" category = "main" -optional = false +optional = true python-versions = ">=3.8" files = [ {file = "scikit-learn-1.2.2.tar.gz", hash = "sha256:8429aea30ec24e7a8c7ed8a3fa6213adf3814a6efbea09e16e0a0c71e1a1a3d7"}, @@ -10436,7 +10114,7 @@ name = "scipy" version = "1.6.1" description = "SciPy: Scientific Library for Python" category = "main" -optional = false +optional = true python-versions = ">=3.7" files = [ {file = "scipy-1.6.1-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:a15a1f3fc0abff33e792d6049161b7795909b40b97c6cc2934ed54384017ab76"}, @@ -10468,7 +10146,7 @@ name = "scipy" version = "1.9.3" description = "Fundamental algorithms for scientific computing in Python" category = "main" -optional = false +optional = true python-versions = ">=3.8" files = [ {file = "scipy-1.9.3-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:1884b66a54887e21addf9c16fb588720a8309a57b2e258ae1c7986d4444d3bc0"}, @@ -10552,7 +10230,7 @@ name = "sentence-transformers" version = "2.2.2" description = "Multilingual text embeddings" category = "main" -optional = false +optional = true python-versions = ">=3.6.0" files = [ {file = "sentence-transformers-2.2.2.tar.gz", hash = "sha256:dbc60163b27de21076c9a30d24b5b7b6fa05141d68cf2553fa9a77bf79a29136"}, @@ -10575,7 +10253,7 @@ name = "sentencepiece" version = "0.1.99" description = "SentencePiece python wrapper" category = "main" -optional = false +optional = true python-versions = "*" files = [ {file = "sentencepiece-0.1.99-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:0eb528e70571b7c02723e5804322469b82fe7ea418c96051d0286c0fa028db73"}, @@ -10647,7 +10325,7 @@ name = "sgmllib3k" version = "1.0.0" description = "Py3k port of sgmllib." category = "main" -optional = false +optional = true python-versions = "*" files = [ {file = "sgmllib3k-1.0.0.tar.gz", hash = "sha256:7868fb1c8bfa764c1ac563d3cf369c381d1325d36124933a726f29fcdaa812e9"}, @@ -11201,7 +10879,7 @@ name = "starlette" version = "0.27.0" description = "The little ASGI library that shines." category = "main" -optional = false +optional = true python-versions = ">=3.7" files = [ {file = "starlette-0.27.0-py3-none-any.whl", hash = "sha256:918416370e846586541235ccd38a474c08b80443ed31c578a418e2209b3eef91"}, @@ -11295,7 +10973,7 @@ name = "sympy" version = "1.12" description = "Computer algebra system (CAS) in Python" category = "main" -optional = false +optional = true python-versions = ">=3.8" files = [ {file = "sympy-1.12-py3-none-any.whl", hash = "sha256:c3588cd4295d0c0f603d0f2ae780587e64e2efeedb3521e46b9bb1d08d184fa5"}, @@ -11339,21 +11017,6 @@ wcwidth = {version = "*", optional = true, markers = "extra == \"widechars\""} [package.extras] widechars = ["wcwidth"] -[[package]] -name = "tair" -version = "1.3.4" -description = "Python client for Tair" -category = "dev" -optional = false -python-versions = ">=3.7" -files = [ - {file = "tair-1.3.4-py3-none-any.whl", hash = "sha256:5f034559cfccd9edacea866354584eaef0150d1901cfc812a442aacc17b68656"}, - {file = "tair-1.3.4.tar.gz", hash = "sha256:a4d6046c9c523c3e39305c90b63ac68db354121c80e27866b824eb085ae1e096"}, -] - -[package.dependencies] -redis = ">=4.4.4" - [[package]] name = "tblib" version = "2.0.0" @@ -11753,7 +11416,7 @@ name = "threadpoolctl" version = "3.1.0" description = "threadpoolctl" category = "main" -optional = false +optional = true python-versions = ">=3.6" files = [ {file = "threadpoolctl-3.1.0-py3-none-any.whl", hash = "sha256:8b99adda265feb6773280df41eece7b2e6561b772d21ffd52e372f999024907b"}, @@ -11781,7 +11444,7 @@ name = "tiktoken" version = "0.3.3" description = "tiktoken is a fast BPE tokeniser for use with OpenAI's models" category = "main" -optional = false +optional = true python-versions = ">=3.8" files = [ {file = "tiktoken-0.3.3-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:d1f37fa75ba70c1bc7806641e8ccea1fba667d23e6341a1591ea333914c226a9"}, @@ -11875,7 +11538,7 @@ name = "tokenizers" version = "0.13.3" description = "Fast and Customizable Tokenizers" category = "main" -optional = false +optional = true python-versions = "*" files = [ {file = "tokenizers-0.13.3-cp310-cp310-macosx_10_11_x86_64.whl", hash = "sha256:f3835c5be51de8c0a092058a4d4380cb9244fb34681fd0a295fbf0a52a5fdf33"}, @@ -11966,7 +11629,7 @@ name = "torch" version = "1.13.1" description = "Tensors and Dynamic neural networks in Python with strong GPU acceleration" category = "main" -optional = false +optional = true python-versions = ">=3.7.0" files = [ {file = "torch-1.13.1-cp310-cp310-manylinux1_x86_64.whl", hash = "sha256:fd12043868a34a8da7d490bf6db66991108b00ffbeecb034228bfcbbd4197143"}, @@ -12007,7 +11670,7 @@ name = "torchvision" version = "0.14.1" description = "image and video datasets and models for torch deep learning" category = "main" -optional = false +optional = true python-versions = ">=3.7" files = [ {file = "torchvision-0.14.1-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:eeb05dd9dd3af5428fee525400759daf8da8e4caec45ddd6908cfb36571f6433"}, @@ -12104,7 +11767,7 @@ name = "transformers" version = "4.30.2" description = "State-of-the-art Machine Learning for JAX, PyTorch and TensorFlow" category = "main" -optional = false +optional = true python-versions = ">=3.7.0" files = [ {file = "transformers-4.30.2-py3-none-any.whl", hash = "sha256:c332e3a3097f9ed89ce556b403251235931c00237b8bc2d7adaa19d226c13f1d"}, @@ -12436,7 +12099,7 @@ name = "uvicorn" version = "0.22.0" description = "The lightning-fast ASGI server." category = "main" -optional = false +optional = true python-versions = ">=3.7" files = [ {file = "uvicorn-0.22.0-py3-none-any.whl", hash = "sha256:e9434d3bbf05f310e762147f769c9f21235ee118ba2d2bf1155a7196448bd996"}, @@ -12462,7 +12125,7 @@ name = "uvloop" version = "0.17.0" description = "Fast implementation of asyncio event loop on top of libuv" category = "main" -optional = false +optional = true python-versions = ">=3.7" files = [ {file = "uvloop-0.17.0-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:ce9f61938d7155f79d3cb2ffa663147d4a76d16e08f65e2c66b77bd41b356718"}, @@ -12507,7 +12170,7 @@ name = "validators" version = "0.20.0" description = "Python Data Validation for Humans™." category = "main" -optional = false +optional = true python-versions = ">=3.4" files = [ {file = "validators-0.20.0.tar.gz", hash = "sha256:24148ce4e64100a2d5e267233e23e7afeb55316b47d30faae7eb6e7292bc226a"}, @@ -12598,7 +12261,7 @@ name = "watchfiles" version = "0.19.0" description = "Simple, modern and high performance file watching and code reload in python." category = "main" -optional = false +optional = true python-versions = ">=3.7" files = [ {file = "watchfiles-0.19.0-cp37-abi3-macosx_10_7_x86_64.whl", hash = "sha256:91633e64712df3051ca454ca7d1b976baf842d7a3640b87622b323c55f3345e7"}, @@ -12645,7 +12308,7 @@ name = "weaviate-client" version = "3.20.1" description = "A python native Weaviate client" category = "main" -optional = false +optional = true python-versions = ">=3.8" files = [ {file = "weaviate-client-3.20.1.tar.gz", hash = "sha256:752912423f6334575c3feffcc98e5604e2d4b3bd3baddbff57d38db23bec3e9f"}, @@ -12711,7 +12374,7 @@ name = "websockets" version = "11.0.3" description = "An implementation of the WebSocket Protocol (RFC 6455 & 7692)" category = "main" -optional = false +optional = true python-versions = ">=3.7" files = [ {file = "websockets-11.0.3-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:3ccc8a0c387629aec40f2fc9fdcb4b9d5431954f934da3eaf16cdc94f67dbfac"}, @@ -12809,7 +12472,7 @@ name = "wget" version = "3.2" description = "pure python download utility" category = "main" -optional = false +optional = true python-versions = "*" files = [ {file = "wget-3.2.zip", hash = "sha256:35e630eca2aa50ce998b9b1a127bb26b30dfee573702782aa982f875e3f16061"}, @@ -12820,7 +12483,7 @@ name = "wheel" version = "0.40.0" description = "A built-package format for Python" category = "main" -optional = false +optional = true python-versions = ">=3.7" files = [ {file = "wheel-0.40.0-py3-none-any.whl", hash = "sha256:d236b20e7cb522daf2390fa84c55eea81c5c30190f90f29ae2ca1ad8355bf247"}, @@ -12938,7 +12601,7 @@ name = "wikipedia" version = "1.4.0" description = "Wikipedia API for Python" category = "main" -optional = false +optional = true python-versions = "*" files = [ {file = "wikipedia-1.4.0.tar.gz", hash = "sha256:db0fad1829fdd441b1852306e9856398204dc0786d2996dd2e0c8bb8e26133b2"}, @@ -12953,7 +12616,7 @@ name = "win32-setctime" version = "1.1.0" description = "A small Python utility to set file creation time on Windows" category = "main" -optional = false +optional = true python-versions = ">=3.5" files = [ {file = "win32_setctime-1.1.0-py3-none-any.whl", hash = "sha256:231db239e959c2fe7eb1d7dc129f11172354f98361c4fa2d6d2d7e278baa8aad"}, @@ -13547,7 +13210,7 @@ name = "zstandard" version = "0.21.0" description = "Zstandard bindings for Python" category = "main" -optional = false +optional = true python-versions = ">=3.7" files = [ {file = "zstandard-0.21.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:649a67643257e3b2cff1c0a73130609679a5673bf389564bc6d4b164d822a7ce"}, @@ -13613,10 +13276,9 @@ javascript = ["esprima"] llms = ["anthropic", "clarifai", "cohere", "huggingface_hub", "manifest-ml", "nlpcloud", "openai", "openllm", "openlm", "torch", "transformers", "xinference"] openai = ["openai", "tiktoken"] qdrant = ["qdrant-client"] -scheduled-testing = ["openai"] text-helpers = ["chardet"] [metadata] lock-version = "2.0" python-versions = ">=3.8.1,<4.0" -content-hash = "a8fd5dbcab821e39c502724e13a2f85b718f3e06c7c3f98062de01a44cf1ff6e" +content-hash = "74907003b75271582d92396b8323021eb8e1596624536d7653b548828af4a40c" diff --git a/libs/langchain/pyproject.toml b/libs/langchain/pyproject.toml index d1ae72291b2..6131595b8c9 100644 --- a/libs/langchain/pyproject.toml +++ b/libs/langchain/pyproject.toml @@ -177,32 +177,8 @@ optional = true pytest-vcr = "^1.0.2" wrapt = "^1.15.0" openai = "^0.27.4" -elasticsearch = {extras = ["async"], version = "^8.6.2"} -redis = "^4.5.4" -pinecone-client = "^2.2.1" -pinecone-text = "^0.4.2" -pymongo = "^4.3.3" -clickhouse-connect = "^0.5.14" -transformers = "^4.27.4" -deeplake = "^3.6.8" -libdeeplake = "^0.0.60" -weaviate-client = "^3.15.5" -torch = "^1.0.0" -chromadb = "^0.4.0" -tiktoken = "^0.3.3" python-dotenv = "^1.0.0" -sentence-transformers = "^2" -gptcache = "^0.1.9" -promptlayer = "^0.1.80" -tair = "^1.3.3" -wikipedia = "^1" cassio = "^0.0.7" -arxiv = "^1.4" -mastodon-py = "^1.8.1" -momento = "^1.5.0" -# Please do not add any dependencies in the test_integration group -# See instructions above ^^ -pygithub = "^1.59.0" [tool.poetry.group.lint.dependencies] ruff = "^0.0.249" @@ -376,10 +352,6 @@ extended_testing = [ "anthropic", ] -scheduled_testing = [ - "openai", -] - [tool.ruff] select = [ "E", # pycodestyle diff --git a/libs/langchain/tests/integration_tests/document_loaders/test_geodataframe.py b/libs/langchain/tests/integration_tests/document_loaders/test_geodataframe.py index 37fbbe5ff72..2dbf2777478 100644 --- a/libs/langchain/tests/integration_tests/document_loaders/test_geodataframe.py +++ b/libs/langchain/tests/integration_tests/document_loaders/test_geodataframe.py @@ -1,6 +1,7 @@ +from __future__ import annotations + from typing import TYPE_CHECKING -import geopandas import pytest from langchain.document_loaders import GeoDataFrameLoader @@ -14,6 +15,8 @@ else: @pytest.mark.requires("geopandas") def sample_gdf() -> GeoDataFrame: + import geopandas + path_to_data = geopandas.datasets.get_path("nybb") gdf = geopandas.read_file(path_to_data) gdf["area"] = gdf.area diff --git a/libs/langchain/tests/integration_tests/document_loaders/test_news.py b/libs/langchain/tests/integration_tests/document_loaders/test_news.py index d52655b73f5..2507df34f68 100644 --- a/libs/langchain/tests/integration_tests/document_loaders/test_news.py +++ b/libs/langchain/tests/integration_tests/document_loaders/test_news.py @@ -2,12 +2,13 @@ import random import pytest import requests -from bs4 import BeautifulSoup from langchain.document_loaders import NewsURLLoader def get_random_news_url() -> str: + from bs4 import BeautifulSoup + response = requests.get("https://news.google.com") soup = BeautifulSoup(response.text, "html.parser") diff --git a/libs/langchain/tests/integration_tests/document_loaders/test_tensorflow_datasets.py b/libs/langchain/tests/integration_tests/document_loaders/test_tensorflow_datasets.py index 50a5f7e96f9..e930d10fe37 100644 --- a/libs/langchain/tests/integration_tests/document_loaders/test_tensorflow_datasets.py +++ b/libs/langchain/tests/integration_tests/document_loaders/test_tensorflow_datasets.py @@ -1,4 +1,7 @@ """Integration tests for the TensorFlow Dataset Loader.""" +from __future__ import annotations + +from typing import TYPE_CHECKING import pytest from pydantic.error_wrappers import ValidationError @@ -6,13 +9,8 @@ from pydantic.error_wrappers import ValidationError from langchain.document_loaders.tensorflow_datasets import TensorflowDatasetLoader from langchain.schema.document import Document -# adding tensorflow and tensorflow_datasets to pyproject.toml is not working -# these tests can be run in isolation only -tensorflow = pytest.importorskip("tensorflow") -tensorflow_datasets = pytest.importorskip("tensorflow_datasets") - -# placed here after checking for tensorflow package installation -import tensorflow as tf # noqa: E402 +if TYPE_CHECKING: + import tensorflow as tf # noqa: E402 def decode_to_str(item: tf.Tensor) -> str: diff --git a/libs/langchain/tests/integration_tests/embeddings/test_self_hosted.py b/libs/langchain/tests/integration_tests/embeddings/test_self_hosted.py index 055f7343346..cb317d11c28 100644 --- a/libs/langchain/tests/integration_tests/embeddings/test_self_hosted.py +++ b/libs/langchain/tests/integration_tests/embeddings/test_self_hosted.py @@ -1,8 +1,6 @@ """Test self-hosted embeddings.""" from typing import Any -from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline - from langchain.embeddings import ( SelfHostedEmbeddings, SelfHostedHuggingFaceEmbeddings, @@ -59,6 +57,8 @@ def test_self_hosted_huggingface_instructor_embedding_query() -> None: def get_pipeline() -> Any: """Get pipeline for testing.""" + from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline + model_id = "facebook/bart-base" tokenizer = AutoTokenizer.from_pretrained(model_id) model = AutoModelForCausalLM.from_pretrained(model_id) diff --git a/libs/langchain/tests/integration_tests/llms/test_huggingface_pipeline.py b/libs/langchain/tests/integration_tests/llms/test_huggingface_pipeline.py index 8dfc9c8b219..46fbeb91b30 100644 --- a/libs/langchain/tests/integration_tests/llms/test_huggingface_pipeline.py +++ b/libs/langchain/tests/integration_tests/llms/test_huggingface_pipeline.py @@ -2,8 +2,6 @@ from pathlib import Path -from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline - from langchain.llms.huggingface_pipeline import HuggingFacePipeline from langchain.llms.loading import load_llm from tests.integration_tests.llms.utils import assert_llm_equality @@ -48,6 +46,8 @@ def test_saving_loading_llm(tmp_path: Path) -> None: def test_init_with_pipeline() -> None: """Test initialization with a HF pipeline.""" + from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline + model_id = "gpt2" tokenizer = AutoTokenizer.from_pretrained(model_id) model = AutoModelForCausalLM.from_pretrained(model_id) diff --git a/libs/langchain/tests/integration_tests/llms/test_self_hosted_llm.py b/libs/langchain/tests/integration_tests/llms/test_self_hosted_llm.py index 73457a01c39..1419b1efed1 100644 --- a/libs/langchain/tests/integration_tests/llms/test_self_hosted_llm.py +++ b/libs/langchain/tests/integration_tests/llms/test_self_hosted_llm.py @@ -2,8 +2,6 @@ import pickle from typing import Any, List, Optional -from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline - from langchain.llms import SelfHostedHuggingFaceLLM, SelfHostedPipeline model_reqs = ["pip:./", "transformers", "torch"] @@ -58,6 +56,8 @@ def test_self_hosted_huggingface_pipeline_summarization() -> None: def load_pipeline() -> Any: """Load pipeline for testing.""" + from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline + model_id = "gpt2" tokenizer = AutoTokenizer.from_pretrained(model_id) model = AutoModelForCausalLM.from_pretrained(model_id) diff --git a/libs/langchain/tests/integration_tests/memory/test_rockset.py b/libs/langchain/tests/integration_tests/memory/test_rockset.py index e1cb50d05f4..2d6ef5dbdba 100644 --- a/libs/langchain/tests/integration_tests/memory/test_rockset.py +++ b/libs/langchain/tests/integration_tests/memory/test_rockset.py @@ -8,8 +8,6 @@ and ROCKSET_REGION environment variables set. import json import os -from rockset import DevRegions, Regions, RocksetClient - from langchain.memory import ConversationBufferMemory from langchain.memory.chat_message_histories import RocksetChatMessageHistory from langchain.schema.messages import _message_to_dict @@ -23,6 +21,8 @@ class TestRockset: @classmethod def setup_class(cls) -> None: + from rockset import DevRegions, Regions, RocksetClient + assert os.environ.get("ROCKSET_API_KEY") is not None assert os.environ.get("ROCKSET_REGION") is not None diff --git a/libs/langchain/tests/integration_tests/storage/test_redis.py b/libs/langchain/tests/integration_tests/storage/test_redis.py index 853028953f2..c5b4a69593e 100644 --- a/libs/langchain/tests/integration_tests/storage/test_redis.py +++ b/libs/langchain/tests/integration_tests/storage/test_redis.py @@ -2,23 +2,13 @@ import os import typing import uuid -from typing import Any import pytest -import redis from langchain.storage.redis import RedisStore if typing.TYPE_CHECKING: - try: - from redis import Redis - except ImportError: - # Ignoring mypy here to allow assignment of Any to Redis in the event - # that redis is not installed. - Redis = Any # type:ignore -else: - Redis = Any # type:ignore - + from redis import Redis pytest.importorskip("redis") @@ -26,6 +16,8 @@ pytest.importorskip("redis") @pytest.fixture def redis_client() -> Redis: """Yield redis client.""" + import redis + # Using standard port, but protecting against accidental data loss # by requiring a password. # This fixture flushes the database! diff --git a/libs/langchain/tests/integration_tests/utilities/test_tensorflow_datasets.py b/libs/langchain/tests/integration_tests/utilities/test_tensorflow_datasets.py index de2d572b18c..3066aa61e42 100644 --- a/libs/langchain/tests/integration_tests/utilities/test_tensorflow_datasets.py +++ b/libs/langchain/tests/integration_tests/utilities/test_tensorflow_datasets.py @@ -1,16 +1,16 @@ """Integration tests for the TensorFlow Dataset client.""" +from __future__ import annotations + +from typing import TYPE_CHECKING import pytest -import tensorflow as tf from pydantic.error_wrappers import ValidationError from langchain.schema.document import Document from langchain.utilities.tensorflow_datasets import TensorflowDatasets -# adding tensorflow and tensorflow_datasets to pyproject.toml is not working -# these tests can be tested in isolation only -tensorflow = pytest.importorskip("tensorflow") -tensorflow_datasets = pytest.importorskip("tensorflow_datasets") +if TYPE_CHECKING: + import tensorflow as tf # noqa: E402 def decode_to_str(item: tf.Tensor) -> str: