Compare commits

..

1 commit

Author SHA1 Message Date
Dennis Priskorn c709372d88 chore: requirements.txt: Add pinned versions 2024-08-28 09:51:11 +02:00
2 changed files with 14 additions and 48 deletions

View file

@ -1,35 +0,0 @@
#!/usr/bin/python3
from sqlalchemy.schema import CreateIndex, CreateTable
from matcher import database, model
DB_URL = "postgresql:///matcher"
database.init_db(DB_URL)
def create_db():
model.Base.metadata.create_all(database.session.get_bind())
def print_create_table(classes):
database.init_db(DB_URL)
engine = database.session.get_bind()
for cls in classes:
sql = str(CreateTable(cls.__table__).compile(engine))
print(sql.strip() + ";")
for index in cls.__table__.indexes:
sql = str(CreateIndex(index).compile(engine))
print(sql.strip() + ";")
# print_create_table([model.ItemIsA])
# print_create_table([model.EditSession])
# print_create_table([model.Changeset, model.ChangesetEdit, model.SkipIsA])
# print_create_table([model.User])
# print_create_table([model.Extract])
create_db()

View file

@ -1,13 +1,14 @@
flask flask==3.0.3
-e git+https://github.com/maxcountryman/flask-login.git#egg=Flask-Login -e git+https://github.com/maxcountryman/flask-login.git@26d12eaa99a18fc91e662ef0c8466245b8865c1c#egg=Flask-Login
GeoIP GeoIP==1.3.2
lxml lxml==5.3.0
maxminddb maxminddb==2.6.2
requests requests==2.32.3
sqlalchemy sqlalchemy==2.0.32
requests_oauthlib requests_oauthlib==2.0.0
geoalchemy2 geoalchemy2==0.15.2
simplejson simplejson==3.19.3
user_agents user_agents==2.2.0
num2words num2words==0.5.13
psycopg2 psycopg2==2.9.9