Skip to content

Commit e43c7dc

Browse files
authored
fix: Extras [diagrams] to install pydot not working (#479)
1 parent 210e314 commit e43c7dc

5 files changed

Lines changed: 11 additions & 11 deletions

File tree

.github/workflows/python-package.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
key: venv-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('**/poetry.lock') }}
4242
- name: Install dependencies
4343
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
44-
run: poetry install --no-interaction --no-root
44+
run: poetry install --no-interaction --no-root --all-extras
4545
#----------------------------------------------
4646
# run ruff
4747
#----------------------------------------------

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
key: venv-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('**/poetry.lock') }}
4242
- name: Install dependencies
4343
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
44-
run: poetry install --no-interaction --no-root
44+
run: poetry install --no-interaction --no-root --all-extras
4545
- name: Test with pytest
4646
run: |
4747
source .venv/bin/activate

docs/contributing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ Ready to contribute? Here's how to set up `python-statemachine` for local develo
9898

9999
1. Run `poetry install` once to install all the dependencies and create a virtual environment::
100100

101-
poetry install
101+
poetry install --all-extras
102102

103103
1. Run `poetry shell` to enter the provided virtual
104104

poetry.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,14 @@ classifiers = [
3333
"Intended Audience :: Developers",
3434
]
3535

36-
[tool.poetry.extras]
37-
diagrams = ["pydot"]
38-
3936
[tool.poetry.dependencies]
4037
python = ">=3.7"
38+
pydot = { version = ">=2.0.0", optional = true }
39+
40+
[tool.poetry.extras]
41+
diagrams = ["pydot"]
4142

4243
[tool.poetry.group.dev.dependencies]
43-
pydot = "^2.0.0"
4444
ruff = "^0.4.8"
4545
pre-commit = "*"
4646
mypy = "*"

0 commit comments

Comments
 (0)