diff --git a/docs/index.rst b/docs/index.rst index ac468d1..c585598 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -39,13 +39,13 @@ For PostgreSQL: .. code-block:: console - pip install peewee-async aiopg + pip install peewee-async[postgresql] For MySQL: .. code-block:: console - pip install peewee-async aiomysql + pip install peewee-async[mysql] Install from sources ++++++++++++++++++++ @@ -54,7 +54,7 @@ Install from sources git clone https://github.com/05bit/peewee-async.git cd peewee-async - python setup.py install + pip install . Running tests +++++++++++++ diff --git a/docs/peewee_async/examples.rst b/docs/peewee_async/examples.rst index 8006974..310aaca 100644 --- a/docs/peewee_async/examples.rst +++ b/docs/peewee_async/examples.rst @@ -88,5 +88,5 @@ The complete working example is provided below. And here are some general notes: **Also note:** if you spawn an extra task during a transaction, it will run outside of that transaction. -.. literalinclude:: ../../examples/tornado_sample.py +.. literalinclude:: ../samples/tornado_sample.py :start-after: # Start example \ No newline at end of file diff --git a/examples/tornado_sample.py b/docs/samples/tornado_sample.py similarity index 100% rename from examples/tornado_sample.py rename to docs/samples/tornado_sample.py diff --git a/examples/requirements.txt b/examples/requirements.txt index 59a006d..0dbd3ba 100644 --- a/examples/requirements.txt +++ b/examples/requirements.txt @@ -1,11 +1,3 @@ -fastapi==0.111.0 -uvicorn==0.29.0 -tornado==6.4 -aiohttp==3.9.5 -gunicorn==22.0.0 - -aiopg~=1.4.0 -aiomysql~=0.2.0 - -peewee~=3.17.3 -# peewee-async~=0.10.0 +aiohttp +gunicorn +peewee-async[postgresql] diff --git a/load-testing/requirements.txt b/load-testing/requirements.txt index 87c6ab1..97dc7cd 100644 --- a/load-testing/requirements.txt +++ b/load-testing/requirements.txt @@ -1,2 +1,2 @@ -fastapi==0.110.0 -uvicorn==0.29.0 +fastapi +uvicorn