maxcountryman / flask-seasurf

SeaSurf is a Flask extension for preventing cross-site request forgery (CSRF).
http://readthedocs.org/docs/flask-seasurf/
Other
190 stars 49 forks source link

New version for PyPi #135

Open john-kjj opened 1 year ago

john-kjj commented 1 year ago

Hello,

Are there plans to release a newer version to PyPi?

Current version on PyPi is v1.1.1 with warnings thrown when using seasurf with the latest version of Flask with regards to the deprecated flask._app_ctx_stack. I see that it has been fixed on GitHub, but in PyPi its still outdated. Thanks!

Anyone who needs this issue to be fixed while waiting you can do put the following into your requirements.txt file: Flask-SeaSurf @ https://github.com/maxcountryman/flask-seasurf/archive/refs/heads/main.tar.gz#sha256=64048ed1f01d6bf6ae369112eb70a21dcbbb6612eddd3a9069d8f49353c35400

or perform: pip install https://github.com/maxcountryman/flask-seasurf/archive/refs/heads/main.tar.gz

xenophonf commented 11 months ago

In case you're wondering how to do the above workaround, see https://stackoverflow.com/a/35998253.

For example, here's the dependency list in my project's pyproject.toml:

[project]
# name, version, etc.
dependencies = [
    "bootstrap-flask",
    "flask",
    "flask-seasurf @ git+https://github.com/maxcountryman/flask-seasurf@f383b48",
    "flask-talisman",
    "flask-wtf",
    "gunicorn",
    "lethbridge",
]