mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-10 15:28:34 +01:00
@@ -1,4 +1,5 @@
|
||||
import re
|
||||
import sys
|
||||
from collections import defaultdict
|
||||
|
||||
from dvc.logger import Logger
|
||||
@@ -65,7 +66,8 @@ class CmdShowWorkflow(CmdBase):
|
||||
def branches_multimap(self):
|
||||
git_cmd = ['git', 'show-ref', '--abbrev={}'.format(self.COMMIT_LEN)]
|
||||
lines = Executor.exec_cmd_only_success(git_cmd).split('\n')
|
||||
items_full = map(unicode.split, lines)
|
||||
func = unicode.split if sys.version_info[0] < 3 else str.split
|
||||
items_full = map(func, lines)
|
||||
items = map(lambda it: (it[0], re.sub(r'^refs/heads/', '', it[1])), items_full)
|
||||
|
||||
result = defaultdict(list)
|
||||
|
||||
@@ -10,6 +10,14 @@ import filecmp
|
||||
import math
|
||||
|
||||
from boto.s3.connection import S3Connection
|
||||
try:
|
||||
import httplib
|
||||
except ImportError:
|
||||
# Python3 workaround for ResumableDownloadHandler.
|
||||
# See https://github.com/boto/boto/pull/3755.
|
||||
import sys
|
||||
import http.client as httplib
|
||||
sys.modules['httplib'] = httplib
|
||||
from boto.s3.resumable_download_handler import ResumableDownloadHandler
|
||||
from google.cloud import storage as gc
|
||||
|
||||
|
||||
@@ -109,7 +109,7 @@ class Workflow(object):
|
||||
|
||||
g = nx.DiGraph(name='DVC Workflow', directed=False)
|
||||
|
||||
for hash in set(self._edges.keys() + self._back_edges.keys()):
|
||||
for hash in set(list(self._edges.keys()) + list(self._back_edges.keys())):
|
||||
commit = self._commits[hash]
|
||||
|
||||
g.add_node(hash,
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -x
|
||||
set -e
|
||||
|
||||
if [[ "$TRAVIS_OS_NAME" == "linux" && \
|
||||
"$(python -c 'import sys; print(sys.version_info[0])')" == "2" && \
|
||||
"$TRAVIS_PULL_REQUEST" == "false" && \
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -x
|
||||
set -e
|
||||
|
||||
if [[ "$TRAVIS_EVENT_TYPE" == "cron" ]]; then
|
||||
git config --local user.name 'Nightly Travis Builds'
|
||||
git config --local user.email '<>'
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -x
|
||||
set -e
|
||||
|
||||
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
|
||||
pyenv install $PYTHON_VER
|
||||
pyenv global $PYTHON_VER
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -x
|
||||
set -e
|
||||
|
||||
if [[ "$TRAVIS_OS_NAME" == "linux" && \
|
||||
"$(python -c 'import sys; print(sys.version_info[0])')" == "2" && \
|
||||
"$TRAVIS_PULL_REQUEST" == "false" && \
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -x
|
||||
set -e
|
||||
|
||||
sudo apt-get install graphviz
|
||||
pip install --upgrade pip
|
||||
pip install -r requirements.txt
|
||||
pip install -r test-requirements.txt
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -x
|
||||
set -e
|
||||
|
||||
./unittests.sh
|
||||
./functests.sh
|
||||
|
||||
|
||||
Reference in New Issue
Block a user