piped
This commit is contained in:
parent
949086d605
commit
8ac72bda5b
@ -1,5 +1,5 @@
|
||||
from persistance.populate import init_db
|
||||
from webapp import app
|
||||
from src.persistance import init_db
|
||||
from src.webapp import app
|
||||
|
||||
if __name__ == "__main__":
|
||||
init_db(app)
|
||||
|
30
setup.py
Normal file
30
setup.py
Normal 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)
|
0
src/persistance/__init__.py
Normal file
0
src/persistance/__init__.py
Normal file
@ -1,7 +1,7 @@
|
||||
import os
|
||||
|
||||
from config import SQLALCHEMY_DATABASE_URI, MAKEDIRS, DATABASE_FILE
|
||||
from persistance.models import db
|
||||
from src.persistance.models import db
|
||||
|
||||
|
||||
def populate_db(app):
|
Loading…
Reference in New Issue
Block a user