Skip to content

Commit 278f053

Browse files
committed
Use psycopg2-binary
1 parent bcb12d9 commit 278f053

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

.idea/runConfigurations/client.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

mrmat_python_api_flask/cui.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,11 @@ def main() -> int:
5353
required=False,
5454
default=None,
5555
help='Fully qualified path to instance directory')
56-
parser.add_argument('--db',
57-
dest='db',
56+
parser.add_argument('--dsn',
57+
dest='dsn',
5858
required=False,
5959
default=None,
60-
help='Database URI')
60+
help='Database DSN')
6161
parser.add_argument('--oidc-secrets',
6262
dest='oidc_secrets',
6363
required=False,
@@ -68,8 +68,8 @@ def main() -> int:
6868
overrides = {'DEBUG': args.debug}
6969
if args.oidc_secrets is not None:
7070
overrides['OIDC_CLIENT_SECRETS'] = args.oidc_secrets
71-
if args.db is not None:
72-
overrides['SQLALCHEMY_DATABASE_URI'] = args.db
71+
if args.dsn is not None:
72+
overrides['SQLALCHEMY_DATABASE_URI'] = args.dsn
7373

7474
app = create_app(config_override=overrides, instance_path=args.instance_path)
7575
with app.app_context():

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Flask-Migrate~=3.1.0 # MIT
1212
flask-smorest~=0.35.0 # MIT
1313
Flask-Marshmallow~=0.14.0 # MIT
1414
marshmallow-sqlalchemy~=0.26.0 # MIT
15-
psycopg2~=2.9.1 # LGPL with exceptions
15+
psycopg2-binary~=2.9.1 # LGPL with exceptions
1616
Flask-OIDC~=1.4.0 # MIT
1717
requests_oauthlib~=1.3.0 # ISC
1818

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ install_requires =
2121
Flask-Migrate~=3.1.0
2222
Flask-Marshmallow~=0.14.0
2323
marshmallow-sqlalchemy~=0.26.0
24-
psycopg2-binary
24+
psycopg2-binary~=2.9.1
2525
Flask-OIDC~=1.4.0
2626
requests_oauthlib~=1.3.0
2727
rich~=10.14.0

0 commit comments

Comments
 (0)