xref: /sqlalchemy/setup.cfg (revision ed78e679)
1[metadata]
2name = SQLAlchemy
3# version comes from setup.py; setuptools
4# can't read the "attr:" here without importing
5# until version 47.0.0 which is too recent
6
7description = Database Abstraction Library
8long_description = file: README.rst
9long_description_content_type = text/x-rst
10url = https://www.sqlalchemy.org
11author = Mike Bayer
12author_email = mike_mp@zzzcomputing.com
13license = MIT
14license_file = LICENSE
15classifiers =
16    Development Status :: 5 - Production/Stable
17    Intended Audience :: Developers
18    License :: OSI Approved :: MIT License
19    Operating System :: OS Independent
20    Programming Language :: Python
21    Programming Language :: Python :: 2
22    Programming Language :: Python :: 2.7
23    Programming Language :: Python :: 3
24    Programming Language :: Python :: 3.6
25    Programming Language :: Python :: 3.7
26    Programming Language :: Python :: 3.8
27    Programming Language :: Python :: 3.9
28    Programming Language :: Python :: 3.10
29    Programming Language :: Python :: Implementation :: CPython
30    Programming Language :: Python :: Implementation :: PyPy
31    Topic :: Database :: Front-Ends
32project_urls =
33    Documentation=https://docs.sqlalchemy.org
34    Issue Tracker=https://github.com/sqlalchemy/sqlalchemy/
35
36[options]
37packages = find:
38python_requires = >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*
39package_dir =
40    =lib
41
42install_requires =
43    importlib-metadata;python_version<"3.8"
44    greenlet != 0.4.17;python_version>='3' and (platform_machine=='aarch64' or (platform_machine=='ppc64le' or (platform_machine=='x86_64' or (platform_machine=='amd64' or (platform_machine=='AMD64' or (platform_machine=='win32' or platform_machine=='WIN32'))))))
45
46[options.extras_require]
47asyncio =
48    greenlet!=0.4.17;python_version>="3"
49mypy =
50    mypy >= 0.910;python_version>="3"
51    sqlalchemy2-stubs
52mssql = pyodbc
53mssql_pymssql = pymssql
54mssql_pyodbc = pyodbc
55mysql =
56    mysqlclient>=1.4.0,<2;python_version<"3"
57    mysqlclient>=1.4.0;python_version>="3"
58mysql_connector =
59    mysql-connector-python
60mariadb_connector =
61    mariadb>=1.0.1;python_version>="3"
62oracle =
63    cx_oracle>=7,<8;python_version<"3"
64    cx_oracle>=7;python_version>="3"
65postgresql = psycopg2>=2.7
66postgresql_pg8000 = pg8000>=1.16.6
67postgresql_asyncpg =
68    %(asyncio)s
69    asyncpg;python_version>="3"
70postgresql_psycopg2binary = psycopg2-binary
71postgresql_psycopg2cffi = psycopg2cffi
72pymysql =
73    pymysql;python_version>="3"
74    pymysql<1;python_version<"3"
75aiomysql =
76    %(asyncio)s
77    aiomysql;python_version>="3"
78asyncmy =
79    %(asyncio)s
80    asyncmy>=0.2.3;python_version>="3"
81aiosqlite =
82    %(asyncio)s
83    aiosqlite;python_version>="3"
84    typing_extensions!=3.10.0.1
85sqlcipher =
86    sqlcipher3_binary;python_version>="3"
87
88[egg_info]
89tag_build = dev
90
91[options.packages.find]
92where = lib
93
94[tool:pytest]
95addopts = --tb native -v -r sfxX --maxfail=250 -p no:warnings -p no:logging
96python_files = test/*test_*.py
97
98[upload]
99sign = 1
100identity = C4DAFEE1
101
102[flake8]
103show-source = false
104enable-extensions = G
105
106# E203 is due to https://github.com/PyCQA/pycodestyle/issues/373
107ignore =
108    A003,
109    D,
110    E203,E305,E711,E712,E721,E722,E741,
111    N801,N802,N806,
112    RST304,RST303,RST299,RST399,
113    W503,W504
114exclude = .venv,.git,.tox,dist,doc,*egg,build
115import-order-style = google
116application-import-names = sqlalchemy,test
117per-file-ignores =
118    **/__init__.py:F401
119    lib/sqlalchemy/events.py:F401
120    lib/sqlalchemy/schema.py:F401
121    lib/sqlalchemy/types.py:F401
122    lib/sqlalchemy/sql/expression.py:F401
123
124[mypy]
125# min mypy version 0.800
126strict = True
127incremental = True
128plugins = sqlalchemy.ext.mypy.plugin
129
130[mypy-sqlalchemy.*]
131ignore_errors = True
132
133[mypy-sqlalchemy.ext.mypy.*]
134ignore_errors = False
135
136
137[sqla_testing]
138requirement_cls = test.requirements:DefaultRequirements
139profile_file = test/profiles.txt
140
141# name of a "loopback" link set up on the oracle database.
142# to create this, suppose your DB is scott/tiger@xe.  You'd create it
143# like:
144# create public database link test_link connect to scott identified by tiger
145# using 'xe';
146oracle_db_link = test_link
147
148# host name of a postgres database that has the postgres_fdw extension.
149# to create this run:
150# CREATE EXTENSION postgres_fdw;
151# GRANT USAGE ON FOREIGN DATA WRAPPER postgres_fdw TO public;
152# this can be localhost to create a loopback foreign table
153# postgres_test_db_link = localhost
154
155[db]
156default = sqlite:///:memory:
157sqlite = sqlite:///:memory:
158aiosqlite = sqlite+aiosqlite:///:memory:
159sqlite_file = sqlite:///querytest.db
160aiosqlite_file = sqlite+aiosqlite:///async_querytest.db
161pysqlcipher_file = sqlite+pysqlcipher://:test@/querytest.db.enc
162postgresql = postgresql://scott:tiger@127.0.0.1:5432/test
163asyncpg = postgresql+asyncpg://scott:tiger@127.0.0.1:5432/test
164asyncpg_fallback = postgresql+asyncpg://scott:tiger@127.0.0.1:5432/test?async_fallback=true
165pg8000 = postgresql+pg8000://scott:tiger@127.0.0.1:5432/test
166postgresql_psycopg2cffi = postgresql+psycopg2cffi://scott:tiger@127.0.0.1:5432/test
167mysql = mysql://scott:tiger@127.0.0.1:3306/test?charset=utf8mb4
168pymysql = mysql+pymysql://scott:tiger@127.0.0.1:3306/test?charset=utf8mb4
169aiomysql = mysql+aiomysql://scott:tiger@127.0.0.1:3306/test?charset=utf8mb4
170aiomysql_fallback = mysql+aiomysql://scott:tiger@127.0.0.1:3306/test?charset=utf8mb4&async_fallback=true
171asyncmy = mysql+asyncmy://scott:tiger@127.0.0.1:3306/test?charset=utf8mb4
172asyncmy_fallback = mysql+asyncmy://scott:tiger@127.0.0.1:3306/test?charset=utf8mb4&async_fallback=true
173mariadb = mariadb://scott:tiger@127.0.0.1:3306/test
174mssql = mssql+pyodbc://scott:tiger^5HHH@mssql2017:1433/test?driver=ODBC+Driver+13+for+SQL+Server
175mssql_pymssql = mssql+pymssql://scott:tiger@ms_2008
176docker_mssql = mssql+pymssql://scott:tiger^5HHH@127.0.0.1:1433/test
177oracle = oracle://scott:tiger@127.0.0.1:1521
178oracle8 = oracle://scott:tiger@127.0.0.1:1521/?use_ansi=0
179