add deployment configs and tools

This commit is contained in:
moscap
2021-06-02 14:11:10 +03:00
parent bd1d2c65b9
commit 75e1d5c13e
10 changed files with 54 additions and 7 deletions

5
.gitignore vendored
View File

@@ -67,3 +67,8 @@ target/
tmp* tmp*
.env* .env*
venv* venv*
# Doit
*.bak
*.dat
*.dir

11
dodo.py Normal file
View File

@@ -0,0 +1,11 @@
#!usr/bin/env python3
'''
'''
import glob
def task_wheel():
"""Create bynary wheel distribution"""
return {
'actions': ['python3 -m build -w']
}

0
frontend/__init__.py Normal file
View File

8
frontend/__main__.py Normal file
View File

@@ -0,0 +1,8 @@
#!/usr/bin/env python3
"""django-todo application launcher"""
from .todo_tk import Application
if __name__ == "__main__":
app = Application()
app.main(app.login())

View File

@@ -1,5 +1,5 @@
import random import random
from user import User from .user import User
def print_lists(lists): def print_lists(lists):

View File

@@ -1,6 +1,6 @@
import tkinter as tk import tkinter as tk
from user import User from .user import User
import message from . import message
class LoginFrame(tk.Frame): class LoginFrame(tk.Frame):

View File

@@ -2,9 +2,9 @@
import sys import sys
import tkinter as tk import tkinter as tk
from login import LoginFrame from .login import LoginFrame
from workspace import WorkSpaceFrame from .workspace import WorkSpaceFrame
from user import User from .user import User
if "win" in sys.platform.lower(): if "win" in sys.platform.lower():
DEFAULT_URL = "http://localhost:8000" DEFAULT_URL = "http://localhost:8000"

View File

@@ -7,7 +7,7 @@ from pathlib import Path
import json import json
from api import UserApi from .api import UserApi
LIST_UPDATEBLE = ["title"] LIST_UPDATEBLE = ["title"]
TODO_ITEM_UPDATEBLE = ["text", "finished"] TODO_ITEM_UPDATEBLE = ["text", "finished"]

View File

@@ -21,3 +21,15 @@ exclude = '''
| profiling | profiling
)/ )/
''' '''
[build-system]
requires = [
"setuptools",
"wheel",
"requests",
"build",
"coverage",
"doit"
]
build-backend = "setuptools.build_meta"

11
setup.cfg Normal file
View File

@@ -0,0 +1,11 @@
[metadata]
name = django-todo
version = 0.0.1
[options]
packages = frontend
install_requires =
requests; python_version >= "3.6"
[options.package_data]
frontend = */*/django-todo.mo