forked from extern/httpie-cli
7989e438d2
* 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
1.7 KiB
1.7 KiB
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:
# Clone
git clone --depth=1 https://github.com/spack/spack.git
cd spack
# Retrieve the patch of the latest HTTPie version
curl https://raw.githubusercontent.com/httpie/httpie/master/docs/packaging/spack/package.py \
-o var/spack/repos/builtin/packages/httpie/package.py
# Check the package
spack spec httpie
# Check available versions (it should show the new version)
spack versions httpie
# Install the package
spack install httpie@XXX
spack load httpie
# And test it!
http --version
https --version