Skip to content
This repository was archived by the owner on Mar 16, 2024. It is now read-only.

Commit 857e591

Browse files
authored
Change Poetry install from pip to curl (#174)
* Update project to use Poetry for dependency management * Remove requirements.txt * Update references to requirements.txt to poetry * Correct astunparse import * Add Docker file * Poetry run black * Remove redbaron * Change poetry install from pip to curl * Remove --docs to run docs install * Remove with --docs * Add Sphinx install with pip * Update sphinx and curl install * Remove python3 from curl * Ensure pyyaml is imported * Add all dependencies to agent config validation * Add pip install paths * Add dot-env with pip * Try to install with pip install e .
1 parent 93bd36e commit 857e591

File tree

4 files changed

+27
-5
lines changed

4 files changed

+27
-5
lines changed

.github/workflows/agent_config_validation.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ jobs:
2121
- name: Install dependencies
2222
run: |
2323
python -m pip install --upgrade pip
24+
curl -sSL https://install.python-poetry.org | python -
2425
poetry install
2526
- name: Run Agent Config Validation
26-
run: python -m automata.cli.scripts.run_agent_config_validation
27+
run: |
28+
pip install e .
29+
python -m automata.cli.scripts.run_agent_config_validation

.github/workflows/build-docs.yml

+11-2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,15 @@ on:
99
branches:
1010
- main # or replace with your default branch
1111

12+
# Installs Sphinx with pip
13+
python:
14+
install:
15+
- method: pip
16+
path: .
17+
extra_requirements:
18+
- docs
19+
- method: pip
20+
1221
jobs:
1322
build:
1423
runs-on: ubuntu-latest
@@ -24,9 +33,9 @@ jobs:
2433
- name: Install dependencies
2534
run: |
2635
python -m pip install --upgrade pip
27-
pip install poetry==1.2.0b1
36+
curl -sSL https://install.python-poetry.org | python -
2837
poetry config virtualenvs.create false
29-
poetry install --with doc
38+
poetry install
3039
3140
- name: Build docs
3241
run: make -C docs/ html

.github/workflows/check-mypy.yml

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
- name: Install dependencies
1818
run: |
1919
python -m pip install --upgrade pip
20+
curl -sSL https://install.python-poetry.org | python -
2021
poetry install
2122
pip install mypy
2223
pip install types-setuptools

.readthedocs.yaml

+11-2
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,18 @@ build:
1212
python: "3.9"
1313
jobs:
1414
post_install:
15-
- pip install poetry==1.2.0b1
15+
- curl -sSL https://install.python-poetry.org | python3 -
1616
- poetry config virtualenvs.create false
17-
- poetry install --with doc
17+
- poetry install
18+
19+
# Installs Sphinx with pip
20+
python:
21+
install:
22+
- method: pip
23+
path: .
24+
extra_requirements:
25+
- docs
26+
- method: pip
1827

1928
# Build documentation in the "docs/" directory with Sphinx
2029
sphinx:

0 commit comments

Comments
 (0)