-
-
Notifications
You must be signed in to change notification settings - Fork 422
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed setup_dev.py #29
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for that, I indeed haven't tested that script.
Just fix the linting issue and I am OK to go.
Well, it's exciting. When black breaks the line, it adds an additional comma at the end of the line. |
|
Here is it. The first part of it:Tue Feb 11 20:37:16 2020 with Nasy ⇡91% on master via 🐍 3.8.1
in …/pdm
λ≻ git clean -f -d -x
Alias tip: g clean -f -d -x
Tue Feb 11 20:37:19 2020 with Nasy ⇡91% on master via 🐍 3.8.1
in …/pdm
λ≻ git reset --hard
Alias tip: grhh
HEAD is now at eebcdf9 Fix test mocking
Tue Feb 11 20:37:22 2020 with Nasy ⇡91% on master via 🐍 3.8.1
in …/pdm
λ≻ python setup_dev.py
Creating a venv using /Users/Nasy/.pyenv/versions/3.8.1/bin/python at env...
Installing base requirements...
Collecting pdm
Using cached https://files.pythonhosted.org/packages/4a/a3/9d1f9a52af3071627daadf436d01569e227b8d254064782a5b2eedcc6b6b/pdm-0.1.2-py3-none-any.whl
Collecting appdirs (from pdm)
Using cached https://files.pythonhosted.org/packages/56/eb/810e700ed1349edde4cbdc1b2a21e28cdf115f9faf263f6bbf8447c1abf3/appdirs-1.4.3-py2.py3-none-any.whl
Collecting pip-shims~=0.4.0 (from pdm)
Using cached https://files.pythonhosted.org/packages/1a/2a/57754edb51b69b3ad092b420e25fbd1086cdb16896f0283aaa9df6e08b12/pip_shims-0.4.0-py2.py3-none-any.whl
Collecting click (from pdm)
Using cached https://files.pythonhosted.org/packages/fa/37/45185cb5abbc30d7257104c434fe0b07e5a195a6847506c074527aa599ec/Click-7.0-py2.py3-none-any.whl
Collecting tomlkit (from pdm)
Using cached https://files.pythonhosted.org/packages/3e/30/7c2693fc50bd466285ec22bf02ee344be1bde3e2e8267e302fdc82d11f2d/tomlkit-0.5.8-py2.py3-none-any.whl
Collecting pip<20.0.0,>=19.3.1 (from pdm)
Using cached https://files.pythonhosted.org/packages/00/b6/9cfa56b4081ad13874b0c6f96af8ce16cfbc1cb06bedf8e9164ce5551ec1/pip-19.3.1-py2.py3-none-any.whl
Collecting pythonfinder (from pdm)
Using cached https://files.pythonhosted.org/packages/6c/9b/c9d372c00abb34019a245f64cc49cf048749e5a92aad5b21f31c5d48c749/pythonfinder-1.2.1-py2.py3-none-any.whl
Collecting distlib (from pdm)
Using cached https://files.pythonhosted.org/packages/7d/29/694a3a4d7c0e1aef76092e9167fbe372e0f7da055f5dcf4e1313ec21d96a/distlib-0.3.0.zip
Collecting halo<1.0.0,>=0.0.28 (from pdm)
Using cached https://files.pythonhosted.org/packages/3f/40/a9e9d61a5e7d1946acbf0b6d6e35e87dfd0cc443cdb90e9f3f0066d0d0ef/halo-0.0.28-py3-none-any.whl
Collecting six (from pip-shims~=0.4.0->pdm)
Using cached https://files.pythonhosted.org/packages/65/eb/1f97cb97bfc2390a276969c6fae16075da282f5058082d4cb10c6c5c1dba/six-1.14.0-py2.py3-none-any.whl
Collecting wheel (from pip-shims~=0.4.0->pdm)
Using cached https://files.pythonhosted.org/packages/8c/23/848298cccf8e40f5bbb59009b32848a4c38f4e7f3364297ab3c3e2e2cd14/wheel-0.34.2-py2.py3-none-any.whl
Collecting packaging (from pip-shims~=0.4.0->pdm)
Using cached https://files.pythonhosted.org/packages/98/42/87c585dd3b113c775e65fd6b8d9d0a43abe1819c471d7af702d4e01e9b20/packaging-20.1-py2.py3-none-any.whl
Requirement already satisfied: setuptools in ./env/lib/python3.8/site-packages (from pip-shims~=0.4.0->pdm) (41.2.0)
Collecting vistir (from pip-shims~=0.4.0->pdm)
Using cached https://files.pythonhosted.org/packages/52/8c/d897556e2bba70c25534c36bc6000aee744d86340407d360af55c4d9bc95/vistir-0.5.0-py2.py3-none-any.whl
Collecting crayons (from pythonfinder->pdm)
Using cached https://files.pythonhosted.org/packages/f8/64/ab71c69db049a5f404f1f2c7627578f4b59aca55e6ad9d939721ce6466dd/crayons-0.3.0-py2.py3-none-any.whl
Collecting attrs (from pythonfinder->pdm)
Using cached https://files.pythonhosted.org/packages/a2/db/4313ab3be961f7a763066401fb77f7748373b6094076ae2bda2806988af6/attrs-19.3.0-py2.py3-none-any.whl
Collecting cached-property (from pythonfinder->pdm)
Using cached https://files.pythonhosted.org/packages/3b/86/85c1be2e8db9e13ef9a350aecd6dea292bd612fa288c2f40d035bb750ded/cached_property-1.5.1-py2.py3-none-any.whl
Collecting termcolor>=1.1.0 (from halo<1.0.0,>=0.0.28->pdm)
Using cached https://files.pythonhosted.org/packages/8a/48/a76be51647d0eb9f10e2a4511bf3ffb8cc1e6b14e9e4fab46173aa79f981/termcolor-1.1.0.tar.gz
Collecting spinners>=0.0.23 (from halo<1.0.0,>=0.0.28->pdm)
Using cached https://files.pythonhosted.org/packages/01/3f/156b7faa2cbadd35a504c9ee852db32e07ff5f106bbf288d49b22b061135/spinners-0.0.23.tar.gz
Collecting colorama>=0.3.9 (from halo<1.0.0,>=0.0.28->pdm)
Using cached https://files.pythonhosted.org/packages/c9/dc/45cdef1b4d119eb96316b3117e6d5708a08029992b2fee2c143c7a0a5cc5/colorama-0.4.3-py2.py3-none-any.whl
Collecting cursor>=1.2.0 (from halo<1.0.0,>=0.0.28->pdm)
Using cached https://files.pythonhosted.org/packages/b7/6a/c99e426288c8b0d229107a09137cf0518a84c9891af796802a5f888da0d0/cursor-1.3.4.tar.gz
Collecting log-symbols>=0.0.13 (from halo<1.0.0,>=0.0.28->pdm)
Using cached https://files.pythonhosted.org/packages/28/5d/d710c38be68b0fb54e645048fe359c3904cc3cb64b2de9d40e1712bf110c/log_symbols-0.0.14-py3-none-any.whl
Collecting pyparsing>=2.0.2 (from packaging->pip-shims~=0.4.0->pdm)
Using cached https://files.pythonhosted.org/packages/5d/bc/1e58593167fade7b544bfe9502a26dc860940a79ab306e651e7f13be68c2/pyparsing-2.4.6-py2.py3-none-any.whl
Installing collected packages: appdirs, six, wheel, pyparsing, packaging, colorama, vistir, pip, pip-shims, click, tomlkit, crayons, attrs, cached-property, pythonfinder, distlib, termcolor, spinners, cursor, log-symbols, halo, pdm
Found existing installation: pip 19.2.3
Uninstalling pip-19.2.3:
Successfully uninstalled pip-19.2.3
Running setup.py install for distlib ... done
Running setup.py install for termcolor ... done
Running setup.py install for spinners ... done
Running setup.py install for cursor ... done
Successfully installed appdirs-1.4.3 attrs-19.3.0 cached-property-1.5.1 click-7.0 colorama-0.4.3 crayons-0.3.0 cursor-1.3.4 distlib-0.3.0 halo-0.0.28 log-symbols-0.0.14 packaging-20.1 pdm-0.1.2 pip-19.3.1 pip-shims-0.4.0 pyparsing-2.4.6 pythonfinder-1.2.1 six-1.14.0 spinners-0.0.23 termcolor-1.1.0 tomlkit-0.5.8 vistir-0.5.0 wheel-0.34.2
Setup project for development...
Using Python interpreter: /Users/Nasy/src/pdm/env/bin/python (3.8.1)
Installing attrs 19.3.0...
ImportError: cannot import name 'global_tempdir_manager' from 'pip._internal.utils.temp_dir' (/Users/Nasy/src/pdm/env/lib/python3.8/site-packages/pip/_internal/utils/temp_dir.py)
Traceback (most recent call last):
File "setup_dev.py", line 51, in <module>
main()
File "setup_dev.py", line 31, in main
subprocess.check_call([venv_python.as_posix(), "-m", "pdm", "install", "-d"])
File "/Users/Nasy/.pyenv/versions/3.8.1/lib/python3.8/subprocess.py", line 364, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['env/bin/python', '-m', 'pdm', 'install', '-d']' returned non-zero exit status 1.
Then, add the line:
pip install pip_shims -U
|
Also, the black:
|
Yeah pip internal APIs are always changing, I am wondering if I should get rid of pip. |
Tuple[int, ...]
. We needstr
here.