This repository has been archived by the owner on Oct 25, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
72 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
.idea/ | ||
config.json | ||
timetracker.db | ||
venv/ | ||
venv/ | ||
build/ | ||
dist/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/usr/bin/env bash | ||
rm -rf build dist | ||
pyinstaller -F timetracker.spec | ||
dist/timetracker |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# -*- mode: python -*- | ||
|
||
block_cipher = None | ||
|
||
|
||
a = Analysis(['timetracker/__main__.py'], | ||
pathex=['/home/travis/PycharmProjects/timetracker'], | ||
binaries=[], | ||
datas=[], | ||
hiddenimports=[ | ||
'sqlalchemy', | ||
'flask', | ||
'flask_table', | ||
'psycopg2-binary', | ||
'pymysql', | ||
'mysqlclient', | ||
'.' | ||
], | ||
hookspath=[], | ||
runtime_hooks=[], | ||
excludes=[], | ||
win_no_prefer_redirects=False, | ||
win_private_assemblies=False, | ||
cipher=block_cipher, | ||
noarchive=False) | ||
|
||
pyz = PYZ(a.pure, a.zipped_data, | ||
cipher=block_cipher) | ||
|
||
exe = EXE(pyz, | ||
a.scripts, | ||
a.binaries, | ||
a.zipfiles, | ||
a.datas, | ||
[], | ||
name='timetracker', | ||
debug=False, | ||
bootloader_ignore_signals=False, | ||
strip=False, | ||
upx=True, | ||
runtime_tmpdir=None, | ||
console=True) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,21 @@ | ||
from . import web | ||
from . import console | ||
from . import test | ||
from timetracker import web | ||
from timetracker import console | ||
from timetracker import test | ||
import argparse | ||
|
||
|
||
argparser = argparse.ArgumentParser() | ||
argparser.add_argument("--web", help="Starts the web server instead of using console interaction.", action='store_true') | ||
argparser.add_argument("--test", help="Runs the test suite", action='store_true') | ||
args = argparser.parse_args() | ||
if args.web: | ||
web.start() | ||
elif args.test: | ||
test.run() | ||
else: | ||
console.start() | ||
def main(): | ||
argparser = argparse.ArgumentParser() | ||
argparser.add_argument("--web", help="Starts the web server instead of using console interaction.", action='store_true') | ||
argparser.add_argument("--test", help="Runs the test suite", action='store_true') | ||
args = argparser.parse_args() | ||
if args.web: | ||
web.start() | ||
elif args.test: | ||
test.run() | ||
else: | ||
console.start() | ||
|
||
|
||
if __name__ == '__main__': | ||
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
from .signer import sign | ||
from timetracker.signer import sign | ||
|
||
|
||
def start(): | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
from . import db, signer | ||
from timetracker import db, signer | ||
import time | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters