Skip to content

add a .readthedocs.yaml #163

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jun 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: 2
build:
os: ubuntu-22.04
tools:
python: "3.11"
sphinx:
configuration: docs/conf.py
python:
install:
- requirements: docs/requirements.txt
6 changes: 4 additions & 2 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,14 @@ jobs:
vmImage: 'ubuntu-latest'
strategy:
matrix:
Python37:
python.version: '3.7'
Python38:
python.version: '3.8'
Python39:
python.version: '3.9'
Python310:
python.version: '3.10'
Python311:
python.version: '3.11'
maxParallel: 4

steps:
Expand Down
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ versions.

Flask-PyMongo is tested against `supported versions
<https://www.mongodb.com/support-policy>`_ of MongoDB, and Python
and 3.6+. For the exact list of version combinations that are tested and
and 3.8+. For the exact list of version combinations that are tested and
known to be compatible, see the `envlist` in `tox.ini
<https://github.com/dcrosta/flask-pymongo/blob/master/tox.ini>`_.

Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
platforms="any",
packages=find_packages(),
install_requires=[
"Flask>=0.12",
"PyMongo>=3.3",
"Flask>=1.0",
"PyMongo>=3.11",
"six",
],
classifiers=[
Expand Down
41 changes: 20 additions & 21 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,29 +1,31 @@
[tox]

; keep the pymongo list in sync with what's in .travis.yaml
; pymongo{311,312,40,41,42,43}-mongo{4x,5x,6x}-flask{10,11,2x}, style
envlist=
pymongo{37,38,39,310,311,312}-mongo{40,42,44,50}-flask{10,11,20}, style
pymongo{311,312}-mongo{4x,5x,6x}-flask{10,11,2x}, style

[testenv]
docker =
mongo40: mongo40
mongo42: mongo42
mongo44: mongo44
mongo50: mongo50
mongo4x: mongo4x
mongo5x: mongo5x
mongo6x: mongo6x

deps =
pytest
markupsafe<2.1

pymongo37: pymongo>=3.7,<3.8
pymongo38: pymongo>=3.8,<3.9
pymongo39: pymongo>=3.9,<3.10
pymongo310: pymongo>=3.10,<3.11
pymongo311: pymongo>=3.11,<3.12
pymongo312: pymongo>=3.12,<3.13
pymongo40: pymongo>=4.0,<4.1
pymongo41: pymongo>=4.1,<4.2
pymongo42: pymongo>=4.2,<4.3
pymongo43: pymongo>=4.3,<4.4

flask10: flask>=1.0,<1.1
flask10: jinja2<3.0
flask10: itsdangerous<2.1.0
flask11: flask>=1.1,<1.2
flask20: flask>=2.0,<2.1
flask2x: flask>=2.0,<3.0

commands =
{envbindir}/py.test --tb=native {toxinidir}
Expand All @@ -32,7 +34,7 @@ commands =
skipsdist = true
skip_install = true
deps =
flake8
flake8<6
flake8-quotes
flake8-commas
https://github.com/dcrosta/flake8-import-order/archive/add-fromsfirst-style.tar.gz#egg=flake8-import-order
Expand All @@ -50,14 +52,11 @@ ignore = D100,D104,D107
exclude =
_version.py

[docker:mongo40]
image = mongo:4.0
[docker:mongo4x]
image = mongo:4

[docker:mongo42]
image = mongo:4.2
[docker:mongo5x]
image = mongo:5

[docker:mongo44]
image = mongo:4.4

[docker:mongo50]
image = mongo:5.0
[docker:mongo6x]
image = mongo:6