Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pin PyYAML version and fix tests #12

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ nosetests.xml
coverage.xml
*,cover
.hypothesis/
.pytest_cache/

# Translations
*.mo
Expand Down
1 change: 0 additions & 1 deletion knowit/properties/duration.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
from __future__ import unicode_literals

import re

from datetime import timedelta
from six import text_type

Expand Down
1 change: 0 additions & 1 deletion knowit/providers/mediainfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import locale
import os
import sys

from ctypes import c_size_t, c_void_p, c_wchar_p
from logging import NullHandler, getLogger
from subprocess import check_output
Expand Down
1 change: 0 additions & 1 deletion knowit/rules/language.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
from __future__ import unicode_literals

import re

from logging import NullHandler, getLogger
import babelfish

Expand Down
5 changes: 4 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,13 @@ def find_version(*file_paths):


setup_requirements = ['pytest-runner'] if {'pytest', 'test', 'ptr'}.intersection(sys.argv) else []
install_requirements = ['babelfish>=0.5.2', 'enzyme>=0.4.1', 'pint>=0.8', 'pymediainfo>=2.1.5', 'PyYAML',
install_requirements = ['babelfish>=0.5.2', 'enzyme>=0.4.1', 'pint>=0.8', 'pymediainfo>=2.1.5', 'PyYAML<4',
'six>=1.9.0']
test_requirements = ['flake8_docstrings', 'flake8-import-order', 'pydocstyle',
'pep8-naming', 'pytest>=2.8', 'pytest-cov', 'pytest-flake8']
# Remove the following line when `flake8` supports `pycodestyle` >= 2.4.0
# See https://gitlab.com/pycqa/flake8/issues/415
test_requirements.append('pycodestyle<2.4.0')

if sys.version_info < (3, 3):
test_requirements.append('mock')
Expand Down
4 changes: 1 addition & 3 deletions tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,8 @@

import re
import sys

from collections import Mapping
from datetime import timedelta

from pkg_resources import resource_exists, resource_isdir, resource_listdir, resource_stream
from six import string_types
import yaml
Expand All @@ -17,7 +15,7 @@

try:
from mock import Mock
except:
except ImportError:
from unittest.mock import Mock


Expand Down