Skip to content

Commit

Permalink
Remove unused dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
parttimenerd committed Mar 28, 2016
1 parent 49b6843 commit e34a567
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 10 deletions.
4 changes: 2 additions & 2 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@
# built documents.
#
# The short X.Y version.
version = '0.6.0'
version = '0.7.0'
# The full version, including alpha/beta/rc tags.
release = '0.6.0'
release = '0.7.0'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
1 change: 1 addition & 0 deletions doc/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
sphinx-autodoc-typehints
cpuset-py3
5 changes: 2 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
'humanfriendly',
'fn',
'pyaml',
'typing', 'seaborn', 'pytimeparse',
'seaborn', 'pytimeparse',
'cairocffi',
'matplotlib',
'prompt_toolkit', 'ptpython',
Expand All @@ -32,8 +32,7 @@
'Pygments',
'wcwidth',
'rainbow_logging_handler',
'tablib', 'glob2', 'globster',
'colorlog', 'jsonrpc', 'bsonrpc'
'tablib', 'glob2', 'globster'
],
license='GPLv3',
platforms='linux',
Expand Down
4 changes: 2 additions & 2 deletions temci/package/action.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
import subprocess

import time
import yaml, copy
from colorlog import logging
import yaml
import logging

from temci.package.util import abspath, normalize_path, hashed_name_of_file
from temci.utils.mail import send_mail
Expand Down
3 changes: 1 addition & 2 deletions temci/scripts/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

from temci.utils.util import sphinx_doc, get_doc_for_type_scheme

locale.setlocale(locale.LC_ALL, "en_US.utf8")

import warnings

from temci.scripts.temci_completion import completion_file_name, create_completion_dir
Expand Down Expand Up @@ -879,6 +877,7 @@ def cli_with_error_catching():
"""
Process the command line arguments and catch (some) errors.
"""
locale.setlocale(locale.LC_ALL, "en_US.utf8")
try:
cli()
except EnvironmentError as err:
Expand Down
5 changes: 4 additions & 1 deletion temci/utils/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,11 @@ def can_import(module: str) -> bool:
"""
Can a module (like scipy or numpy) be imported without a severe and avoidable performance penalty?
The rational behind this is that some parts of temci don't need scipy or numpy.
:param module: name of the module
"""
if sphinx_doc():
return False
if allow_all_imports:
return True
if module not in ["scipy", "numpy"]:
Expand All @@ -139,7 +142,7 @@ def can_import(module: str) -> bool:
return False
return True

_sphinx_doc = os.environ.get("SPHINXDOC", None) == 'True'
_sphinx_doc = os.environ.get("SPHINXDOC", os.environ.get('READTHEDOCS', None)) == 'True'

def sphinx_doc() -> bool:
""" Is the code only loaded to document it with sphinx? """
Expand Down

0 comments on commit e34a567

Please sign in to comment.