Skip to content

Commit

Permalink
added in @dimoschi's fix and fixed white space issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Melissa Kersh committed Jul 25, 2016
1 parent 5ca17e8 commit e03e484
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ whitelist_externals = source
bash
install_command = pip install -U {opts} {packages}
setenv = TOX_ENV_NAME={envname}
passenv = TOX_* TRANSIFEX_USER TRANSIFEX_PASSWORD CI CI_* CIRCLECI CIRCLE* APPVEYOR* CODECOV_TOKEN
passenv = TOX_* TRANSIFEX_USER TRANSIFEX_PASSWORD CI CI_* CIRCLECI CIRCLE* APPVEYOR*
commands = python -V
coverage run --append setup.py test
bash ./contrib/test_build.sh
codecov -e TOX_ENV_NAME -t {env:CODECOV_TOKEN:}
codecov -e TOX_ENV_NAME
7 changes: 7 additions & 0 deletions txclib/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@

def get_base_dir():
"""PyInstaller Run-time Operation.
http://pythonhosted.org/PyInstaller/#run-time-operation
"""
if getattr(sys, 'frozen', False):
Expand All @@ -39,6 +40,7 @@ def get_base_dir():

def find_dot_tx(path=os.path.curdir, previous=None):
"""Return the path where .tx folder is found.
The 'path' should be a DIRECTORY.
This process is functioning recursively from the current directory to each
one of the ancestors dirs.
Expand Down Expand Up @@ -181,6 +183,7 @@ def make_request(method, host, url, username, password, fields=None,
def get_details(api_call, username, password, *args, **kwargs):
"""
Get the tx project info through the API.
This function can also be used to check the existence of a project.
"""
url = API_URLS[api_call] % kwargs
Expand All @@ -197,6 +200,7 @@ def get_details(api_call, username, password, *args, **kwargs):
def valid_slug(slug):
"""
Check if a slug contains only valid characters.
Valid chars include [-_\w]
"""
try:
Expand Down Expand Up @@ -254,6 +258,7 @@ def mkdir_p(path):
def confirm(prompt='Continue?', default=True):
"""
Prompt the user for a Yes/No answer.
Args:
prompt: The text displayed to the user ([Y/n] will be appended)
default: If the default value will be yes or no
Expand Down Expand Up @@ -289,6 +294,7 @@ def color_text(text, color_name, bold=False):
This command can be used to colorify command line output. If the shell
doesn't support this or the --disable-colors options has been set, it just
returns the plain text.
Usage:
print "%s" % color_text("This text is red", "RED")
"""
Expand All @@ -302,6 +308,7 @@ def color_text(text, color_name, bold=False):
def files_in_project(curpath):
"""
Iterate over the files in the project.
Return each file under ``curpath`` with its absolute name.
"""
visited = set()
Expand Down

0 comments on commit e03e484

Please sign in to comment.