Skip to content

Commit 5d8e3cb

Browse files
build: pining lower versions of haystack and aiohttp for ElasticSearch (#1827)
* pining lower versions * adding missing comma * pinning to >=2.4.0 * pinning to >=2.3.0 * pinning aiohttp to >=3.0.0 * pinning aiohttp to >=2.0.0 * pinning aiohttp to >=2.5.0 * pinning aiohttp to >=2.6.0 * pinning aiohttp to >=3.0.0 * pinning aiohttp to >=3.1.0 * pinning aiohttp to >=3.2.0 * pinning aiohttp to >=3.3.0 * pinning aiohttp to >=3.10.0 * pinning aiohttp to >=3.9.0 * pinning aiohttp to >=3.8.0 * reverting back aiohttp to 3.9.0
1 parent bbdde76 commit 5d8e3cb

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

.github/workflows/elasticsearch.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,16 @@ jobs:
5858
- name: Run tests
5959
run: hatch run cov-retry
6060

61+
- name: Run unit tests with lowest direct dependencies
62+
run: |
63+
hatch run uv pip compile pyproject.toml --resolution lowest-direct --output-file requirements_lowest_direct.txt
64+
hatch run uv pip install -r requirements_lowest_direct.txt
65+
hatch run test -m "not integration"
66+
6167
- name: Nightly - run unit tests with Haystack main branch
6268
if: github.event_name == 'schedule'
6369
run: |
70+
hatch env prune
6471
hatch run uv pip install git+https://github.com/deepset-ai/haystack.git@main
6572
hatch run cov-retry -m "not integration"
6673

integrations/elasticsearch/pyproject.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ classifiers = [
2424
"Programming Language :: Python :: Implementation :: PyPy",
2525
]
2626
dependencies = [
27-
"haystack-ai>=2.11.0",
28-
"elasticsearch>=8,<9",
29-
"aiohttp" # for async support https://elasticsearch-py.readthedocs.io/en/latest/async.html#valueerror-when-initializing-asyncelasticsearch
30-
]
27+
"haystack-ai>=2.4.0",
28+
"elasticsearch>=8,<9",
29+
"aiohttp>=3.9.0" # for async support https://elasticsearch-py.readthedocs.io/en/latest/async.html#valueerror-when-initializing-asyncelasticsearch
30+
]
3131

3232
[project.urls]
3333
Documentation = "https://github.com/deepset-ai/haystack-core-integrations/tree/main/integrations/elasticsearch#readme"

0 commit comments

Comments
 (0)