Skip to content

Commit

Permalink
Merge pull request #271 from kinow/imports
Browse files Browse the repository at this point in the history
Remove unused imports and declare dependencies used
  • Loading branch information
osma authored Apr 16, 2019
2 parents 75c51d0 + 6cae72d commit c8c370a
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
2 changes: 0 additions & 2 deletions annif/backend/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
"""Registry of backend types for Annif"""

import configparser
from flask import current_app
from . import dummy
from . import ensemble
from . import http
Expand Down
4 changes: 4 additions & 0 deletions annif/corpus/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,7 @@
from .skos import SubjectFileSKOS
from .types import Document
from .combine import CombinedCorpus

__all__ = [DocumentDirectory, DocumentFile, DocumentList, Subject,
SubjectDirectory, SubjectFileTSV, SubjectIndex, SubjectSet,
SubjectFileSKOS, Document, CombinedCorpus]
7 changes: 5 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,19 @@ def read(fname):
install_requires=[
'connexion[swagger-ui]',
'swagger_ui_bundle',
'flask',
'flask-cors',
'click',
'click-log',
'nltk',
'gensim',
'sklearn',
'rdflib'],
tests_require=['py', 'pytest', 'requests'],
extras_require={
'fasttext': ['fasttextmirror'],
'fasttext': ['fasttext', 'fasttextmirror'],
'voikko': ['voikko'],
'vw': ['vowpalwabbit'],
'vw': ['vowpalwabbit', 'numpy'],
},
entry_points={
'console_scripts': ['annif=annif.cli:cli']},
Expand Down
1 change: 0 additions & 1 deletion tests/test_backend.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"""Unit tests for backends in Annif"""

import os
import pytest
import annif
import annif.backend
Expand Down
2 changes: 0 additions & 2 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
import random
import re
import os.path
import shutil
import pytest
from click.testing import CliRunner
import annif.cli

Expand Down
1 change: 0 additions & 1 deletion tests/test_project.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"""Unit tests for projects in Annif"""

import os
import pytest
import annif.project
import annif.backend.dummy
Expand Down
1 change: 0 additions & 1 deletion tests/test_rest.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"""Unit tests for REST API backend code in Annif"""

import connexion
import annif.rest


Expand Down

0 comments on commit c8c370a

Please sign in to comment.