can install it from source using::
pip install -e git+https://github.com/psycopg/psycopg3.git#egg=psycopg3
+
+
+Hacking
+-------
+
+We assume you have built your virtualenv and ``pip`` just works and ``python``
+refers to Python 3. You can set up a dev environment with::
+
+ python setup.py develop
+
+All the available tests and dev support are defined in ``tox.ini``: please
+refer to `tox documentation`__ for its usage. You can run all the tests with::
+
+ psql -c 'create database psycopg3_test'
+ tox -s
+
+You can use the ``PSYCOPG3_TEST_DSN`` env var to select a different database
+to run the tests. You can install the test dependencies in your virtualenv to
+run the tests faster: please look at the ``tox.ini`` comments for instructions.
+
+.. __: https://tox.readthedocs.io/
+# Tox is nice, but rebuilding the environment every time is kinda slow.
+# If you want to install the test environments defined here into your current
+# virtualenv you can use:
+#
+# pip install tox tox-current-env
+# tox --print-deps-to-file /tmp/requirements.txt
+# pip install -r /tmp/requirements.txt
+#
+# After which you can run the tests with:
+#
+# tox --current-env -e ENV
+#
+# or just run manually the ``commands`` defined here.
+
[tox]
envlist = py{36,37,38}, black, flake8, mypy
[testenv:flake8]
commands = flake8
-deps = flake8 >= 3.7
+deps = flake8 >= 3.8, < 3.9
[testenv:mypy]
commands = mypy --config-file tox.ini
[flake8]
max-line-length = 85
-exclude = env, .tox, .eggs
ignore = W503, E203
+extend-exclude = .venv
[mypy]
files = psycopg3