xref: /sqlalchemy/setup.cfg (revision 214c6d6f)
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 in 'x86_64 aarch64 ppc64le amd64 win32'
44
45[options.extras_require]
46asyncio =
47    greenlet!=0.4.17;python_version>="3"
48mypy =
49    mypy >= 0.800;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    mysqlconnector
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"
77aiosqlite =
78    %(asyncio)s
79    aiosqlite;python_version>="3"
80sqlcipher =
81    sqlcipher3_binary;python_version>="3"
82
83[egg_info]
84tag_build = dev
85
86[options.packages.find]
87where = lib
88
89[tool:pytest]
90addopts = --tb native -v -r sfxX --maxfail=25 -p no:warnings -p no:logging
91python_files = test/*test_*.py
92
93[upload]
94sign = 1
95identity = C4DAFEE1
96
97[flake8]
98show-source = false
99enable-extensions = G
100
101# E203 is due to https://github.com/PyCQA/pycodestyle/issues/373
102ignore =
103    A003,
104    D,
105    E203,E305,E711,E712,E721,E722,E741,
106    N801,N802,N806,
107    RST304,RST303,RST299,RST399,
108    W503,W504
109exclude = .venv,.git,.tox,dist,doc,*egg,build
110import-order-style = google
111application-import-names = sqlalchemy,test
112per-file-ignores =
113                **/__init__.py:F401
114                lib/sqlalchemy/events.py:F401
115                lib/sqlalchemy/schema.py:F401
116                lib/sqlalchemy/types.py:F401
117                lib/sqlalchemy/sql/expression.py:F401
118
119[mypy]
120# min mypy version 0.800
121strict = True
122incremental = True
123plugins = sqlalchemy.ext.mypy.plugin
124
125[mypy-sqlalchemy.*]
126ignore_errors = True
127
128[mypy-sqlalchemy.ext.mypy.*]
129ignore_errors = False
130
131
132[sqla_testing]
133requirement_cls = test.requirements:DefaultRequirements
134profile_file = test/profiles.txt
135
136# name of a "loopback" link set up on the oracle database.
137# to create this, suppose your DB is scott/tiger@xe.  You'd create it
138# like:
139# create public database link test_link connect to scott identified by tiger
140# using 'xe';
141oracle_db_link = test_link
142
143# host name of a postgres database that has the postgres_fdw extension.
144# to create this run:
145# CREATE EXTENSION postgres_fdw;
146# GRANT USAGE ON FOREIGN DATA WRAPPER postgres_fdw TO public;
147# this can be localhost to create a loopback foreign table
148# postgres_test_db_link = localhost
149
150[db]
151default = sqlite:///:memory:
152sqlite = sqlite:///:memory:
153aiosqlite = sqlite+aiosqlite:///:memory:
154sqlite_file = sqlite:///querytest.db
155aiosqlite_file = sqlite+aiosqlite:///async_querytest.db
156pysqlcipher_file = sqlite+pysqlcipher://:test@/querytest.db.enc
157postgresql = postgresql://scott:tiger@127.0.0.1:5432/test
158asyncpg = postgresql+asyncpg://scott:tiger@127.0.0.1:5432/test
159asyncpg_fallback = postgresql+asyncpg://scott:tiger@127.0.0.1:5432/test?async_fallback=true
160pg8000 = postgresql+pg8000://scott:tiger@127.0.0.1:5432/test
161postgresql_psycopg2cffi = postgresql+psycopg2cffi://scott:tiger@127.0.0.1:5432/test
162mysql = mysql://scott:tiger@127.0.0.1:3306/test?charset=utf8mb4
163pymysql = mysql+pymysql://scott:tiger@127.0.0.1:3306/test?charset=utf8mb4
164aiomysql = mysql+aiomysql://scott:tiger@127.0.0.1:3306/test?charset=utf8mb4
165aiomysql_fallback = mysql+aiomysql://scott:tiger@127.0.0.1:3306/test?charset=utf8mb4&async_fallback=true
166mariadb = mariadb://scott:tiger@127.0.0.1:3306/test
167mssql = mssql+pyodbc://scott:tiger^5HHH@mssql2017:1433/test?driver=ODBC+Driver+13+for+SQL+Server
168mssql_pymssql = mssql+pymssql://scott:tiger@ms_2008
169docker_mssql = mssql+pymssql://scott:tiger^5HHH@127.0.0.1:1433/test
170oracle = oracle://scott:tiger@127.0.0.1:1521
171oracle8 = oracle://scott:tiger@127.0.0.1:1521/?use_ansi=0
172firebird = firebird://sysdba:masterkey@localhost//Users/classic/foo.fdb
173