httpie-cli/docs/packaging/snapcraft/README.md
Mickaël Schoentgen 7989e438d2
Add documentation about our release process (#1159)
* Add documentation about our release process

* Fixes

* Add company-related tasks, enable back WIP pages

* Fix WIP links

* Add AOSC OS

* Add WIP for AOSC OS

* Tweak

* Remove maintainers email IDs

* Use GH nicknames

* Remove useless WIP for brew

* Tweaks
2021-10-06 16:45:44 +02:00

1.6 KiB

HTTPie on Snapcraft

Welcome to the documentation about packaging HTTPie for Snapcraft.

  • If you do not know HTTPie, have a look here.
  • If you are looking for HTTPie installation or upgrade instructions on Snapcraft, then you can find them on that page (that one for macOS).
  • If you are looking for technical information about the HTTPie packaging on Snapcraft, then you are in a good place.

About

This document contains technical details, where we describe how to create a patch for the latest HTTPie version for Snapcraft. They apply to Snapcraft on Linux, macOS, and Windows. We will discuss setting up the environment, installing development tools, installing and testing changes before submitting a patch downstream.

Overall process

Trigger a new build, then promote it. If more management is needed: revisions supervision.

Hacking

Launch the docker image:

docker pull ubuntu/latest
docker run -it --rm ubuntu/latest

From inside the container:

# Clone
git clone --depth=1 https://github.com/httpie/httpie.git
cd httpie

# Build
export SNAPCRAFT_BUILD_ENVIRONMENT_CPU=8
export SNAPCRAFT_BUILD_ENVIRONMENT_MEMORY=16G
snapcraft --debug

# Install
sudo snap install --dangerous httpie_XXX_amd64.snap

# Test
httpie.http --version
httpie.https --version
# Auto-aliases cannot be tested when installing a snap outside the store.
# http --version
# https --version

# Remove
sudo snap remove httpie