]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
Readmes and metadata cleanup
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Wed, 25 Aug 2021 02:02:30 +0000 (04:02 +0200)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Wed, 25 Aug 2021 02:02:30 +0000 (04:02 +0200)
README.rst
psycopg/README.rst
psycopg_c/README-binary.rst
psycopg_c/README.rst
psycopg_c/setup.cfg
psycopg_pool/README.rst
psycopg_pool/setup.cfg

index 0e595a6203363ed5e091cc4aaf77f4ba506c8c7b..29de2676ab7a14850a5a3e9c771101831104f166 100644 (file)
@@ -59,15 +59,21 @@ different requirements:
 
   .. __: https://www.psycopg.org/psycopg3/docs/basic/install.html#local-installation
 
+- The ``psycopg_pool`` directory contains the `connection pools`__
+  implementations. This is kept as a separate package to allow a different
+  release cycle.
+
+  .. __: https://www.psycopg.org/psycopg3/docs/advanced/pool.html
+
 You can create a local virtualenv and install there the packages `in
 development mode`__, together with their development and testing
 requirements::
 
     python -m venv .venv
     source .venv/bin/activate
-    pip install -e ./psycopg[dev,test]          # for the base Python package
-    pip install -e ./psycopg_c                  # for the C extension module
-    pip install -e ./psycopg_pool --no-deps     # for the connection pool
+    pip install -e ./psycopg[dev,test]      # for the base Python package
+    pip install -e ./psycopg_c              # for the C extension module
+    pip install -e ./psycopg_pool           # for the connection pool
 
 .. __: https://pip.pypa.io/en/stable/reference/pip_install/#install-editable
 
index 448643bd3a60b40eca4f29b8841acb60c43f6dc5..07d3e741a373cf3b1216f29306d54032e5866740 100644 (file)
@@ -5,7 +5,25 @@ Psycopg 3 is a modern implementation of a PostgreSQL adapter for Python.
 
 This distribution contains the pure Python package ``psycopg``.
 
-Please check out `the project readme`__ for more details.
+
+Installation
+------------
+
+In short, run the following::
+
+    pip install -U pip                  # to upgrade pip
+    pip install psycopg[binary,pool]    # to install package and dependencies
+
+If something goes wrong, and for more information about installation, please
+check out the `Installation documentation`__.
+
+.. __: https://www.psycopg.org/psycopg3/docs/basic/install.html#
+
+
+Hacking
+-------
+
+For development information check out `the project readme`__.
 
 .. __: https://github.com/psycopg/psycopg#readme
 
index 213cb6f58177937225a7c65984897b7b4771d587..7dad6b269c8104b32fc9659061a168c6381ab02d 100644 (file)
@@ -8,6 +8,17 @@ You shouldn't install this package directly: use instead ::
 
     pip install psycopg[binary]
 
+to install a version of the optimization package matching the ``psycopg``
+version installed.
+
+Installing this package requires pip >= 20.3 or newer installed.
+
+This package is not available for every platform: check out `Binary
+installation`__ in the documentation.
+
+.. __: https://www.psycopg.org/psycopg3/docs/basic/install.html
+       #binary-installation
+
 Please read `the project readme`__ and `the installation documentation`__ for
 more details.
 
index 52ea8805d8535762669c9bc2e62146323e917583..d548e0c494b97390d3eecbd11585fda98632d06c 100644 (file)
@@ -7,6 +7,22 @@ You shouldn't install this package directly: use instead ::
 
     pip install psycopg[c]
 
+to install a version of the optimization package matching the ``psycopg``
+version installed.
+
+Installing this package requires some prerequisites: check `Local
+installation`__ in the documentation. Without a C compiler and some library
+headers install *will fail*: this is not a bug.
+
+If you are unable to meet the prerequisite needed you might want to install
+``psycopg[binary]`` instead: look for `Binary installation`__ in the
+documentation.
+
+.. __: https://www.psycopg.org/psycopg3/docs/basic/install.html
+       #local-installation
+.. __: https://www.psycopg.org/psycopg3/docs/basic/install.html
+       #binary-installation
+
 Please read `the project readme`__ and `the installation documentation`__ for
 more details.
 
index 4e66ecdcb0dcb8ce9eb32d09f9f6b1f71c3c3427..fbf4fcada1cde733c68e4ee98f19effa12595fee 100644 (file)
@@ -12,7 +12,6 @@ project_urls =
     Issue Tracker = https://github.com/psycopg/psycopg/issues
     Download = https://pypi.org/project/psycopg-c/
 
-# TODO: classifiers
 classifiers =
     Development Status :: 3 - Alpha
     Intended Audience :: Developers
index 15b46f8feb30a48ba02975cd616f6a1e6bf8e1bc..fa8271b8d28f9ab4b9bc9cae00d6ac383875d8c6 100644 (file)
@@ -2,7 +2,12 @@ Psycopg 3: PostgreSQL database adapter for Python - Connection Pool
 ===================================================================
 
 This distribution contains the optional connection pool package
-``psycopg_pool``.
+`psycopg_pool`__.
+
+.. __: https://www.psycopg.org/psycopg3/docs/advanced/pool.html
+
+This package is kept separate from the main ``psycopg`` package because it is
+likely that it will follow a different release cycle.
 
 You can also install this package using::
 
@@ -13,6 +18,7 @@ more details.
 
 .. __: https://github.com/psycopg/psycopg#readme
 .. __: https://www.psycopg.org/psycopg3/docs/basic/install.html
+       #installing-the-connection-pool
 
 
 Copyright (C) 2020-2021 The Psycopg Team
index a68d3162d75ca671794da4982be18ce2044ef253..8a0bb2ef678745cd24b1770a7db7de4a725d4556 100644 (file)
@@ -10,7 +10,7 @@ project_urls =
     Homepage = https://psycopg.org/
     Code = https://github.com/psycopg/psycopg
     Issue Tracker = https://github.com/psycopg/psycopg/issues
-    Download = https://pypi.org/project/psycopg/
+    Download = https://pypi.org/project/psycopg-pool/
 
 classifiers =
     Development Status :: 3 - Alpha