From b8e87113ac8129189bbbb7c581bf8641c3784ee1 Mon Sep 17 00:00:00 2001 From: George Lund Date: Wed, 20 Dec 2017 16:20:06 +0000 Subject: [PATCH 1/2] Fix imports to remove warning per Flask recommendation. http://flask.pocoo.org/docs/0.12/extensiondev/#extension-import-transition --- flask_featureflags/contrib/inline/__init__.py | 6 +++--- flask_featureflags/contrib/sqlalchemy/__init__.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/flask_featureflags/contrib/inline/__init__.py b/flask_featureflags/contrib/inline/__init__.py index cb4a413..de01265 100644 --- a/flask_featureflags/contrib/inline/__init__.py +++ b/flask_featureflags/contrib/inline/__init__.py @@ -1,7 +1,7 @@ from flask import current_app -from flask.ext.featureflags import FEATURE_FLAGS_CONFIG -from flask.ext.featureflags import NoFeatureFlagFound -from flask.ext.featureflags import log +from flask_featureflags import FEATURE_FLAGS_CONFIG +from flask_featureflags import NoFeatureFlagFound +from flask_featureflags import log class InlineFeatureFlag(object): diff --git a/flask_featureflags/contrib/sqlalchemy/__init__.py b/flask_featureflags/contrib/sqlalchemy/__init__.py index 0a16d08..8067a7c 100644 --- a/flask_featureflags/contrib/sqlalchemy/__init__.py +++ b/flask_featureflags/contrib/sqlalchemy/__init__.py @@ -1,7 +1,7 @@ from sqlalchemy import Column, Integer, Boolean, String from sqlalchemy.orm.exc import NoResultFound from flask import current_app -from flask.ext.featureflags import NoFeatureFlagFound, log +from flask_featureflags import NoFeatureFlagFound, log class SQLAlchemyFeatureFlags(object): From 4e08f1b1db1493f9425b43a0c6066f3792e5e5b4 Mon Sep 17 00:00:00 2001 From: George Lund Date: Tue, 26 Jun 2018 10:12:54 +0100 Subject: [PATCH 2/2] Bump version number. - this tiny library is stable. Round numbers are nice. --- flask_featureflags/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flask_featureflags/__init__.py b/flask_featureflags/__init__.py index 9ae7479..0f1fc58 100644 --- a/flask_featureflags/__init__.py +++ b/flask_featureflags/__init__.py @@ -21,7 +21,7 @@ from flask import redirect as _redirect from flask.signals import Namespace -__version__ = '0.7-dev' +__version__ = '1.0' log = logging.getLogger(u'flask-featureflags')