`!psycopg2` or any other `DB API 2.0`__ database adapter, but allows to use
more modern PostgreSQL and Python features, such as:
+- Strict Strong Typing
- :ref:`asynchronous support <async>`
- :ref:`server-side parameters binding <server-side-binding>`
- :ref:`binary communication <binary-data>`
+++ /dev/null
-include README.rst LICENSE.txt
python_requires = >= 3.6
packages = find:
zip_safe = False
-include_package_data = True
install_requires =
typing_extensions
+
+
+[options.package_data]
+psycopg3_c = py.typed
+++ /dev/null
-include README.rst LICENSE.txt
setup_requires = Cython >= 3.0a5
packages = find:
zip_safe = False
-include_package_data = True
version=version,
ext_modules=[pgext, pqext],
cmdclass={"build_ext": psycopg3_build_ext},
+ # For some reason pacakge_data doesn't work in setup.cfg
+ package_data={
+ "psycopg3_c": ["py.typed"],
+ "": ["*.pyx", "*.pxd", "*.pyi"],
+ },
)