jenkins-docker/notes.txt

28 lines
1.2 KiB
Plaintext

// fpm -s python -t deb -n sudoisytdl sudoisytdl-0.1.6/setup.py
// PATH=~/.local/bin:$PATH
// PIPX_HOME=/opt pipx install ./sudoisytdl-0.1.6.tar.gz
// fpn -t deb -v 0.1.6 -n sudoisytdl -d python3.9 -s dir ~/.local/pipx/venvs/sudoisytdl/=/usr/local
// dpkg -I sudoisytdl_0.1.6_all.deb | grep Depends | cut -d':' -f2- | tr "," "\n" | tr -d " " | tr -d ")" | tr -d "(" | sed -e "s/^python-//"
// dpkg -I sudoisytdl_0.1.6_all.deb | grep Depends | cut -d':' -f2- | tr "," "\n" | cut -d' ' -f2| sort -u | sed -e "s/^python-//"
// pip download -r req.txt --no-deps --no-binary :all:
// poetry install
// poetry build
// tar xf dist/sudoisytdl-0.1.6.tar.gz
// fpm -s python -t deb -n sudoisytdl sudoisytdl-0.1.6/setup.py
// deps=$(dpkg -I sudoisytdl_0.1.6_all.deb | grep Depends | cut -d':' -f2- | tr "," "\n" | cut -d' ' -f2| sort -u | sed -e "s/^python-//" | | sed -e "s/^telegram-/python-telegram-/")
//
for i in $deps; do
version=$(poetry run pip show $i | grep Version | cut -d' ' -f2)
pip download --no-deps --no-binary :all: "${i}==${version}"
tar xf ${i}-${version}.tar.gz
fpm -s python -t deb -n $i ${i}-${version}/setup.py
done
//
// pip download -r req.txt --no-deps --no-binary :all:
//
//