-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* remove `pyenv` related files and settings * move `rust.sh` from `~/.local/bin/server` to `~/.local/bin/common` * install `uv` * update * update * update
- Loading branch information
Showing
19 changed files
with
78 additions
and
257 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
8 changes: 0 additions & 8 deletions
8
home/.chezmoiscripts/ubuntu/run_once_09-install-pyenv.sh.tmpl
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
".pyenv": | ||
type: "git-repo" | ||
url: "https://github.com/pyenv/pyenv.git" | ||
refreshPeriod: "168h" | ||
# ".pyenv": | ||
# type: "git-repo" | ||
# url: "https://github.com/pyenv/pyenv.git" | ||
# refreshPeriod: "168h" | ||
|
||
".pyenv/plugins/pyenv-virtualenv": | ||
type: "git-repo" | ||
url: "https://github.com/pyenv/pyenv-virtualenv" | ||
refreshPeriod: "168h" | ||
# ".pyenv/plugins/pyenv-virtualenv": | ||
# type: "git-repo" | ||
# url: "https://github.com/pyenv/pyenv-virtualenv" | ||
# refreshPeriod: "168h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -Eeuo pipefail | ||
|
||
if [ "${DOTFILES_DEBUG:-}" ]; then | ||
set -x | ||
fi | ||
|
||
function install_uv() { | ||
# https://docs.astral.sh/uv/getting-started/installation/#standalone-installer | ||
curl -LsSf https://astral.sh/uv/install.sh | sh | ||
} | ||
|
||
function uninstall_uv() { | ||
# https://docs.astral.sh/uv/getting-started/installation/#uninstallation | ||
uv cache clean | ||
rm -rf "$(uv python dir)" | ||
rm -rf "$(uv tool dir)" | ||
rm -f "${HOME}/.cargo/bin/uv" "${HOME}/.cargo/bin/uvx" | ||
} | ||
|
||
function main() { | ||
install_uv | ||
} | ||
|
||
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then | ||
main | ||
fi |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/usr/bin/env bats | ||
|
||
readonly SCRIPT_PATH="./install/common/uv.sh" | ||
|
||
function setup() { | ||
source "${SCRIPT_PATH}" | ||
} | ||
|
||
function teardown() { | ||
uninstall_uv | ||
|
||
# reset PATH | ||
PATH=$(getconf PATH) | ||
export PATH | ||
} | ||
|
||
@test "[common] uv" { | ||
DOTFILES_DEBUG=1 bash "${SCRIPT_PATH}" | ||
|
||
export PATH="${PATH}:${HOME}/.cargo/bin" | ||
[ -x "$(command -v uv)" ] | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.