Skip to content

Commit bda8cc5

Browse files
committed
Fix paper-qa dependency installation in CI/CD
- Update pyproject.toml to use paper-qa>=4.9.0 (compatible with Python 3.8-3.11) - Add conditional paper-qa installation in CI workflow: - Python 3.11: Install from GitHub (latest) or fallback to 4.9.0 - Python 3.8-3.10: Install paper-qa>=4.9.0,<5.0.0 (stable version) - Fixes CI failures: paper-qa>=5.0.0 doesn't exist on PyPI yet This resolves the 'No matching distribution found for paper-qa>=5.0.0' error
1 parent d1a6017 commit bda8cc5

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ jobs:
6262
google-generativeai>=0.7.2 \
6363
tiktoken>=0.5.0 \
6464
litellm>=1.50.0 \
65-
paper-qa>=5.0.0 \
6665
requests>=2.31.0 \
6766
beautifulsoup4>=4.12.2 \
6867
lxml>=4.9.0 \
@@ -90,6 +89,19 @@ jobs:
9089
pytz>=2023.3 \
9190
qdrant-client>=1.7.0
9291
92+
- name: Install paper-qa (version based on Python version)
93+
run: |
94+
if [ "${{ matrix.python-version }}" == "3.11" ]; then
95+
# For Python 3.11, install latest paper-qa from GitHub (supports >=5.0.0)
96+
echo "Installing paper-qa from GitHub for Python 3.11"
97+
pip install --no-cache-dir git+https://github.com/Future-House/paper-qa.git || \
98+
pip install --no-cache-dir "paper-qa>=4.9.0,<5.0.0"
99+
else
100+
# For Python 3.8-3.10, install latest stable version compatible with older Python
101+
echo "Installing paper-qa 4.9.0 for Python ${{ matrix.python-version }}"
102+
pip install --no-cache-dir "paper-qa>=4.9.0,<5.0.0"
103+
fi
104+
93105
- name: Verify installation
94106
env:
95107
PYTHONPATH: ${{ github.workspace }}

pyproject.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ dependencies = [
4545
"tiktoken>=0.5.0",
4646
"litellm>=1.50.0",
4747
# Paper-QA agent integration
48-
"paper-qa>=5.0.0",
48+
# Note: paper-qa>=5.0.0 requires Python >=3.11
49+
# For Python <3.11, install paper-qa>=4.9.0,<5.0.0
50+
"paper-qa>=4.9.0",
4951
# Web and data retrieval
5052
"requests>=2.31.0",
5153
"beautifulsoup4>=4.12.2",

0 commit comments

Comments
 (0)