This commit is contained in:
Daniel Tsvetkov 2020-03-18 11:05:50 +01:00
parent 949086d605
commit 8ac72bda5b
7 changed files with 33 additions and 3 deletions

View File

@ -1,5 +1,5 @@
from persistance.populate import init_db from src.persistance import init_db
from webapp import app from src.webapp import app
if __name__ == "__main__": if __name__ == "__main__":
init_db(app) init_db(app)

30
setup.py Normal file
View File

@ -0,0 +1,30 @@
from setuptools import setup
def gen_from_file():
return [
'click==7.1.1',
'Flask==1.1.1',
'Flask-SQLAlchemy==2.4.1',
'itsdangerous==1.1.0',
'Jinja2==2.11.1',
'MarkupSafe==1.1.1',
'SQLAlchemy==1.3.15',
'Werkzeug==1.0.0',
]
# with open("requirements.txt") as f:
# return [line.strip() for line in f.readlines()]
setup(name='oshipka',
version='0.1',
description='oshipka',
url='http://gitlab.com/pisquared/oshipka',
author='Flying Circus',
install_requires=gen_from_file(),
author_email='',
license='MIT',
packages=['oshipka'],
package_dir={'oshipka': 'src/oshipka'},
package_data={'oshipka': ['data/*.db']},
zip_safe=False)

View File

View File

@ -1,7 +1,7 @@
import os import os
from config import SQLALCHEMY_DATABASE_URI, MAKEDIRS, DATABASE_FILE from config import SQLALCHEMY_DATABASE_URI, MAKEDIRS, DATABASE_FILE
from persistance.models import db from src.persistance.models import db
def populate_db(app): def populate_db(app):