diff --git a/.readthedocs.yml b/.readthedocs.yml new file mode 100644 index 0000000..f7e840b --- /dev/null +++ b/.readthedocs.yml @@ -0,0 +1,13 @@ +# RTD configuration + +python: + # asyncqlio requires 3.5+ + version: 3.5 + # install with pip to get version number + pip_install: true + # install doc requirements + extra_requirements: + - docs + # install all backends for autodoc + - postgres+asyncpg + - mysql+aiomysql diff --git a/setup.py b/setup.py index 2b0b57b..f2280da 100644 --- a/setup.py +++ b/setup.py @@ -39,6 +39,18 @@ "cached_property==1.3.0", "asyncio_extras==1.3.0" ], + extras_require={ + "docs": [ + "sphinx>=1.5.0", + "sphinxcontrib-asyncio" + ], + "postgres+asyncpg": [ + "asyncpg>=0.12.0" + ], + "mysql+aiomysql": [ + "aiomysql>=0.0.9", + ] + }, python_requires=">=3.5.2", entry_points={ "console_scripts": ["asql-migrate=asyncqlio.orm.ddl.migration_tool:cli"]