Skip to content

Commit

Permalink
Remove zope.sqlalchemy and transactions as we don't use them
Browse files Browse the repository at this point in the history
Signed-off-by: Aurélien Bompard <[email protected]>
  • Loading branch information
abompard committed Apr 18, 2024
1 parent b2e8f32 commit caa03ad
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 26 deletions.
23 changes: 1 addition & 22 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,7 @@ pyramid = "^2.0.2"
pyramid-mako = "^1.1.0"
tahrir-api = "^1.0.0"
sqlalchemy = "^2.0.29"
transaction = "^4.0"
pyramid-tm = "^2.5"
zope-sqlalchemy = "^3.1"
qrcode = "^7.4.2"
dogpile-cache = "^1.3.2"
docutils = "^0.20.1 || ^0.21.0"
Expand Down
2 changes: 0 additions & 2 deletions tahrir/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
from sqlalchemy import create_engine
from sqlalchemy.orm import scoped_session, sessionmaker
from tahrir_api.dbapi import TahrirDatabase
from zope.sqlalchemy import register

from . import notifications
from .app import get_root
Expand All @@ -35,7 +34,6 @@ def main(global_config, **settings):
bind=create_engine(settings["sqlalchemy.url"]),
)
)
register(session_cls)

def get_db(request):
"""Database retrieval function to be added to the request for
Expand Down

0 comments on commit caa03ad

Please sign in to comment.