Skip to content

Commit

Permalink
Merge branch 'bugfix/3766' of github.com:pypa/pipenv into bugfix/3766
Browse files Browse the repository at this point in the history
  • Loading branch information
techalchemy committed Jun 17, 2019
2 parents b4d6ea5 + 8145061 commit a453cdb
Show file tree
Hide file tree
Showing 14 changed files with 49 additions and 253 deletions.
21 changes: 0 additions & 21 deletions .azure-pipelines/docs.yml

This file was deleted.

15 changes: 0 additions & 15 deletions .azure-pipelines/jobs/run-manifest-check.yml

This file was deleted.

25 changes: 0 additions & 25 deletions .azure-pipelines/jobs/run-tests-windows.yml

This file was deleted.

30 changes: 0 additions & 30 deletions .azure-pipelines/jobs/run-tests.yml

This file was deleted.

33 changes: 0 additions & 33 deletions .azure-pipelines/jobs/run-vendor-scripts.yml

This file was deleted.

26 changes: 0 additions & 26 deletions .azure-pipelines/jobs/test.yml

This file was deleted.

28 changes: 0 additions & 28 deletions .azure-pipelines/linux.yml

This file was deleted.

16 changes: 0 additions & 16 deletions .azure-pipelines/steps/create-virtualenv-linux.yml

This file was deleted.

26 changes: 0 additions & 26 deletions .azure-pipelines/steps/create-virtualenv-windows.yml

This file was deleted.

34 changes: 34 additions & 0 deletions .azure-pipelines/steps/reinstall-pythons.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
steps:
- script: |
# When you paste this, please make sure the indentation is preserved
# Fail out if any setups fail
set -e
# Delete old Pythons
rm -rf $AGENT_TOOLSDIRECTORY/Python/2.7.16
rm -rf $AGENT_TOOLSDIRECTORY/Python/3.5.7
rm -rf $AGENT_TOOLSDIRECTORY/Python/3.7.3
[ -e $AGENT_TOOLSDIRECTORY/Python/3.7.2 ] && [ -e $AGENT_TOOLSDIRECTORY/Python/3.5.5 ] && [ -e $AGENT_TOOLSDIRECTORY/Python/2.7.15 ] && exit 0
# Download new Pythons
azcopy --recursive \
--source https://vstsagenttools.blob.core.windows.net/tools/hostedtoolcache/linux/Python/2.7.15 \
--destination $AGENT_TOOLSDIRECTORY/Python/2.7.15
azcopy --recursive \
--source https://vstsagenttools.blob.core.windows.net/tools/hostedtoolcache/linux/Python/3.5.5 \
--destination $AGENT_TOOLSDIRECTORY/Python/3.5.5
azcopy --recursive \
--source https://vstsagenttools.blob.core.windows.net/tools/hostedtoolcache/linux/Python/3.7.2 \
--destination $AGENT_TOOLSDIRECTORY/Python/3.7.2
# Install new Pythons
original_directory=$PWD
setups=$(find $AGENT_TOOLSDIRECTORY/Python -name setup.sh)
for setup in $setups; do
chmod +x $setup;
cd $(dirname $setup);
./$(basename $setup);
cd $original_directory;
done;
displayName: 'Workaround: roll back Python versions'
24 changes: 0 additions & 24 deletions .azure-pipelines/windows.yml

This file was deleted.

21 changes: 13 additions & 8 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ trigger:
- docs/*
- news/*
- peeps/*
- examples/*
- pytest.ini
- README.md
- pipenv/*.txt
- CHANGELOG.rst
Expand All @@ -28,16 +30,17 @@ jobs:
strategy:
matrix:
Python27:
python.version: '2.7.16'
python.version: '2.7'
python.architecture: x64
Python36:
python.version: '3.6.8'
python.version: '3.6'
python.architecture: x64
Python37:
python.version: '3.7.3'
python.version: '3.7'
python.architecture: x64
maxParallel: 4
steps:
- template: .azure-pipelines/steps/reinstall-pythons.yml
- template: .azure-pipelines/steps/run-tests.yml
parameters:
vmImage: 'Ubuntu-16.04'
Expand All @@ -46,9 +49,10 @@ jobs:
pool:
vmImage: 'Ubuntu-16.04'
variables:
python.version: '3.7.3'
python.version: '3.7'
python.architecture: x64
steps:
- template: .azure-pipelines/steps/reinstall-pythons.yml
- template: .azure-pipelines/steps/run-vendor-scripts.yml
parameters:
vmImage: 'Ubuntu-16.04'
Expand All @@ -57,9 +61,10 @@ jobs:
pool:
vmImage: 'Ubuntu-16.04'
variables:
python.version: '3.7.3'
python.version: '3.7'
python.architecture: x64
steps:
- template: .azure-pipelines/steps/reinstall-pythons.yml
- template: .azure-pipelines/steps/build-package.yml
parameters:
vmImage: 'Ubuntu-16.04'
Expand Down Expand Up @@ -90,13 +95,13 @@ jobs:
strategy:
matrix:
Python27:
python.version: '2.7.16'
python.version: '2.7'
python.architecture: x64
Python36:
python.version: '3.6.8'
python.version: '3.6'
python.architecture: x64
Python37:
python.version: '3.7.3'
python.version: '3.7'
python.architecture: x64
maxParallel: 4
steps:
Expand Down
1 change: 1 addition & 0 deletions news/3794.bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix a bug that installation errors are displayed as a list.
2 changes: 1 addition & 1 deletion pipenv/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -664,7 +664,7 @@ def _cleanup_procs(procs, failed_deps_queue, retry=True):
# We echo both c.out and c.err because pip returns error details on out.
err = c.err.strip().splitlines() if c.err else []
out = c.out.strip().splitlines() if c.out else []
err_lines = [line for line in [out, err]]
err_lines = [line for message in [out, err] for line in message]
# Return the subprocess' return code.
raise exceptions.InstallError(c.dep.name, extra=err_lines)
# Save the Failed Dependency for later.
Expand Down

0 comments on commit a453cdb

Please sign in to comment.