From 42238df8fba3a10221e4b7a9b9665daf34837dd4 Mon Sep 17 00:00:00 2001 From: Joachim Jablon Date: Thu, 13 Oct 2022 00:10:29 +0200 Subject: [PATCH 1/6] Fix doc --- .readthedocs.yml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/.readthedocs.yml b/.readthedocs.yml index f70e24c..e9b9727 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -9,10 +9,12 @@ version: 2 sphinx: configuration: docs/conf.py -python: - version: 3.7 - install: - - method: pip - path: . - extra_requirements: - - docs +build: + os: ubuntu-20.04 + tools: + python: '3.10' + jobs: + post_install: + - pip install poetry==1.2.0b1 + - poetry config virtualenvs.create false + - poetry install --with docs From 106129f58ffe7dd03ef1e77378e58bca35195d25 Mon Sep 17 00:00:00 2001 From: Joachim Jablon Date: Thu, 13 Oct 2022 00:18:05 +0200 Subject: [PATCH 2/6] Only install docs deps in RTD --- .readthedocs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.readthedocs.yml b/.readthedocs.yml index e9b9727..d15f940 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -17,4 +17,4 @@ build: post_install: - pip install poetry==1.2.0b1 - poetry config virtualenvs.create false - - poetry install --with docs + - poetry install --only=docs From f4690ce59bb1ee268b45d10fd0883b51b2d85212 Mon Sep 17 00:00:00 2001 From: Joachim Jablon Date: Thu, 13 Oct 2022 00:18:17 +0200 Subject: [PATCH 3/6] Only install test deps in CI --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1b32cba..abcff11 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -40,7 +40,7 @@ jobs: run: poetry env use "${{ matrix.python-version }}" - name: Install deps - run: poetry install + run: poetry install --only=test - name: Run tests run: poetry run pytest From 4975bdda2f7500851d845384d66e5b57687ec15d Mon Sep 17 00:00:00 2001 From: Joachim Jablon Date: Thu, 13 Oct 2022 00:20:36 +0200 Subject: [PATCH 4/6] Don't install deps in publish workflow --- .github/workflows/publish.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 146e3dd..5ce5e95 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -22,9 +22,6 @@ jobs: python-version: "3" cache: "poetry" - - name: Install Dev dependencies - run: poetry install - - name: Wait for tests to succeed uses: fountainhead/action-wait-for-check@v1.0.0 id: wait-for-ci From 4ebe97c08874f063a66562f924fb012cca1e484c Mon Sep 17 00:00:00 2001 From: Joachim Jablon Date: Thu, 13 Oct 2022 00:20:57 +0200 Subject: [PATCH 5/6] typing-extensions is a runtime dep --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 7a53c0c..f96272d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -39,6 +39,7 @@ click = "*" colorama = "*" requests = "*" importlib-metadata = {version = "*", python = "<3.10"} +typing-extensions = "*" [tool.poetry.group.dev.dependencies] tox = "*" @@ -46,7 +47,6 @@ black = "*" isort = "*" flake8 = "*" mypy = "*" -typing-extensions = "*" [tool.poetry.group.test.dependencies] pytest = "*" From e96aaec716dbe66d6308c05e4c2016c5c9b1336e Mon Sep 17 00:00:00 2001 From: Joachim Jablon Date: Thu, 13 Oct 2022 00:21:17 +0200 Subject: [PATCH 6/6] The "dev" dep group is now called "lint" --- pyproject.toml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index f96272d..ec7deaf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -41,8 +41,7 @@ requests = "*" importlib-metadata = {version = "*", python = "<3.10"} typing-extensions = "*" -[tool.poetry.group.dev.dependencies] -tox = "*" +[tool.poetry.group.lint.dependencies] black = "*" isort = "*" flake8 = "*" @@ -60,7 +59,6 @@ sphinx = "*" sphinx_autodoc_typehints = "*" sphinxcontrib-programoutput = "*" - [tool.poetry.group.types.dependencies] types-colorama = "^0.4.15" types-requests = "^2.28.11.2"