Comments (9)
@molleweide can I assign this to you?
from dorothy.
Sure, later when I have time to walk through all of these files this is a good way for me to get into each of this files. I am assuming you mean update the echoes with colors etc?
from dorothy.
Sure, later when I have time to walk through all of these files this is a good way for me to get into each of this files. I am assuming you mean update the echoes with colors etc?
yup, and thank you
from dorothy.
Worth noting that a few commits ago added echo-revolving-door
, as well as some magic in setup-util
, such that successes collapsed in non-verbose mode. Would be good to scale this out to other commands too, but that can happen once the styling colors has completed.
from dorothy.
New styling abilities have been added in f8ede3b and utilised by setup-python
. @molleweide you now have a substitute for your headers prefixes and suffixes.
For setup-python
it turns this:
Ensuring python 2 and 3 are installed...
The [python] utility is already installed because [python] is present. All good. ✅
The [python3] utility is already installed because [python3] is present. All good. ✅
Installing pip for python...
11/11 15:59:11 [NOTICE] Downloading 1 item(s)
11/11 15:59:12 [NOTICE] Download complete: /var/folders/wm/8g56ry4s47z_hbt0tgv0m5gr0000gn/T/tmp.yNHUloPX
Download Results:
gid |stat|avg speed |path/URI
======+====+===========+=======================================================
af48d2|OK | 5.1MiB/s|/var/folders/wm/8g56ry4s47z_hbt0tgv0m5gr0000gn/T/tmp.yNHUloPX
Status Legend:
(OK):download completed.
Collecting pip
Using cached pip-21.3.1-py3-none-any.whl (1.7 MB)
Installing collected packages: pip
Attempting uninstall: pip
Found existing installation: pip 21.3.1
Uninstalling pip-21.3.1:
Successfully uninstalled pip-21.3.1
Successfully installed pip-21.3.1
Install 0 pip dependencies for python...
Installing pipx for python...
Collecting pipx
Using cached pipx-0.16.4-py3-none-any.whl (53 kB)
Collecting packaging>=20.0
Using cached packaging-21.2-py3-none-any.whl (40 kB)
Collecting argcomplete<2.0,>=1.9.4
Using cached argcomplete-1.12.3-py2.py3-none-any.whl (38 kB)
Collecting userpath>=1.6.0
Using cached userpath-1.7.0-py2.py3-none-any.whl (14 kB)
Collecting pyparsing<3,>=2.0.2
Using cached pyparsing-2.4.7-py2.py3-none-any.whl (67 kB)
Collecting click
Using cached click-8.0.3-py3-none-any.whl (97 kB)
Installing collected packages: pyparsing, click, userpath, packaging, argcomplete, pipx
Attempting uninstall: pyparsing
Found existing installation: pyparsing 2.4.7
Uninstalling pyparsing-2.4.7:
Successfully uninstalled pyparsing-2.4.7
Attempting uninstall: click
Found existing installation: click 8.0.3
Uninstalling click-8.0.3:
Successfully uninstalled click-8.0.3
Attempting uninstall: userpath
Found existing installation: userpath 1.7.0
Uninstalling userpath-1.7.0:
Successfully uninstalled userpath-1.7.0
Attempting uninstall: packaging
Found existing installation: packaging 21.2
Uninstalling packaging-21.2:
Successfully uninstalled packaging-21.2
Attempting uninstall: argcomplete
Found existing installation: argcomplete 1.12.3
Uninstalling argcomplete-1.12.3:
Successfully uninstalled argcomplete-1.12.3
Attempting uninstall: pipx
Found existing installation: pipx 0.16.4
Uninstalling pipx-0.16.4:
Successfully uninstalled pipx-0.16.4
Successfully installed argcomplete-1.12.3 click-8.0.3 packaging-21.2 pipx-0.16.4 pyparsing-2.4.7 userpath-1.7.0
Install 4 pipx dependencies for python...
Installing to existing venv 'youtube-dl'
⚠️ Note: youtube-dl was already on your PATH at /usr/local/bin/youtube-dl
installed package youtube-dl 2021.6.6, Python 3.9.7
These apps are now globally available
- youtube-dl
done! ✨ 🌟 ✨
Installing to existing venv 'stig'
installed package stig 0.12.2a0, Python 3.9.7
These apps are now globally available
- chardetect
- natsort
- stig
done! ✨ 🌟 ✨
Installing to existing venv 'katcr'
installed package katcr 3.0.7, Python 3.9.7
These apps are now globally available
- bot
- chardetect
- gogo
- katcr
- normalizer
- py.test
- pytest
- tabulate
- torrentmirror
- yapf
done! ✨ 🌟 ✨
Installing to existing venv 'poetry'
installed package poetry 1.1.11, Python 3.9.7
These apps are now globally available
- doesitcache
- keyring
- normalizer
- pkginfo
- poetry
- virtualenv
done! ✨ 🌟 ✨
Installing pip for python2...
11/11 15:59:26 [NOTICE] Downloading 1 item(s)
[#46cdc5 0B/0B CN:1 DL:0B]
11/11 15:59:28 [NOTICE] Download complete: /var/folders/wm/8g56ry4s47z_hbt0tgv0m5gr0000gn/T/tmp.6rELTx3K
Download Results:
gid |stat|avg speed |path/URI
======+====+===========+=======================================================
46cdc5|OK | 5.1MiB/s|/var/folders/wm/8g56ry4s47z_hbt0tgv0m5gr0000gn/T/tmp.6rELTx3K
Status Legend:
(OK):download completed.
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
Collecting pip<21.0
Using cached pip-20.3.4-py2.py3-none-any.whl (1.5 MB)
Installing collected packages: pip
Attempting uninstall: pip
Found existing installation: pip 20.3.4
Uninstalling pip-20.3.4:
Successfully uninstalled pip-20.3.4
Successfully installed pip-20.3.4
Install 0 pip dependencies for python2...
Installing pip for python3...
11/11 15:59:33 [NOTICE] Downloading 1 item(s)
11/11 15:59:33 [NOTICE] Download complete: /var/folders/wm/8g56ry4s47z_hbt0tgv0m5gr0000gn/T/tmp.YgzMrfgC
Download Results:
gid |stat|avg speed |path/URI
======+====+===========+=======================================================
c6a880|OK | 5.0MiB/s|/var/folders/wm/8g56ry4s47z_hbt0tgv0m5gr0000gn/T/tmp.YgzMrfgC
Status Legend:
(OK):download completed.
Collecting pip
Using cached pip-21.3.1-py3-none-any.whl (1.7 MB)
Installing collected packages: pip
Attempting uninstall: pip
Found existing installation: pip 21.3.1
Uninstalling pip-21.3.1:
Successfully uninstalled pip-21.3.1
Successfully installed pip-21.3.1
Install 0 pip dependencies for python3...
Installing pipx for python3...
Collecting pipx
Using cached pipx-0.16.4-py3-none-any.whl (53 kB)
Collecting packaging>=20.0
Using cached packaging-21.2-py3-none-any.whl (40 kB)
Collecting argcomplete<2.0,>=1.9.4
Using cached argcomplete-1.12.3-py2.py3-none-any.whl (38 kB)
Collecting userpath>=1.6.0
Using cached userpath-1.7.0-py2.py3-none-any.whl (14 kB)
Collecting pyparsing<3,>=2.0.2
Using cached pyparsing-2.4.7-py2.py3-none-any.whl (67 kB)
Collecting click
Using cached click-8.0.3-py3-none-any.whl (97 kB)
Installing collected packages: pyparsing, click, userpath, packaging, argcomplete, pipx
Attempting uninstall: pyparsing
Found existing installation: pyparsing 2.4.7
Uninstalling pyparsing-2.4.7:
Successfully uninstalled pyparsing-2.4.7
Attempting uninstall: click
Found existing installation: click 8.0.3
Uninstalling click-8.0.3:
Successfully uninstalled click-8.0.3
Attempting uninstall: userpath
Found existing installation: userpath 1.7.0
Uninstalling userpath-1.7.0:
Successfully uninstalled userpath-1.7.0
Attempting uninstall: packaging
Found existing installation: packaging 21.2
Uninstalling packaging-21.2:
Successfully uninstalled packaging-21.2
Attempting uninstall: argcomplete
Found existing installation: argcomplete 1.12.3
Uninstalling argcomplete-1.12.3:
Successfully uninstalled argcomplete-1.12.3
Attempting uninstall: pipx
Found existing installation: pipx 0.16.4
Uninstalling pipx-0.16.4:
Successfully uninstalled pipx-0.16.4
Successfully installed argcomplete-1.12.3 click-8.0.3 packaging-21.2 pipx-0.16.4 pyparsing-2.4.7 userpath-1.7.0
Install 4 pipx dependencies for python3...
Installing to existing venv 'youtube-dl'
⚠️ Note: youtube-dl was already on your PATH at /usr/local/bin/youtube-dl
installed package youtube-dl 2021.6.6, Python 3.9.7
These apps are now globally available
- youtube-dl
done! ✨ 🌟 ✨
Installing to existing venv 'stig'
installed package stig 0.12.2a0, Python 3.9.7
These apps are now globally available
- chardetect
- natsort
- stig
done! ✨ 🌟 ✨
Installing to existing venv 'katcr'
installed package katcr 3.0.7, Python 3.9.7
These apps are now globally available
- bot
- chardetect
- gogo
- katcr
- normalizer
- py.test
- pytest
- tabulate
- torrentmirror
- yapf
done! ✨ 🌟 ✨
Installing to existing venv 'poetry'
installed package poetry 1.1.11, Python 3.9.7
These apps are now globally available
- doesitcache
- keyring
- normalizer
- pkginfo
- poetry
- virtualenv
done! ✨ 🌟 ✨
Installed python, pyenv, pip, and pipx successfully. ✅
Into this:
┌ Setup Python ⏲ ┐
┌ Install python ┐
The [python] utility is already installed because [python] is present. All good. ✅
The [python3] utility is already installed because [python3] is present. All good. ✅
└ Install python ┘
┌ Download pip for python ┐
└ Download pip for python ┘
┌ Install pip for python ┐
└ Install pip for python ┘
┌ Install 0 pip dependencies for python ┐
└ Install 0 pip dependencies for python ┘
┌ Install pipx for python ┐
└ Install pipx for python ┘
┌ Install 4 pipx dependencies for python ┐
pipx installed: youtube_dl
pipx installed: stig
pipx installed: katcr
pipx installed: poetry
└ Install 4 pipx dependencies for python ┘
┌ Download pip for python2 ┐
└ Download pip for python2 ┘
┌ Install pip for python2 ┐
< python2 /var/folders/wm/8g56ry4s47z_hbt0tgv0m5gr0000gn/T/tmp.e8qhtceM --user >
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 i└ Install pip for python2 ┘
┌ Install 0 pip dependencies for python2 ┐
└ Install 0 pip dependencies for python2 ┘
┌ Download pip for python3 ┐
└ Download pip for python3 ┘
┌ Install pip for python3 ┐
└ Install pip for python3 ┘
┌ Install 0 pip dependencies for python3 ┐
└ Install 0 pip dependencies for python3 ┘
┌ Install pipx for python3 ┐
└ Install pipx for python3 ┘
┌ Install 4 pipx dependencies for python3 ┐
pipx installed: youtube_dl
pipx installed: stig
pipx installed: katcr
pipx installed: poetry
└ Install 4 pipx dependencies for python3 ┘
└ Setup Python ✅ ┘
I'm unsure why these lines were retained and had the footer added onto it, but can debug it later:
┌ Install pip for python2 ┐
< python2 /var/folders/wm/8g56ry4s47z_hbt0tgv0m5gr0000gn/T/tmp.e8qhtceM --user >
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 i└ Install pip for python2 ┘
from dorothy.
It's a pity it isn't possible to do
echo-segment 'do something' -- {
# do a bunch of things
}
This may work however:
{
# do a bunch of things
} | echo-segment 'do something'
However, it would require special handling for exit codes and stderr, maybe:
{
# do a bunch of things
} 2>&1 | echo-segment --collapse --piped 'do something' || echo-segment --elsed 'do something'
Turns out this creates worse code:
https://gist.github.com/balupton/8e86fbe8a97fb8def4e60143e62efbdb
from dorothy.
most of the styling of the setup utils is done, but a few need a bunch of cleaning, and make use of the open and close syles, and eval-collapse
, to get inline with the magic of setup-python
from dorothy.
I'll have this completed this week
from dorothy.
from dorothy.
Related Issues (20)
- Review remaining commands
- Compatibility with Ubuntu 22.04 HOT 1
- Dump Resilio for Syncthing HOT 1
- Review macOS bash v3 compat HOT 1
- Tracking cross-OS utility support HOT 1
- setup-git oddities on ubuntu on raspi HOT 1
- setup-python failure on ubuntu on raspi
- Hermetic Installation HOT 11
- `GITHUB` can fail on `setup-util` when rate limits are reached
- Suggestion: `fs-dirname` should support non-existing paths HOT 2
- Make `setup-extras` optional, such that `setup-linux` can occur without installing every ecosystem. HOT 1
- Drop non-XDG support for Dorothy HOT 1
- `debug-bash --dorothy` to `source "$(which ...)"` as much as possible HOT 2
- Consider `setup-util --order=...` instead of `-- order` HOT 1
- Consider porting larger commands to Rust HOT 1
- tmux problem / not working after updating dorothy [SOLVED]
- setup-util: support dmgs HOT 1
- Ongoing: additional linux distro support (mageia, nix, gentoo)
- setup-dns: add AdGuardDNS (sucessor to AdGuardHome) HOT 1
- Suggestion: revise the installation flow HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dorothy.