Skip to content

Commit

Permalink
Merge pull request #1480 from dinosk/deprecate_flask_cli
Browse files Browse the repository at this point in the history
cli: deprecation of flask_cli
  • Loading branch information
dinosk authored May 17, 2017
2 parents 5009301 + 4feae28 commit 2410087
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion b2share/modules/communities/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
from os.path import isfile

import click
from flask_cli import with_appcontext
from flask.cli import with_appcontext

from invenio_db import db

Expand Down
2 changes: 1 addition & 1 deletion b2share/modules/files/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

from sqlalchemy import exists, or_
import click
from flask_cli import with_appcontext
from flask.cli import with_appcontext
from invenio_db import db
from invenio_files_rest.models import Location

Expand Down
2 changes: 1 addition & 1 deletion b2share/modules/oaiserver/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
from __future__ import absolute_import, print_function

import click
from flask_cli import with_appcontext
from flask.cli import with_appcontext
from sqlalchemy.orm.attributes import flag_modified

from invenio_db import db
Expand Down
2 changes: 1 addition & 1 deletion b2share/modules/records/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
from __future__ import absolute_import, print_function

import click
from flask_cli import with_appcontext
from flask.cli import with_appcontext
import requests

from invenio_db import db
Expand Down
2 changes: 1 addition & 1 deletion b2share/modules/schemas/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
import os
from uuid import UUID
import click
from flask_cli import with_appcontext
from flask.cli import with_appcontext

from flask import current_app
from invenio_db import db
Expand Down
2 changes: 1 addition & 1 deletion demo/b2share_demo/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
import pathlib

import click
from flask_cli import with_appcontext
from flask.cli import with_appcontext
from flask import current_app
from invenio_db import db
from invenio_files_rest.models import Location
Expand Down
2 changes: 1 addition & 1 deletion demo/b2share_demo/migration_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
from urllib.parse import urlunsplit, urljoin, urlsplit

import click
from flask_cli import with_appcontext
from flask.cli import with_appcontext
from flask import current_app
from invenio_db import db
from invenio_indexer.api import RecordIndexer
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
import json
import pytest
from click.testing import CliRunner
from flask_cli import ScriptInfo
from flask.cli import ScriptInfo

from b2share.modules.communities.cli import communities as communities_cmd
from b2share.modules.communities.helpers import get_community_by_name_or_id
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
import json
import pytest
from click.testing import CliRunner
from flask_cli import ScriptInfo
from flask.cli import ScriptInfo
from flask import url_for

from invenio_db import db
Expand Down
2 changes: 1 addition & 1 deletion tests/b2share_functional_tests/test_record_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

from unittest.mock import patch, DEFAULT
from click.testing import CliRunner
from flask_cli import ScriptInfo
from flask.cli import ScriptInfo

import b2share.modules.records.cli as records_cli

Expand Down
2 changes: 1 addition & 1 deletion tests/b2share_unit_tests/records/test_records_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
from invenio_records_files.api import Record
from click.testing import CliRunner
from b2share.modules.records.cli import b2records
from flask_cli import ScriptInfo
from flask.cli import ScriptInfo


@pytest.mark.parametrize('cli_cmd', [True, False])
Expand Down
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
from copy import deepcopy
from collections import namedtuple

from flask_cli import ScriptInfo
from flask.cli import ScriptInfo
import pytest
import responses
from jsonpatch import apply_patch
Expand Down
2 changes: 1 addition & 1 deletion tests/demo/test_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

import pytest
from click.testing import CliRunner
from flask_cli import ScriptInfo
from flask.cli import ScriptInfo
from invenio_pidstore.resolver import Resolver
from invenio_records import Record

Expand Down

0 comments on commit 2410087

Please sign in to comment.