Skip to content

Commit 21e4ab9

Browse files
authored
chore: drop flask dependency (#166)
* GPT idea * copy over GPT version * serving template and static content * making progress * thread through diff options * set up test script with nodemon * fix pdiff endpoint * cleanup * stop logging all requests * more cleanup * switch to regex for path parsing * drop the dep * remove one more mention * update test-gitwebdiff script
1 parent ba220a9 commit 21e4ab9

File tree

8 files changed

+265
-303
lines changed

8 files changed

+265
-303
lines changed

requirements.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
flask==2.2.2
21
pytest==7.1.3
32
PyGithub==1.55
43
pillow
54
requests
65
binaryornot
76
black
87
unidiff==0.7.4
9-
Werkzeug==2.2.2

setup.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,10 @@
2222
packages=find_packages(exclude=['tests*']),
2323
install_requires=[
2424
'binaryornot',
25-
'flask==2.2.2',
2625
'pillow',
2726
'requests',
2827
'PyGithub==1.55',
2928
'unidiff==0.7.4',
30-
'Werkzeug==2.2.2',
3129
],
3230
include_package_data=True,
3331
package_data = {
@@ -37,7 +35,6 @@
3735
classifiers=[
3836
'Environment :: Console',
3937
'Environment :: Web Environment',
40-
'Framework :: Flask',
4138
'Development Status :: 4 - Beta',
4239
'Intended Audience :: Developers',
4340
'License :: OSI Approved :: Apache Software License',

test-gitwebdiff.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
11
#!/bin/bash
2-
export TESTING=true
32
export DEBUG=true
4-
export WEBDIFF_CONFIG=$(pwd)/testing.cfg
5-
export WEBDIFF_PORT=$(($RANDOM + 10000))
6-
export PYTHONPATH=.
73
./webdiff/gitwebdiff.py $*

test.sh

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
#!/bin/bash
2-
export WEBDIFF_CONFIG=$(pwd)/testing.cfg
3-
export WEBDIFF_PORT=$(($RANDOM + 10000))
4-
export PYTHONPATH=.
5-
./webdiff/app.py $*
2+
export DEBUG=true
3+
export WEBDIFF_PORT=6001
4+
export WEBDIFF_NO_OPEN=true
5+
6+
sleep 1 && open 'http://localhost:6001' &
7+
8+
npx nodemon \
9+
-w webdiff \
10+
--ext py,html,js \
11+
-x python \
12+
webdiff/app.py $*

0 commit comments

Comments
 (0)