Skip to content

Commit

Permalink
v1.2
Browse files Browse the repository at this point in the history
1. Generate the release.
  • Loading branch information
cloudy-sfu committed Jun 7, 2023
1 parent a3443c8 commit a34d3f4
Show file tree
Hide file tree
Showing 5 changed files with 63 additions and 1 deletion.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ MANIFEST
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

## Usage

**Source code:**

1. Set the project root as the current folder in terminal.
2. Activate Python virtual environment if applicable.
3. Run the following script.
Expand All @@ -20,3 +22,7 @@ It occupies localhost 5000 port by default.

Read the [operation manual](manual.md) to preview software functions.

**Release:**

1. Download and unzip the release.
2. Open `homework_grader.exe`.
2 changes: 2 additions & 0 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from flask import Flask, render_template, request, send_file, redirect
import os
import json
import webbrowser

app = Flask(__name__)
assignments = './assignments/'
Expand Down Expand Up @@ -244,4 +245,5 @@ def analyze():


if __name__ == '__main__':
webbrowser.open_new_tab('http://localhost:5000')
app.run()
50 changes: 50 additions & 0 deletions app.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# -*- mode: python ; coding: utf-8 -*-


block_cipher = None


a = Analysis(
['app.py'],
pathex=[],
binaries=[('templates', 'templates')],
datas=[],
hiddenimports=[],
hookspath=[],
hooksconfig={},
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,
[],
exclude_binaries=True,
name='homework_grader',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
console=True,
disable_windowed_traceback=False,
argv_emulation=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None,
)
coll = COLLECT(
exe,
a.binaries,
a.zipfiles,
a.datas,
strip=False,
upx=True,
upx_exclude=[],
name='app',
)
5 changes: 5 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
altgraph==0.17.3
blinker==1.6.2
click==8.1.3
colorama==0.4.6
Expand All @@ -7,9 +8,13 @@ Jinja2==3.1.2
MarkupSafe==2.1.2
numpy==1.24.3
pandas==2.0.2
pefile==2023.2.7
pip-autoremove==0.10.0
pyinstaller==5.11.0
pyinstaller-hooks-contrib==2023.3
python-dateutil==2.8.2
pytz==2023.3
pywin32-ctypes==0.2.0
six==1.16.0
tzdata==2023.3
Werkzeug==2.3.4

0 comments on commit a34d3f4

Please sign in to comment.