8000 Removes `requirements.txt` from docs folder (#177) · dry-python/lambdas@eb89d37 · GitHub
[go: up one dir, main page]

Skip to content

Commit eb89d37

Browse files
Removes requirements.txt from docs folder (#177)
* Adds `pygments` as a project dependency * Adjusts dependencies version * Removes `requirements.txt` from docs folder * Adds `docs` group and make it optional
1 parent 0d26c04 commit eb89d37

File tree

4 files changed

+76
-91
lines changed

4 files changed

+76
-91
lines changed

.readthedocs.yml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,23 @@
11
version: 2
22

3-
python:
4-
version: 3.7
5-
install:
6-
- requirements: docs/requirements.txt
3+
build:
4+
os: ubuntu-22.04
5+
tools:
6+
python: "3.10"
7+
jobs:
8+
pre_create_environment:
9+
- asdf plugin add poetry
10+
- asdf install poetry latest
11+
- asdf global poetry latest
12+
- poetry config virtualenvs.create false
13+
- poetry export --with docs --format=requirements.txt --output=requirements.txt
714

815
sphinx:
916
configuration: docs/conf.py
1017
fail_on_warning: true
1118

19+
python:
20+
install:
21+
- requirements: requirements.txt
22+
1223
formats: all

docs/requirements.txt

Lines changed: 0 additions & 14 deletions
This file was deleted.

poetry.lock

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

pyproject.toml

Lines changed: 21 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -42,24 +42,30 @@ mypy = "^1.5.1"
4242

4343
wemake-python-styleguide = "^0.18"
4444
flake8-pytest = "^1.4"
45-
flake8-pytest-style = "^1.7.2"
46-
flake8-pyi = "^23.6.0"
47-
nitpick = "^0.34.0"
45+
flake8-pytest-style = "^1.7"
46+
flake8-pyi = "^23.6"
47+
nitpick = "^0.34"
4848

49-
safety = "^2.3.5"
49+
safety = "^2.3"
5050

51-
pytest = "^7.4.2"
52-
pytest-cov = "^4.1.0"
53-
pytest-randomly = "^3.15.0"
54-
pytest-mypy-plugins = "^3.0.0"
51+
pytest = "^7.4"
52+
pytest-cov = "^4.1"
53+
pytest-randomly = "^3.15"
54+
pytest-mypy-plugins = "^3.0"
5555

56-
sphinx = "^7.1"
57-
sphinx-autodoc-typehints = "^1.24.0"
58-
sphinxcontrib-mermaid = "^0.9.2"
59-
sphinx-typlog-theme = "^0.8.0"
60-
doc8 = "^1.1.1"
61-
m2r2 = "^0.3.3.post2"
62-
tomlkit = "^0.12.1"
56+
doc8 = "^1.1"
57+
58+
[tool.poetry.group.docs]
59+
optional = true
60+
61+
[tool.poetry.group.docs.dependencies]
62+
sphinx = "^6.2"
63+
sphinx-autodoc-typehints = "^1.23"
64+
sphinxcontrib-mermaid = "^0.9"
65+
sphinx-typlog-theme = "^0.8"
66+
m2r2 = "^0.3"
67+
tomlkit = "^0.12"
68+
pygments = "^2.16"
6369

6470
[tool.nitpick]
6571
style = "https://raw.githubusercontent.com/wemake-services/wemake-python-styleguide/0.18.0/styles/nitpick-style-wemake.toml"

0 commit comments

Comments
 (0)
0