Skip to content

Commit

Permalink
Update dependencies, fix tests, fix macOS port bug
Browse files Browse the repository at this point in the history
  • Loading branch information
yanokwa committed Dec 5, 2023
1 parent dee2840 commit d5ce23c
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 21 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ FLASK_APP=app/main.py:app FLASK_DEBUG=1 flask run
# Run in Docker
```
docker build --tag pyxform-http .
docker run --detach --publish 5000:80 pyxform-http
docker run --detach --publish 5001:80 pyxform-http
```

# Test forms
Expand All @@ -23,4 +23,8 @@ docker run --detach --publish 5000:80 pyxform-http
bash test.sh
```

The test script builds, runs, stops, and removes a pyxform-http-tester container
The test script builds, runs, stops, and removes a pyxform-http-tester container

# Notes

* We use port 5001 because 5000 is used by ControlCenter on macOS.
3 changes: 2 additions & 1 deletion app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
from tempfile import TemporaryDirectory
import os.path

from flask import Flask, jsonify, request, escape
from flask import Flask, jsonify, request
from markupsafe import escape
from pyxform import xls2xform
from uuid import uuid4 as uuid
from urllib.parse import unquote
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Flask==2.3.3
Flask==3.0.0
pyxform==2.0.0
gunicorn==21.2.0
Loading

0 comments on commit d5ce23c

Please sign in to comment.