Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to pyxform 2.0.0, Flask 3.0.0 #43

Merged
merged 2 commits into from
Dec 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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