Skip to content

Commit 53364b0

Browse files
author
Jairo Llopis
committed
Remove docs from dev dependenies
python-poetry/poetry#2555 was fixed, so we should be able to use `poetry install -E docs`.
1 parent 359eeb4 commit 53364b0

File tree

6 files changed

+31
-37
lines changed

6 files changed

+31
-37
lines changed

Diff for: .github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ jobs:
6868
- name: Install dependencies
6969
run: |
7070
python -m pip install poetry
71-
poetry install -vvv
71+
poetry install -E docs -vvv
7272
- name: Run pytest
7373
run: poetry run poe test -ra .
7474

Diff for: .github/workflows/coverage.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
hashFiles('poetry.lock') }}|${{ hashFiles('.pre-commit-config.yaml') }}
3232
- run: git config --global user.name copier-ci
3333
- run: git config --global user.email copier@copier
34-
- run: poetry install
34+
- run: poetry install -E docs
3535
- name: Generate coverage report
3636
run: |
3737
poetry run pytest --cov=./ --cov-report=xml

Diff for: .gitpod.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ tasks:
88
exit
99
- init: |
1010
export PIP_USER=no
11-
poetry install
11+
poetry install -E docs

Diff for: CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ git clone [email protected]:copier-org/copier.git
6666
3. Use poetry to setup a virtualenv to develop in
6767

6868
```bash
69-
poetry install # create's a virtualenv with all dependencies from pyproject.toml
69+
poetry install -E docs # create's a virtualenv with all dependencies from pyproject.toml
7070
poetry shell # creates a new shell with the virtualenv activated
7171
```
7272

Diff for: poetry.lock

+26-26
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: pyproject.toml

+1-7
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ mkdocs-mermaid2-plugin = {version = "^0.5.0", optional = true}
4646
docs = ["mkdocstrings", "mkdocs-material", "mkdocs-mermaid2-plugin"]
4747

4848
[tool.poetry.dev-dependencies]
49+
autoflake = "^1.4"
4950
black = "^20.8b1"
5051
flake8 = "^3.8.4"
5152
flake8-bugbear = "^20.1.4"
@@ -59,13 +60,6 @@ pytest = "^6.1.1"
5960
pytest-cov = "^2.10.1"
6061
pytest-xdist = "^2.1.0"
6162

62-
# HACK https://github.com/python-poetry/poetry/issues/2555
63-
# TODO Remove from this section and install with poetry install -E docs when fixed
64-
mkdocstrings = "^0.13.1"
65-
mkdocs-material = "^5.5.5"
66-
autoflake = "^1.4"
67-
mkdocs-mermaid2-plugin = "^0.5.0"
68-
6963
[tool.poe.tasks.clean]
7064
script = "devtasks:clean"
7165
help = "remove build/python artifacts"

0 commit comments

Comments
 (0)