Skip to content

Commit

Permalink
Swap Hatch for venv bc I can't get it to work
Browse files Browse the repository at this point in the history
  • Loading branch information
J2-D2-3PO committed Nov 21, 2024
1 parent 92e69ad commit 90ca857
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 19 deletions.
24 changes: 10 additions & 14 deletions .github/workflows/generate-llms.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,18 @@ jobs:
with:
python-version: '3.x' # Specify the required Python version

# Step 3: Install Hatch
- name: Install Hatch
run: pip install hatch

# Step 3.1: Verify Hatch
- name: List Hatch environments
run: hatch env show

# Step 4: Install dependencies for docs
- name: Install documentation dependencies
run: hatch env create llmspy
- name: Create virtual environment
run: |
python -m venv .venv
source .venv/bin/activate
pip install --upgrade pip
pip install PyYAML # Add other dependencies here if needed
# Step 5: Run the script
- name: Generate llms.txt
run: hatch run llmspy python weave/docs/scripts/generate-llmstxt.py

run: |
source .venv/bin/activate
python weave/docs/scripts/generate-llmstxt.py
# Step 6: Verify generated file
- name: Check if llms.txt exists
run: |
Expand Down
5 changes: 0 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ anthropic = ["anthropic>=0.18.0"]
cerebras = ["cerebras-cloud-sdk"]
cohere = ["cohere>=5.9.1,<5.9.3"]
dspy = ["dspy>=0.1.5", "litellm<=1.49.1"]
llmspy = ["PyYAML>=6.0"]
google_ai_studio = ["google-generativeai>=0.8.3"]
groq = ["groq>=0.9.0"]
instructor = ["instructor>=1.4.3"]
Expand Down Expand Up @@ -135,10 +134,6 @@ exclude = [
"weave/clear_cache.py",
]

[tool.hatch.envs.llmspy]
dependencies = ["PyYAML>=6.0"]


[tool.pytest.ini_options]
filterwarnings = [
# treat warnings as errors
Expand Down

0 comments on commit 90ca857

Please sign in to comment.