1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
#!/usr/bin/env python3
"""
PostgreSQL database adapter for Python - pure Python package
"""
# Copyright (C) 2020 The Psycopg Team
import os
from setuptools import setup
# Move to the directory of setup.py: executing this file from another location
# (e.g. from the project root) will fail
here = os.path.abspath(os.path.dirname(__file__))
if os.path.abspath(os.getcwd()) != here:
os.chdir(here)
# Only for release 3.1.7. Not building binary packages because Scaleway
# has no runner available, but psycopg-binary 3.1.6 should work as well
# as the only change is in rows.py.
version = "3.1.7"
ext_versions = ">= 3.1.6, <= 3.1.7"
extras_require = {
# Install the C extension module (requires dev tools)
"c": [
f"psycopg-c {ext_versions}",
],
# Install the stand-alone C extension module
"binary": [
f"psycopg-binary {ext_versions}",
],
# Install the connection pool
"pool": [
"psycopg-pool",
],
# Requirements to run the test suite
"test": [
"mypy >= 0.990",
"pproxy >= 2.7",
"pytest >= 6.2.5",
"pytest-asyncio >= 0.17",
"pytest-cov >= 3.0",
"pytest-randomly >= 3.10",
],
# Requirements needed for development
"dev": [
"black >= 22.3.0",
"dnspython >= 2.1",
"flake8 >= 4.0",
"mypy >= 0.990",
"types-setuptools >= 57.4",
"wheel >= 0.37",
],
# Requirements needed to build the documentation
"docs": [
"Sphinx >= 5.0",
"furo == 2022.6.21",
"sphinx-autobuild >= 2021.3.14",
"sphinx-autodoc-typehints >= 1.12",
],
}
setup(
version=version,
extras_require=extras_require,
)
|