Skip to content

Commit

Permalink
dev/python: use uv
Browse files Browse the repository at this point in the history
  • Loading branch information
ztlevi committed Jul 6, 2024
1 parent 758ca56 commit dcd8923
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 18 deletions.
2 changes: 1 addition & 1 deletion config
Submodule config updated 2 files
+3 −3 dev/python/rc.zsh
+0 −2 env
15 changes: 2 additions & 13 deletions dev/python/_init
Original file line number Diff line number Diff line change
@@ -1,15 +1,8 @@
#!/usr/bin/env zsh
source ${0:A:h}/../../deploy

_install_pip_packages() {
PIP3_INSTALL pip setuptools

# Other packages
PIP3_INSTALL debugpy pdbpp autoflake gnureadline
}

install() {
brew install pyright black poetry pylint ruff-lsp
brew install pyright black uv ruff-lsp

brew install [email protected]

Expand All @@ -28,13 +21,9 @@ install() {
)
;;
esac

_install_pip_packages
}

update() {
_install_pip_packages
}
update() {}

link() {
mklink $DOTTY_CONFIG_HOME/dev/python/config/black $XDG_CONFIG_HOME/
Expand Down
6 changes: 2 additions & 4 deletions misc/private/_init
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,14 @@ source ${0:A:h}/../../deploy
install() {
brew install rga pandoc poppler tesseract ffmpeg imagemagick graphicsmagick yt-dlp

# Deploy rust if not yet deployed
! topic-enabled-p dev/python && dotty dev/python
PIP3_INSTALL spotdl
echo-info "Install spotdl with a venv using uv"

! topic-enabled-p dev/node && ${0:A:h}/../../deploy dev/node
npm install hexo-cli reveal-md

case $(_os) in
macos)
brew install --cask appcleaner typora obsidian dropbox neteasemusic webtorrent \
brew install --cask appcleaner typora obsidian dropbox neteasemusic \
wpsoffice-cn keycastr discord zoom google-drive obs balenaEtcher

echo-info "Install the following apps from App Store"
Expand Down

0 comments on commit dcd8923

Please sign in to comment.