diff options
-rw-r--r-- | assignment-list | 10 | ||||
-rw-r--r-- | assignment_list.egg-info/PKG-INFO | 10 | ||||
-rw-r--r-- | assignment_list.egg-info/SOURCES.txt | 20 | ||||
-rw-r--r-- | assignment_list.egg-info/dependency_links.txt | 1 | ||||
-rw-r--r-- | assignment_list.egg-info/requires.txt | 1 | ||||
-rw-r--r-- | assignment_list.egg-info/top_level.txt | 1 | ||||
-rw-r--r-- | dist/assignment-list-0.0.1.linux-x86_64.tar.gz | bin | 0 -> 22515 bytes | |||
-rw-r--r-- | dist/assignment_list-0.0.1-py3.6.egg | bin | 0 -> 35127 bytes | |||
-rw-r--r-- | files.txt | 2 | ||||
-rw-r--r-- | pyproject.toml | 3 | ||||
-rw-r--r-- | setup.cfg | 12 | ||||
-rw-r--r-- | setup.py | 3 | ||||
-rw-r--r-- | src/__init__.py | 0 | ||||
-rw-r--r-- | src/add_entry_form.py (renamed from add_entry_form.py) | 6 | ||||
-rw-r--r-- | src/add_group_form.py (renamed from add_group_form.py) | 6 | ||||
-rw-r--r-- | src/config.py (renamed from config.py) | 2 | ||||
-rw-r--r-- | src/db_sqlite.py (renamed from db_sqlite.py) | 6 | ||||
-rw-r--r-- | src/edit_entry_form.py (renamed from edit_entry_form.py) | 6 | ||||
-rw-r--r-- | src/edit_group_form.py (renamed from edit_group_form.py) | 6 | ||||
-rw-r--r-- | src/entry.py (renamed from entry.py) | 0 | ||||
-rw-r--r-- | src/globals.py (renamed from globals.py) | 0 | ||||
-rw-r--r-- | src/group.py (renamed from group.py) | 2 | ||||
-rw-r--r--[-rwxr-xr-x] | src/main.py (renamed from assignment-list.py) | 16 | ||||
-rw-r--r-- | src/preferences_dialog.py (renamed from preferences_dialog.py) | 2 |
24 files changed, 89 insertions, 26 deletions
diff --git a/assignment-list b/assignment-list new file mode 100644 index 0000000..cb0af8a --- /dev/null +++ b/assignment-list @@ -0,0 +1,10 @@ +#!/usr/bin/env python3 +from __future__ import absolute_import +import sys + +from PyQt5.QtWidgets import QApplication +from src.main import AssignmentList as main + +app = QApplication(sys.argv) +window = main() +sys.exit(app.exec_()) diff --git a/assignment_list.egg-info/PKG-INFO b/assignment_list.egg-info/PKG-INFO new file mode 100644 index 0000000..363bb92 --- /dev/null +++ b/assignment_list.egg-info/PKG-INFO @@ -0,0 +1,10 @@ +Metadata-Version: 1.0 +Name: assignment-list +Version: 0.0.1 +Summary: UNKNOWN +Home-page: UNKNOWN +Author: Louie S +Author-email: UNKNOWN +License: UNKNOWN +Description: UNKNOWN +Platform: UNKNOWN diff --git a/assignment_list.egg-info/SOURCES.txt b/assignment_list.egg-info/SOURCES.txt new file mode 100644 index 0000000..c9c9420 --- /dev/null +++ b/assignment_list.egg-info/SOURCES.txt @@ -0,0 +1,20 @@ +assignment-list +setup.cfg +setup.py +assignment_list.egg-info/PKG-INFO +assignment_list.egg-info/SOURCES.txt +assignment_list.egg-info/dependency_links.txt +assignment_list.egg-info/requires.txt +assignment_list.egg-info/top_level.txt +src/__init__.py +src/add_entry_form.py +src/add_group_form.py +src/config.py +src/db_sqlite.py +src/edit_entry_form.py +src/edit_group_form.py +src/entry.py +src/globals.py +src/group.py +src/main.py +src/preferences_dialog.py
\ No newline at end of file diff --git a/assignment_list.egg-info/dependency_links.txt b/assignment_list.egg-info/dependency_links.txt new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/assignment_list.egg-info/dependency_links.txt @@ -0,0 +1 @@ + diff --git a/assignment_list.egg-info/requires.txt b/assignment_list.egg-info/requires.txt new file mode 100644 index 0000000..2d07ca0 --- /dev/null +++ b/assignment_list.egg-info/requires.txt @@ -0,0 +1 @@ +PyQt5 diff --git a/assignment_list.egg-info/top_level.txt b/assignment_list.egg-info/top_level.txt new file mode 100644 index 0000000..85de9cf --- /dev/null +++ b/assignment_list.egg-info/top_level.txt @@ -0,0 +1 @@ +src diff --git a/dist/assignment-list-0.0.1.linux-x86_64.tar.gz b/dist/assignment-list-0.0.1.linux-x86_64.tar.gz Binary files differnew file mode 100644 index 0000000..f93884c --- /dev/null +++ b/dist/assignment-list-0.0.1.linux-x86_64.tar.gz diff --git a/dist/assignment_list-0.0.1-py3.6.egg b/dist/assignment_list-0.0.1-py3.6.egg Binary files differnew file mode 100644 index 0000000..b339413 --- /dev/null +++ b/dist/assignment_list-0.0.1-py3.6.egg diff --git a/files.txt b/files.txt new file mode 100644 index 0000000..c04aaa4 --- /dev/null +++ b/files.txt @@ -0,0 +1,2 @@ +/usr/local/lib/python3.6/site-packages/assignment_list-0.0.1-py3.6.egg +/usr/local/bin/assignment-list diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..9787c3b --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["setuptools", "wheel"] +build-backend = "setuptools.build_meta" diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..7b08ac0 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,12 @@ +[metadata] +name = assignment-list +version = 0.0.1 +author = Louie S + +[options] +packages = + src +scripts = + assignment-list +install_requires = + PyQt5 diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..6068493 --- /dev/null +++ b/setup.py @@ -0,0 +1,3 @@ +from setuptools import setup + +setup() diff --git a/src/__init__.py b/src/__init__.py new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/src/__init__.py diff --git a/add_entry_form.py b/src/add_entry_form.py index a5cf7c2..9550108 100644 --- a/add_entry_form.py +++ b/src/add_entry_form.py @@ -2,9 +2,9 @@ import sys from PyQt5.QtWidgets import QApplication, QCheckBox, QDateTimeEdit, QDialog, QFormLayout, QHBoxLayout, QLabel, QLineEdit, QMessageBox, QPushButton from PyQt5.QtGui import QFont from PyQt5.QtCore import QDate, Qt -from entry import Entry -Globals = __import__("globals") -DB = __import__("db_sqlite") +from src.entry import Entry +import src.globals as Globals +import src.db_sqlite as DB class addEntryForm(QDialog): def __init__(self, parent): diff --git a/add_group_form.py b/src/add_group_form.py index f667b66..b7144d0 100644 --- a/add_group_form.py +++ b/src/add_group_form.py @@ -3,9 +3,9 @@ from PyQt5.QtWidgets import QApplication, QComboBox, QDialog, QFormLayout, QHBox from PyQt5.QtGui import QFont from PyQt5.QtCore import Qt -from add_entry_form import Globals -from group import Group -DB = __import__("db_sqlite") +import src.globals as Globals +from src.group import Group +import src.db_sqlite as DB class addGroupForm(QDialog): """ diff --git a/config.py b/src/config.py index da40ed4..2c80716 100644 --- a/config.py +++ b/src/config.py @@ -7,7 +7,7 @@ import configparser import os import sys -Globals = __import__("globals") +import src.globals as Globals class Config(): def __init__(self): diff --git a/db_sqlite.py b/src/db_sqlite.py index af7f185..88a64c2 100644 --- a/db_sqlite.py +++ b/src/db_sqlite.py @@ -3,9 +3,9 @@ import sys from time import strptime from PyQt5.QtCore import QDate from PyQt5.QtSql import QSqlDatabase, QSqlQuery -Globals = __import__("globals") -from group import Group -from entry import Entry +import src.globals as Globals +from src.group import Group +from src.entry import Entry def initDB(): """ diff --git a/edit_entry_form.py b/src/edit_entry_form.py index 3e3503b..55c388c 100644 --- a/edit_entry_form.py +++ b/src/edit_entry_form.py @@ -3,9 +3,9 @@ from PyQt5.QtWidgets import QApplication, QCheckBox, QDateTimeEdit, QDialog, QFo from PyQt5.QtGui import QFont from PyQt5.QtCore import QDate, Qt -Globals = __import__("globals") -from entry import Entry -DB = __import__("db_sqlite") +import src.globals as Globals +from src.entry import Entry +import src.db_sqlite as DB class editEntryForm(QDialog): """ diff --git a/edit_group_form.py b/src/edit_group_form.py index faa676c..c4a8622 100644 --- a/edit_group_form.py +++ b/src/edit_group_form.py @@ -3,9 +3,9 @@ from PyQt5.QtWidgets import QApplication, QComboBox, QDialog, QFormLayout, QHBox from PyQt5.QtGui import QFont from PyQt5.QtCore import Qt -Globals = __import__("globals") -from group import Group -DB = __import__("db_sqlite") +import src.globals as Globals +from src.group import Group +import src.db_sqlite as DB class editGroupForm(QDialog): """ diff --git a/globals.py b/src/globals.py index 61c6156..61c6156 100644 --- a/globals.py +++ b/src/globals.py @@ -1,7 +1,7 @@ from PyQt5.QtCore import Qt from PyQt5.QtGui import QFont from PyQt5.QtWidgets import QLabel, QVBoxLayout -Globals = __import__("globals") +import src.globals as Globals class Group: def __init__(self, id, name, column = "left", link = "", hidden = False): diff --git a/assignment-list.py b/src/main.py index 1219661..dfdf8a7 100755..100644 --- a/assignment-list.py +++ b/src/main.py @@ -4,14 +4,14 @@ import time from PyQt5.QtWidgets import QAction, QApplication, QGridLayout, QHBoxLayout, QLabel, QMainWindow, QMenu, QMessageBox, QScrollArea, QToolBar, QVBoxLayout, QWidget from PyQt5.QtGui import QCursor, QFont from PyQt5.QtCore import QDate, Qt -from config import Config -from preferences_dialog import PreferencesDialog -from add_group_form import addGroupForm -from edit_group_form import editGroupForm -from add_entry_form import addEntryForm -from edit_entry_form import editEntryForm -Globals = __import__("globals") -DB = __import__("db_sqlite") +from src.config import Config +from src.preferences_dialog import PreferencesDialog +from src.add_group_form import addGroupForm +from src.edit_group_form import editGroupForm +from src.add_entry_form import addEntryForm +from src.edit_entry_form import editEntryForm +import src.globals as Globals +import src.db_sqlite as DB class AssignmentList(QMainWindow): def __init__(self): diff --git a/preferences_dialog.py b/src/preferences_dialog.py index df192ba..e8292d6 100644 --- a/preferences_dialog.py +++ b/src/preferences_dialog.py @@ -1,6 +1,6 @@ import sys from PyQt5.QtWidgets import QApplication, QDialog, QFileDialog, QFormLayout, QHBoxLayout, QLineEdit, QPushButton, QTabWidget, QVBoxLayout, QWidget -from config import Config +from src.config import Config class PreferencesDialog(QDialog): """ |