Skip to content

Commit

Permalink
Support motor 3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
art049 committed Jun 1, 2022
1 parent 3fec31e commit 8b0184b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,16 +47,16 @@ Core features:

## Requirements

**Python**: 3.6 and later (tested against 3.6, 3.7, 3.8 and 3.9)
**Python**: 3.6.1 and later (tested against 3.6, 3.7, 3.8 and 3.9)

**MongoDB**: 4.0 and later

Two direct dependencies:

- <a href="https://pydantic-docs.helpmanual.io/" target="_blank">pydantic</a>: makes
- <a href="https://pydantic-docs.helpmanual.io/" target="_blank">pydantic</a> (_>=1.6.2_): makes
data validation and schema definition both handy and elegant.

- <a href="https://motor.readthedocs.io/en/stable/" target="_blank">motor</a>: an
- <a href="https://motor.readthedocs.io/en/stable/" target="_blank">motor</a> (_>=2.1.0_): an
asyncio MongoDB driver officially developed by the MongoDB team.

## Installation
Expand Down
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ classifiers = [
include = ["LICENSE", "README.md"]

[tool.poetry.dependencies]
python = ">=3.6,<4.0"
python = ">=3.6.1,<4.0"
importlib-metadata = { version = ">=1,<5", python = "<3.8" }
typing-extensions = { version = "^3.7.4.3", python = "<3.8" }
pydantic = ">=1.6.2,!=1.7,!=1.7.1,!=1.7.2,!=1.7.3,!=1.8,!=1.8.1,<1.10.0"
motor = ">=2.1.0,<2.6.0"
fastapi = { version = ">=0.61.1,<0.69.0", optional = true }
motor = ">=2.1.0,<3.1.0"
fastapi = { version = ">=0.61.1,<1.0.0", optional = true }

[tool.poetry.extras]
fastapi = ["fastapi"]
Expand Down
8 changes: 4 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
[tox]
isolated_build = true
envlist =
py{36,37,38,39}-motor{21,22,23}-pydantic{17,18,19}
py{36,37,38}-motor{23}-pydantic{16,17,18,19}
skip_missing_interpreters=true
py{37,38,39}-motor{21,22,23,24,25,30}-pydantic{17,18,19}
py{37,38}-motor{23,24,25,30}-pydantic{16,17,18,19}
skip_missing_interpreters=false
[testenv]
deps =
motor21: motor ~= 2.1.0
motor22: motor ~= 2.2.0
motor23: motor ~= 2.3.0
motor24: motor ~= 2.4.0
motor25: motor ~= 2.5.0
motor30: motor ~= 3.0.0
pydantic16: pydantic ~= 1.6.2
pydantic17: pydantic ~= 1.7.4
pydantic18: pydantic ~= 1.8.2
pydantic18: pydantic ~= 1.8.2
pydantic19: pydantic ~= 1.9.0
whitelist_externals =
poetry
Expand Down

0 comments on commit 8b0184b

Please sign in to comment.