Files
CTFd/development.txt
Kevin Chung 2bc66c1ecb Pool pubsub connections for notifications (#1626)
* Add a `listen()` method to `CTFd.utils.events.EventManager` and `CTFd.utils.events.RedisEventManager`. 
  * This method should implement subscription for a CTFd worker to whatever underlying notification system there is. This should be implemented with gevent or a background thread.
  * The `subscribe()` method (which used to also implement the functionality of the new `listen()` function) now only handles passing notifications from CTFd to the browser. This should also be implemented with gevent or a background thread. 
* Pool PubSub connections to Redis behind gevent. This improves the notification system by not having a pubsub connection per browser but instead per CTFd worker. This should reduce the difficulty in deploying the Notification system.
* Closes #1622 
* Make gevent default in serve.py and add a `--disable-gevent` switch in serve.py
* Revert to recommending `serve.py` first in README. `flask run` works but we don't get a lot of control.
* Add `tenacity` library for retrying logic
* Add `pytest-sugar` for slightly prettier pytest output
2020-09-01 12:37:03 -04:00

23 lines
397 B
Plaintext

-r requirements.txt
pytest==5.4.2
pytest-randomly==3.4.0
coverage==5.1
flake8==3.8.2
freezegun==0.3.15
psycopg2==2.7.5
psycopg2-binary==2.7.5
codecov==2.1.7
moto==1.3.14
bandit==1.6.2
flask_profiler==1.8.1
pytest-xdist==1.32.0
pytest-cov==2.9.0
sphinx_rtd_theme==0.4.3
flask-debugtoolbar==0.11.0
isort==4.3.21
flake8-isort==3.0.0
Faker==4.1.0
pipdeptree==0.13.2
black==19.10b0
pytest-sugar==0.9.4