Skip to content

Commit

Permalink
Merge pull request #43 from yanokwa/pyxform-2-fix
Browse files Browse the repository at this point in the history
Update to pyxform 2.0.0, Flask 3.0.0
  • Loading branch information
lognaturel authored Dec 6, 2023
2 parents fcea408 + d5ce23c commit 96f6da0
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 22 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
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Flask==2.3.3
pyxform==1.12.2
Flask==3.0.0
pyxform==2.0.0
gunicorn==21.2.0
Loading

0 comments on commit 96f6da0

Please sign in to comment.