Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gitfs: migrate to python@3.10 #90923

Closed
Closed
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
8 changes: 4 additions & 4 deletions Formula/gitfs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ class Gitfs < Formula
url "https://github.com/presslabs/gitfs/archive/0.5.2.tar.gz"
sha256 "921e24311e3b8ea3a5448d698a11a747618ee8dd62d5d43a85801de0b111cbf3"
license "Apache-2.0"
revision 8
revision 9
head "https://github.com/presslabs/gitfs.git", branch: "master"

bottle do
sha256 cellar: :any_skip_relocation, x86_64_linux: "5ac737aa93de2901de21b51cf1938665df9d1d8b2b21e514e2ff209d6249ed2a"
end

depends_on "libgit2"
depends_on "python@3.9"
depends_on "python@3.10"

uses_from_macos "libffi"

Expand Down Expand Up @@ -97,7 +97,7 @@ def caveats
end

test do
xy = Language::Python.major_minor_version Formula["python@3.9"].opt_bin/"python3"
xy = Language::Python.major_minor_version Formula["python@3.10"].opt_bin/"python3"
ENV.prepend_create_path "PYTHONPATH", libexec/"lib/python#{xy}/site-packages"

(testpath/"test.py").write <<~EOS
Expand All @@ -106,7 +106,7 @@ def caveats
pygit2.init_repository('testing/.git', True)
EOS

system Formula["python@3.9"].opt_bin/"python3", "test.py"
system Formula["python@3.10"].opt_bin/"python3", "test.py"
assert_predicate testpath/"testing/.git/config", :exist?
cd "testing" do
system "git", "remote", "add", "homebrew", "https://github.com/Homebrew/homebrew-core.git"
Expand Down