-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathsetup.py
executable file
·77 lines (74 loc) · 2.86 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#!/usr/bin/env python
from setuptools import find_packages, setup
project = "microcosm-postgres"
version = "4.0.0"
setup(
name=project,
version=version,
description="Opinionated persistence with PostgreSQL",
author="Globality Engineering",
author_email="[email protected]",
url="https://github.com/globality-corp/microcosm-postgres",
packages=find_packages(exclude=["*.tests", "*.tests.*", "tests.*", "tests"]),
include_package_data=True,
zip_safe=False,
python_requires=">=3.11",
keywords="microcosm",
install_requires=[
"alembic>=1.0.0",
"microcosm>=4.0.0",
"microcosm-logging>=2.0.0",
"psycopg2-binary>=2.7.5",
"python-dateutil>=2.7.3",
"pytz>=2018.5",
"SQLAlchemy>=2.0.0",
"SQLAlchemy-Utils>=0.37.0",
],
setup_requires=[
],
dependency_links=[
],
extras_require={
"metrics": "microcosm-metrics>=3.0.0",
"encryption": [
"aws-encryption-sdk>=2.0.0",
"cryptography>=35",
],
"test": [
"aws-encryption-sdk>=2.0.0",
"cryptography>=35",
"microcosm-metrics>=3.0.0",
"coverage>=3.7.1",
"PyHamcrest>=1.8.5",
"pytest-cov>=3.0.0",
"pytest>=6.2.5",
"pytest-cov>=5.0.0",
],
"lint": [
"flake8",
"flake8-print",
"flake8-isort",
],
"typehinting": [
"mypy",
"types-psycopg2",
"types-python-dateutil",
"types-pytz",
],
},
entry_points={
"microcosm.factories": [
"default_engine_routing_strategy = microcosm_postgres.factories.engine_routing_strategy:DefaultEngineRoutingStrategy", # noqa: E501
"model_engine_routing_strategy = microcosm_postgres.factories.engine_routing_strategy:ModelEngineRoutingStrategy", # noqa: E501
"multi_tenant_encryptor = microcosm_postgres.encryption.factories:configure_encryptor [encryption]",
"multi_tenant_key_registry = microcosm_postgres.encryption.registry:MultiTenantKeyRegistry [encryption]",
"materials_manager = microcosm_postgres.encryption.providers:configure_materials_manager [encryption]",
"postgres = microcosm_postgres.factories.engine:configure_engine",
"postgres_store_metrics = microcosm_postgres.metrics:PostgresStoreMetrics",
"sessionmaker = microcosm_postgres.factories.sessionmaker:configure_sessionmaker",
"sessionmakers = microcosm_postgres.factories.sessionmakers:configure_sessionmakers",
"shards = microcosm_postgres.factories.shards:configure_shards",
"register_flask_context = microcosm_postgres.encryption.v2.encryptors:AwsKmsEncryptor.register_flask_context [encryption]", # noqa: E501
],
},
)