mirror of
https://github.com/httpie/cli.git
synced 2025-06-20 17:47:48 +02:00
Fix snapcraft packaging (#1235)
This commit is contained in:
parent
df58ec683e
commit
ea8e22677a
@ -64,18 +64,13 @@ parts:
|
|||||||
python -m pip install httpie-unixsocket
|
python -m pip install httpie-unixsocket
|
||||||
python -m pip install httpie-snapdsocket
|
python -m pip install httpie-snapdsocket
|
||||||
|
|
||||||
echo "Removing no more needed modules ..."
|
|
||||||
python -m pip uninstall -y pip wheel
|
|
||||||
|
|
||||||
override-prime: |
|
override-prime: |
|
||||||
snapcraftctl prime
|
snapcraftctl prime
|
||||||
|
|
||||||
echo "Removing useless files ..."
|
echo "Removing useless files ..."
|
||||||
packages=$SNAPCRAFT_PRIME/lib/python3.8/site-packages
|
packages=$SNAPCRAFT_PRIME/lib/python3.8/site-packages
|
||||||
rm -rfv $packages/_distutils_hack
|
|
||||||
rm -rfv $packages/pkg_resources/tests
|
rm -rfv $packages/pkg_resources/tests
|
||||||
rm -rfv $packages/requests_unixsocket/test*
|
rm -rfv $packages/requests_unixsocket/test*
|
||||||
rm -rfv $packages/setuptools
|
|
||||||
|
|
||||||
echo "Compiling pyc files ..."
|
echo "Compiling pyc files ..."
|
||||||
python -m compileall -f $packages
|
python -m compileall -f $packages
|
||||||
@ -112,3 +107,9 @@ apps:
|
|||||||
completer: httpie-completion.bash
|
completer: httpie-completion.bash
|
||||||
environment:
|
environment:
|
||||||
LC_ALL: C.UTF-8
|
LC_ALL: C.UTF-8
|
||||||
|
|
||||||
|
httpie:
|
||||||
|
command: bin/httpie
|
||||||
|
plugs: *plugs
|
||||||
|
environment:
|
||||||
|
LC_ALL: C.UTF-8
|
||||||
|
Loading…
x
Reference in New Issue
Block a user