-
Notifications
You must be signed in to change notification settings - Fork 57
/
setup.py
49 lines (45 loc) · 2.03 KB
/
setup.py
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
import os
import re
from setuptools import setup, find_packages
with open(os.path.join(os.path.dirname(__file__), "sqlalchemy_cockroachdb", "__init__.py"), encoding='UTF-8') as v:
VERSION = re.compile(r'.*__version__ = "(.*?)"', re.S).match(v.read()).group(1)
with open(os.path.join(os.path.dirname(__file__), "README.md"), encoding='UTF-8') as f:
README = f.read()
setup(
name="sqlalchemy-cockroachdb",
version=VERSION,
author="Cockroach Labs",
author_email="[email protected]",
url="https://github.com/cockroachdb/sqlalchemy-cockroachdb",
description="CockroachDB dialect for SQLAlchemy",
long_description=README,
long_description_content_type="text/markdown",
license="http://www.apache.org/licenses/LICENSE-2.0",
classifiers=[
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
],
keywords="SQLAlchemy CockroachDB",
project_urls={
"Documentation": "https://github.com/cockroachdb/sqlalchemy-cockroachdb/wiki",
"Source": "https://github.com/cockroachdb/sqlalchemy-cockroachdb",
"Tracker": "https://github.com/cockroachdb/sqlalchemy-cockroachdb/issues",
},
packages=find_packages(include=["sqlalchemy_cockroachdb"]),
include_package_data=True,
install_requires=["SQLAlchemy"],
zip_safe=False,
entry_points={
"sqlalchemy.dialects": [
"cockroachdb = sqlalchemy_cockroachdb.psycopg2:CockroachDBDialect_psycopg2",
"cockroachdb.psycopg2 = sqlalchemy_cockroachdb.psycopg2:CockroachDBDialect_psycopg2",
"cockroachdb.asyncpg = sqlalchemy_cockroachdb.asyncpg:CockroachDBDialect_asyncpg",
"cockroachdb.psycopg = sqlalchemy_cockroachdb.psycopg:CockroachDBDialect_psycopg",
],
},
)