Pipenv: --bare switch should turn off progress indicator

Created on 8 Dec 2019  Â·  3Comments  Â·  Source: pypa/pipenv

Issue description

Despite executing pipenv with the --bare switch for minimum output, the progress indicator/animation get's shown. This can spam log files.

In my case the log of Github Actions (used for CI) get's spammed.

Expected result

--bare switch should disable the progress indicator while installing things, just showing like:

[...]
Creating virtual environment...
Successfully created virtual environment!
[...]
Locking...
Success!
[...]

Actual result

For every change in the progress indicator, a new log-line get's created:

$ pipenv --bare install --dev
Creating a virtualenv for this project…
Pipfile: /home/runner/work/normcap/normcap/Pipfile
Using /opt/hostedtoolcache/Python/3.7.5/x64/bin/python3.7 (3.7.5) to create virtualenv…

â ‹ Creating virtual environment...
â ™ Creating virtual environment...
â ą Creating virtual environment...
â ¸ Creating virtual environment...
â Ľ Creating virtual environment...
â ´ Creating virtual environment...
â ¦ Creating virtual environment...

[...  ~100 more lines !!! ...]

â § Creating virtual environment...
â ‡ Creating virtual environment...
â ‡ Creating virtual environment...Already using interpreter /opt/hostedtoolcache/Python/3.7.5/x64/bin/python3.7
Using base prefix '/opt/hostedtoolcache/Python/3.7.5/x64'
New python executable in /home/runner/.local/share/virtualenvs/normcap-titTOeb0/bin/python3.7
Also creating executable in /home/runner/.local/share/virtualenvs/normcap-titTOeb0/bin/python
Installing setuptools, pip, wheel...
done.
Running virtualenv with interpreter /opt/hostedtoolcache/Python/3.7.5/x64/bin/python3.7

âś” Successfully created virtual environment! 
Virtualenv location: /home/runner/.local/share/virtualenvs/normcap-titTOeb0
Pipfile.lock not found, creating…
Locking [dev-packages] dependencies…

â ‹ Locking...
â ™ Locking...
â ą Locking...
â ¸ Locking...
â Ľ Locking...

[...  ~100 more lines !!! ...]

â ą Locking...
â ¸ Locking...âś” Success! 
Locking [packages] dependencies…

â ‹ Locking...
â ™ Locking...
â ą Locking...
â ¸ Locking...
â Ľ Locking...

[...  ~100 more lines !!! ...]

â ą Locking...
â ¸ Locking...âś” Success! 
Updated Pipfile.lock (d1ae73)!
Installing dependencies from Pipfile.lock (d1ae73)…
To activate this project's virtualenv, run pipenv shell.
Alternatively, run a command inside the virtualenv with pipenv run.

Steps to replicate

1.) Setup a github action for a repo containing a Pipfile, e.g. like:

name: Python application

on: [push]

jobs:
  build:

    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@master    
    - name: Set up Python 3.7
      uses: actions/setup-python@v1
      with:
        python-version: 3.7           
    - name: Install pipenv
      run: |
        pip3 install pipenv
    - name: Install python dependencies
      run: | 
        pipenv --bare install --dev

2.) Check output logs of executed action.

triage

Most helpful comment

You can set the CI env variable :-)

(I am not sure this is documented...)

All 3 comments

You can set the CI env variable :-)

(I am not sure this is documented...)

Thanks, @oliverpool, that's working well! :-)
Feel free to close this ticket, if the CI env var is a sufficient solution.

CI env variable doesn't seem to help with the other progress indicator.
I still see the number of installed packages ticking up and it creates a lot of spam in CI.

Locally, this is fine.

❯ CI=1 pipenv sync --bare
Installing dependencies from Pipfile.lock (dcc17d)...
  ================================ 3/3 — 00:00:00

Copy pasting some lines from CI logs.

  ==============================-- 120/124 — 00:00:01
  ===============================- 121/124 — 00:00:01
  ===============================- 122/124 — 00:00:01
  ===============================- 123/124 — 00:00:01
  ================================ 124/124 — 00:00:01
  ================================ 124/124 — 00:01:00
Was this page helpful?
0 / 5 - 0 ratings

Related issues

randName picture randName  Â·  3Comments

jerzyk picture jerzyk  Â·  3Comments

AkiraSama picture AkiraSama  Â·  3Comments

leileigong picture leileigong  Â·  3Comments

Californian picture Californian  Â·  3Comments