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