Skip to content

Commit

Permalink
Remove docs from dev dependenies
Browse files Browse the repository at this point in the history
python-poetry/poetry#2555 was fixed, so we should be able to use `poetry install -E docs`.
  • Loading branch information
Jairo Llopis authored and github-actions[bot] committed Oct 16, 2020
1 parent 90758e7 commit 5c8751a
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 37 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install poetry
poetry install -vvv
poetry install -E docs -vvv
- name: Run pytest
run: poetry run poe test -ra .

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
hashFiles('poetry.lock') }}|${{ hashFiles('.pre-commit-config.yaml') }}
- run: git config --global user.name copier-ci
- run: git config --global user.email copier@copier
- run: poetry install
- run: poetry install -E docs
- name: Generate coverage report
run: |
poetry run pytest --cov=./ --cov-report=xml
Expand Down
2 changes: 1 addition & 1 deletion .gitpod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ tasks:
exit
- init: |
export PIP_USER=no
poetry install
poetry install -E docs
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ git clone git@github.com:copier-org/copier.git
3. Use poetry to setup a virtualenv to develop in

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

Expand Down
52 changes: 26 additions & 26 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 1 addition & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ mkdocs-mermaid2-plugin = {version = "^0.5.0", optional = true}
docs = ["mkdocstrings", "mkdocs-material", "mkdocs-mermaid2-plugin"]

[tool.poetry.dev-dependencies]
autoflake = "^1.4"
black = "^20.8b1"
flake8 = "^3.8.4"
flake8-bugbear = "^20.1.4"
Expand All @@ -59,13 +60,6 @@ pytest = "^6.1.1"
pytest-cov = "^2.10.1"
pytest-xdist = "^2.1.0"

# HACK https://github.com/python-poetry/poetry/issues/2555
# TODO Remove from this section and install with poetry install -E docs when fixed
mkdocstrings = "^0.13.1"
mkdocs-material = "^5.5.5"
autoflake = "^1.4"
mkdocs-mermaid2-plugin = "^0.5.0"

[tool.poe.tasks.clean]
script = "devtasks:clean"
help = "remove build/python artifacts"
Expand Down

0 comments on commit 5c8751a

Please sign in to comment.