Skip to content

Commit

Permalink
docs: fix read the docs (#457)
Browse files Browse the repository at this point in the history
* fix: properly add extras

This is what is breaking ReadTheDocs and it means our extras are not
working properly

* ci: add flaky test mark
  • Loading branch information
andrewthetechie authored Feb 10, 2023
1 parent c91c221 commit 1bb8ff8
Show file tree
Hide file tree
Showing 5 changed files with 87 additions and 53 deletions.
2 changes: 1 addition & 1 deletion .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version: 2
build:
os: ubuntu-20.04
tools:
python: "3.9"
python: "3.11"

python:
install:
Expand Down
1 change: 1 addition & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
furo==2022.12.7
sphinx==6.1.3
poetry==1.3.2
129 changes: 79 additions & 50 deletions poetry.lock

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

7 changes: 5 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,12 @@ pydantic = "^1.10.2"
redis = "^4.4.0"
anyio = "^3.6.2"
nest-asyncio = "^1.5.6"
fastapi = {version = "^0.91.0", optional = true}
fastapi-crudrouter = {version = "^0.8.6", optional = true}

[tool.poetry.extras]
FastAPI= ['fastapi>=0.88.0']
fastapi-crudrouter=['fastapi-crudrouter>=0.8.5']
FastAPI= ['fastapi']
fastapi-crudrouter=['fastapi-crudrouter']


[tool.poetry.group.dev.dependencies]
Expand Down Expand Up @@ -76,6 +78,7 @@ setuptools-git-versioning = "^1.13.1"
bandit = "^1.7.4"
fakeredis = {extras = ["json"], version = "2.2.0"}
hypothesis = "^6.61.0"
pytest-rerunfailures = "^11.1"

[tool.coverage.paths]
source = ["pydantic_aioredis", "*/site-packages"]
Expand Down
1 change: 1 addition & 0 deletions test/test_abstract.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ def test_serialize_partially_skip_missing_field():
]


@pytest.mark.flaky(retruns=3)
@pytest.mark.parametrize(
"strategy, strategy_args, strategy_kwargs, model_field, expected_type, equality_expected",
parameters,
Expand Down

0 comments on commit 1bb8ff8

Please sign in to comment.