Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/homebrew.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,5 @@ brew update-python-resources Formula/roll.rb
## Notes for `roll`

- `rl update` intentionally does not self-update. Homebrew users should use `brew upgrade roll`.
- package versioning is configured to work from git archives used by tagged source tarballs.
- the formula exports `SETUPTOOLS_SCM_PRETEND_VERSION_FOR_ROLL`, so Homebrew does not depend on git metadata surviving the GitHub archive step.
- a meaningful `brew test` should initialize a temporary archive and verify that `.roll` was created.
3 changes: 3 additions & 0 deletions packaging/homebrew/roll.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ class Roll < Formula
end

def install
# GitHub source archives do not reliably preserve enough VCS metadata for
# setuptools-scm, so pin the package version from the formula itself.
ENV["SETUPTOOLS_SCM_PRETEND_VERSION_FOR_ROLL"] = version.to_s
virtualenv_install_with_resources
end

Expand Down
Loading