httpie-cli/docs/packaging/spack
Mickaël Schoentgen 419427cfb6
Update downstream files for HTTPie 2.6.0 (#1186)
* Update Alpine package

* Add charset-normalizer deps for Alpine

It currently does not exist. We will need to add it ourselves.

* Update Gentoo package

* Update Brew formula

* Update MacPorts port

* Fix Gentoo deps

* Update examples

* Update Void Linux package

* Update Void Linux commands

* Update Chocolateur package

* Review DEbian packaging details

* Simplify Void Linux package

* Update more packages

* Update summary everywhere

* Remove temporary file

* Update Chocolatey package URL

* Updates

* Update Spack
2021-10-19 10:18:35 +02:00
..
package.py Update downstream files for HTTPie 2.6.0 (#1186) 2021-10-19 10:18:35 +02:00
README.md Update downstream files for HTTPie 2.6.0 (#1186) 2021-10-19 10:18:35 +02:00

HTTPie on Spack

Welcome to the documentation about packaging HTTPie for Spack.

  • If you do not know HTTPie, have a look here.
  • If you are looking for HTTPie installation or upgrade instructions on Spack, then you can find them on that page (that one for macOS).
  • If you are looking for technical information about the HTTPie packaging on Spack, 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 Spack. They apply to Spack on Linux, and macOS. We will discuss setting up the environment, installing development tools, installing and testing changes before submitting a patch downstream.

Overall process

Open a pull request to update the downstream file (example).

  • The commit message must be httpie: add vXXX.
  • The commit must be signed-off (git commit -s).

Hacking

Launch the docker image:

docker pull spack/centos7
docker run -it --rm spack/centos7

From inside the container:

# Retrieve the patch of the latest HTTPie version
curl https://raw.githubusercontent.com/httpie/httpie/master/docs/packaging/spack/package.py \
    -o /opt/spack/var/spack/repos/builtin/packages/httpie/package.py

# Check available versions (it should show the new version)
spack versions httpie

# Check the package
spack spec httpie@XXX

# Install the package
spack install httpie@XXX
spack load httpie

# And test it!
http --version
https --version