#5 Drop flask_cache fallback
Merged 4 years ago by jskladan. Opened 4 years ago by frantisekz.

file modified
-2
@@ -19,8 +19,6 @@ 

  

  %prep

  %setup -q

- # We want Flask-Caching from pip and Flask-Cache from Fedora, see rhbz#1676914

- sed -i 's/Flask-Caching/Flask-Cache/g' setup.py

  

  %build

  %py3_build

file modified
+1 -7
@@ -20,13 +20,7 @@ 

  from flask import Flask

  #from flask_sqlalchemy import SQLAlchemy

  

- # This mess is required, because flask_cache is 'obsolete' and not working

- #  in PiP, and is replaced with flask_caching, but in Fedora, the flask_caching

- #  implementation is just used in flask_cache package instead....

- try:

-     from flask_caching import Cache

- except ModuleNotFoundError:

-     from flask_cache import Cache

+ from flask_caching import Cache

  from flask_cors import CORS

  

  import logging

file modified
-2
@@ -6,7 +6,5 @@ 

  Flask-Cors

  lxml

  pygments

- # If you ever end up using the requirements.txt as as source for rpm deps

- #  in Fedora, the package you want to use is named flask_cache

  Flask-Caching

  pytz

We now have flask_caching even in Fedora

rebased onto 85266f2

4 years ago

Pull-Request has been merged by jskladan

4 years ago