From ea8e22677a321c230157e0e901210401c2040dc9 Mon Sep 17 00:00:00 2001 From: Batuhan Taskaya Date: Wed, 8 Dec 2021 12:20:58 +0300 Subject: [PATCH] Fix snapcraft packaging (#1235) --- snapcraft.yaml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/snapcraft.yaml b/snapcraft.yaml index ce4fe79b..eb620c0e 100644 --- a/snapcraft.yaml +++ b/snapcraft.yaml @@ -64,18 +64,13 @@ parts: python -m pip install httpie-unixsocket python -m pip install httpie-snapdsocket - echo "Removing no more needed modules ..." - python -m pip uninstall -y pip wheel - override-prime: | snapcraftctl prime echo "Removing useless files ..." packages=$SNAPCRAFT_PRIME/lib/python3.8/site-packages - rm -rfv $packages/_distutils_hack rm -rfv $packages/pkg_resources/tests rm -rfv $packages/requests_unixsocket/test* - rm -rfv $packages/setuptools echo "Compiling pyc files ..." python -m compileall -f $packages @@ -112,3 +107,9 @@ apps: completer: httpie-completion.bash environment: LC_ALL: C.UTF-8 + + httpie: + command: bin/httpie + plugs: *plugs + environment: + LC_ALL: C.UTF-8