Skip to content

Commit

Permalink
Remove requirements.txt (#970)
Browse files Browse the repository at this point in the history
* remove unused sphinx-rtd-theme

* generate new requirements

* update checks

* fix pre-commit hook

* update readthedocs.yml

* rename docs-requirements.txt to optional-requirements.txt

* remove docs-requirements.txt

* try to generate requirements.txt for readthedocs

* remove requirements.txt check

* remove requirements.txt
  • Loading branch information
war-in authored Apr 20, 2023
1 parent a2ff210 commit 8ea8ed9
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 173 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,6 @@ jobs:
- name: Typechecking
run: |
poetry run poe typecheck
- name: Check if requirements.txt is up-to-date
run: |
poetry export -f requirements.txt --without-hashes --extras docs | cmp - requirements.txt
unit-and-e2e-tests:
name: Unit and e2e tests
Expand Down
4 changes: 4 additions & 0 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ build:
- libgmp3-dev
tools:
python: "3.9"
jobs:
pre_install:
- pip install poetry
- poetry export -f requirements.txt --output requirements.txt --without-hashes --extras docs

sphinx:
configuration: docs/conf.py
Expand Down
1 change: 0 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
extensions = [
"sphinx.ext.autodoc",
"sphinx.ext.autosectionlabel",
"sphinx_rtd_theme",
"enum_tools.autoenum",
"codesnippet",
"autoclass_with_examples",
Expand Down
73 changes: 19 additions & 54 deletions poetry.lock

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

2 changes: 0 additions & 2 deletions pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,3 @@
poetry run poe format
poetry run poe lint
poetry run poe typecheck
poetry export -f requirements.txt --output requirements.txt --without-hashes --extras docs
git add requirements.txt
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ black = "^23.1.0"
poethepoet = "^0.19.0"
coverage = "^7.2.1"
pytest-asyncio = "^0.20.3"
sphinx-rtd-theme = "^1.0.0"
pylint = "2.17.2"
setuptools = "^67.5.1"
pytest-mock = "^3.6.1"
Expand Down
112 changes: 0 additions & 112 deletions requirements.txt

This file was deleted.

0 comments on commit 8ea8ed9

Please sign in to comment.