Skip to content

Commit

Permalink
Fix deps on pypi (#131)
Browse files Browse the repository at this point in the history
Add deps using requirement.txt to poetry
  • Loading branch information
jerpint authored Sep 18, 2023
1 parent ba76a84 commit f5f6b43
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 19 deletions.
1 change: 1 addition & 0 deletions .github/workflows/publish_pypi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,6 @@ jobs:
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.POETRY_PYPI_TOKEN_PYPI }}
run: |
poetry version $(git describe --tags --abbrev=0)
poetry add $(cat requirements.txt)
poetry build
poetry publish
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ packages = [
]

[tool.poetry.dependencies]
python = "^3.10"
python = ">=3.10,<3.13"
26 changes: 8 additions & 18 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,24 +1,14 @@
bs4
click
deeplake
gradio
matplotlib
numpy
openai[embeddings]
pandas
tabulate
tenacity
tiktoken
promptlayer
pytest
openai
click
pinecone-client
pymongo
fastapi
deeplake

# all openai[embeddings] deps, their list breaks our CI, see: https://github.com/openai/openai-python/issues/210

scikit-learn >= 1.0.2 # Needed for embedding utils, versions >= 1.1 require python 3.8
tenacity >= 8.0.1
matplotlib
plotly
pandas-stubs >= 1.1.0.11 # Needed for type hints for mypy
openpyxl >= 3.0.7 # Needed for CLI fine-tuning data preparation tool xlsx format
pytest
tabulate
tenacity
tiktoken

0 comments on commit f5f6b43

Please sign in to comment.