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

tests/test_admin/test_brew.py::test_brew failing on GitHub Actions #466

Closed
adamtheturtle opened this issue Oct 7, 2021 · 1 comment
Closed

Comments

@adamtheturtle
Copy link
Member

adamtheturtle commented Oct 7, 2021

Locally on my Mac this passes.

The error is:

==> /home/linuxbrew/.linuxbrew/Cellar/vws/2019.12.30.8/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-installed /tmp/vws--tomli-20211007-2753-4da4kl/tomli-1.2.1
Last 15 lines from /root/.cache/Homebrew/Logs/vws/12.pip:
  File "/home/linuxbrew/.linuxbrew/Cellar/vws/2019.12.30.8/libexec/lib/python3.9/site-packages/pip/_internal/distributions/sdist.py", line 34, in prepare_distribution_metadata
    self._setup_isolation(finder)
  File "/home/linuxbrew/.linuxbrew/Cellar/vws/2019.12.30.8/libexec/lib/python3.9/site-packages/pip/_internal/distributions/sdist.py", line 62, in _setup_isolation
    self.req.build_env.install_requirements(
  File "/home/linuxbrew/.linuxbrew/Cellar/vws/2019.12.30.8/libexec/lib/python3.9/site-packages/pip/_internal/build_env.py", line 202, in install_requirements
    self._install_requirements(
  File "/home/linuxbrew/.linuxbrew/Cellar/vws/2019.12.30.8/libexec/lib/python3.9/site-packages/pip/_internal/build_env.py", line 250, in _install_requirements
    call_subprocess(args, spinner=spinner, extra_environ=extra_environ)
  File "/home/linuxbrew/.linuxbrew/Cellar/vws/2019.12.30.8/libexec/lib/python3.9/site-packages/pip/_internal/utils/subprocess.py", line 244, in call_subprocess
    raise InstallationSubprocessError(proc.returncode, command_desc)
pip._internal.exceptions.InstallationSubprocessError: Command errored out with exit status 1: /home/linuxbrew/.linuxbrew/Cellar/vws/2019.12.30.8/libexec/bin/python3.9 /tmp/pip-standalone-pip-mw5zcoqx/__env_pip__.zip/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-jg7maubm/overlay --no-warn-script-location -v --no-binary :all: --only-binary :none: -i https://pypi.org/simple -- 'flit_core>=3.2.0,<4' Check the logs for full command output.
WARNING: You are using pip version 21.1.3; however, version 21.2.4 is available.
You should consider upgrading via the '/home/linuxbrew/.linuxbrew/Cellar/vws/2019.12.30.8/libexec/bin/python3.9 -m pip install --upgrade pip' command.
Removed file:///tmp/vws--tomli-20211007-2753-4da4kl/tomli-1.2.1 from build tracker '/tmp/pip-req-tracker-zcrykvg9'
Removed build tracker: '/tmp/pip-req-tracker-zcrykvg9'

Do not report this issue to Homebrew/brew or Homebrew/core!

Traceback (most recent call last):
        43: from /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/build.rb:229:in `<main>'
        42: from /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/build.rb:133:in `install'
        41: from /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/utils.rb:550:in `with_env'
        40: from /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/build.rb:138:in `block in install'
        39: from /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/formula.rb:1274:in `brew'
        38: from /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/formula.rb:2394:in `stage'
        37: from /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3_2/lib/ruby/2.6.0/forwardable.rb:230:in `stage'
        36: from /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/resource.rb:91:in `stage'
        35: from /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/resource.rb:116:in `unpack'
        34: from /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/resource.rb:199:in `mktemp'
        33: from /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/mktemp.rb:63:in `run'
        32: from /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/mktemp.rb:63:in `chdir'
        31: from /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/mktemp.rb:63:in `block in run'
        30: from /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/resource.rb:117:in `block in unpack'
        29: from /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/download_strategy.rb:102:in `stage'
        28: from /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/download_strategy.rb:115:in `chdir'
        27: from /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/download_strategy.rb:115:in `chdir'
        26: from /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/resource.rb:121:in `block (2 levels) in unpack'
        25: from /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/formula.rb:2414:in `block in stage'
        24: from /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/utils.rb:550:in `with_env'
        23: from /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/formula.rb:2415:in `block (2 levels) in stage'
        22: from /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/formula.rb:1281:in `block in brew'
        21: from /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/build.rb:178:in `block (2 levels) in install'
        20: from /src/vws.rb:87:in `install'
        19: from /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/language/python.rb:188:in `virtualenv_install_with_resources'
        18: from /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/language/python.rb:259:in `pip_install'
        17: from /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/language/python.rb:259:in `each'
        16: from /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/language/python.rb:261:in `block in pip_install'
        15: from /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/resource.rb:91:in `stage'
        14: from /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/resource.rb:116:in `unpack'
        13: from /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/resource.rb:199:in `mktemp'
        12: from /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/mktemp.rb:63:in `run'
        11: from /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/mktemp.rb:63:in `chdir'
        10: from /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/mktemp.rb:63:in `block in run'
         9: from /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/resource.rb:117:in `block in unpack'
         8: from /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/download_strategy.rb:102:in `stage'
         7: from /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/download_strategy.rb:115:in `chdir'
         6: from /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/download_strategy.rb:115:in `chdir'
         5: from /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/resource.rb:121:in `block (2 levels) in unpack'
         4: from /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/language/python.rb:261:in `block (2 levels) in pip_install'
         3: from /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/language/python.rb:288:in `do_install'
         2: from /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/formula.rb:2185:in `system'
         1: from /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/formula.rb:2185:in `open'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/formula.rb:2249:in `block in system': Failed executing: /home/linuxbrew/.linuxbrew/Cellar/vws/2019.12.30.8/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-installed /tmp/vws--tomli-20211007-2753-4da4kl/tomli-1.2.1 (BuildError)
        5: from /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/brew.rb:164:in `<main>'
        4: from /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/brew.rb:176:in `rescue in <main>'
        3: from /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/exceptions.rb:509:in `dump'
        2: from /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/exceptions.rb:455:in `issues'
        1: from /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/exceptions.rb:459:in `fetch_issues'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/utils/github.rb:60:in `issues_for_formula': undefined method `full_name' for nil:NilClass (NoMethodError)

To help debug, I have SSH'd into a build agent.

/root/.cache/Homebrew/Logs/vws/12.pip is mentioned in the error above.

Looking at that we see:

re<4,>=3.2.0) to build tracker '/tmp/pip-req-tracker-zcrykvg9'
      Running setup.py (path:/tmp/pip-install-2964awf9/toml_c044e283d9b342088a51f5c6812fe955/setup.py) egg_info for package toml
      Created temporary directory: /tmp/pip-pip-egg-info-ctfm5afi
      Running command python setup.py egg_info
      Traceback (most recent call last):
        File "<string>", line 1, in <module>
        File "/tmp/pip-install-2964awf9/toml_c044e283d9b342088a51f5c6812fe955/setup.py", line 3, in <module>
          setup(name='toml',
        File "/home/linuxbrew/.linuxbrew/opt/python@3.9/lib/python3.9/distutils/core.py", line 108, in setup
          _setup_distribution = dist = klass(attrs)
        File "/home/linuxbrew/.linuxbrew/Cellar/vws/2019.12.30.8/libexec/lib/python3.9/site-packages/setuptools/dist.py", line 455, in __init__
          _Distribution.__init__(self, {
        File "/home/linuxbrew/.linuxbrew/opt/python@3.9/lib/python3.9/distutils/dist.py", line 292, in __init__
          self.finalize_options()
        File "/home/linuxbrew/.linuxbrew/Cellar/vws/2019.12.30.8/libexec/lib/python3.9/site-packages/setuptools/dist.py", line 800, in finalize_options
          for ep in sorted(eps, key=by_order):
        File "/home/linuxbrew/.linuxbrew/Cellar/vws/2019.12.30.8/libexec/lib/python3.9/site-packages/setuptools/dist.py", line 799, in <lambda>
          eps = map(lambda e: e.load(), pkg_resources.iter_entry_points(group))
        File "/home/linuxbrew/.linuxbrew/Cellar/vws/2019.12.30.8/libexec/lib/python3.9/site-packages/pkg_resources/__init__.py", line 2449, in load
          self.require(*args, **kwargs)
        File "/home/linuxbrew/.linuxbrew/Cellar/vws/2019.12.30.8/libexec/lib/python3.9/site-packages/pkg_resources/__init__.py", line 2472, in require
          items = working_set.resolve(reqs, env, installer, extras=self.extras)
        File "/home/linuxbrew/.linuxbrew/Cellar/vws/2019.12.30.8/libexec/lib/python3.9/site-packages/pkg_resources/__init__.py", line 772, in resolve
          raise DistributionNotFound(req, requirers)
      pkg_resources.DistributionNotFound: The 'tomli>=1.0.0' distribution was not found and is required by the application
  WARNING: Discarding https://files.pythonhosted.org/packages/11/79/d88a538950184342693ed829db6a59999513eade0706a26f4bf6f76122fa/toml-0.6.0.tar.gz#sha256=0103cd3598cac83f5c4eb281c1e3381aec214776b8c719a373c7d07f52c18d9b (from https://pypi.org/simple/toml/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
  Collecting flit_core<4,>=3.2.0
    Created temporary directory: /tmp/pip-unpack-f89dfczs
    Looking up "https://files.pythonhosted.org/packages/a7/06/700a2ae25c67bf3722c9b01788f43808ebc94b6a544b5008770e19406f6a/flit_core-3.2.0.tar.gz" in the cache
    No cache entry available
    https://files.pythonhosted.org:443 "GET /packages/a7/06/700a2ae25c67bf3722c9b01788f43808ebc94b6a544b5008770e19406f6a/flit_core-3.2.0.tar.gz HTTP/1.1" 200 27417
    Downloading flit_core-3.2.0.tar.gz (27 kB)
    Ignoring unknown cache-control directive: immutable
    Updating cache with response from "https://files.pythonhosted.org/packages/a7/06/700a2ae25c67bf3722c9b01788f43808ebc94b6a544b5008770e19406f6a/flit_core-3.2.0.tar.gz"
    Caching due to etag
    Added flit_core<4,>=3.2.0 from https://files.pythonhosted.org/packages/a7/06/700a2ae25c67bf3722c9b01788f43808ebc94b6a544b5008770e19406f6a/flit_core-3.2.0.tar.gz#sha256=ff87f25c5dbc24ef30ea334074e35030e4885e4c5de3bf4e21f15746f6d99431 to build tracker '/tmp/pip-req-tracker-zcrykvg9'
    Created temporary directory: /tmp/pip-build-env-uyxudwh2
    Getting requirements to build wheel: started
    Running command /home/linuxbrew/.linuxbrew/Cellar/vws/2019.12.30.8/libexec/bin/python3.9 /tmp/tmpjyesgmjy_in_process.py get_requires_for_build_wheel /tmp/tmpy_hk_tbx
    Getting requirements to build wheel: finished with status 'done'
      Created temporary directory: /tmp/pip-modern-metadata-ybn1xmq8
      Preparing wheel metadata: started
      Running command /home/linuxbrew/.linuxbrew/Cellar/vws/2019.12.30.8/libexec/bin/python3.9 /tmp/tmp0gd3dosx_in_process.py prepare_metadata_for_build_wheel /tmp/tmp2ba5hw96
      Preparing wheel metadata: finished with status 'done'
    Source in /tmp/pip-install-2964awf9/flit-core_c00c23a333eb43b7ad21baa9ae0148ba has version 3.2.0, which satisfies requirement flit_core<4,>=3.2.0 from https://files.pythonhosted.org/packages/a7/06/700a2ae25c67bf3722c9b01788f43808ebc94b6a544b5008770e19406f6a/flit_core-3.2.0.tar.gz#sha256=ff87f25c5dbc24ef30ea334074e35030e4885e4c5de3bf4e21f15746f6d99431
    Removed flit_core<4,>=3.2.0 from https://files.pythonhosted.org/packages/a7/06/700a2ae25c67bf3722c9b01788f43808ebc94b6a544b5008770e19406f6a/flit_core-3.2.0.tar.gz#sha256=ff87f25c5dbc24ef30ea334074e35030e4885e4c5de3bf4e21f15746f6d99431 from build tracker '/tmp/pip-req-tracker-zcrykvg9'
  ERROR: Cannot install flit-core==3.2.0 and flit-core==3.3.0 because these package versions have conflicting dependencies.

  The conflict is caused by:
G
  To fix this you could try to:
  1. loosen the range of package versions you've specified
  2. remove package versions to allow pip attempt to solve the dependency conflict

  ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/user_guide/#fixing-conflicting-dependencies
  Exception information:
  Traceback (most recent call last):
    File "/tmp/pip-standalone-pip-mw5zcoqx/__env_pip__.zip/pip/_internal/resolution/resolvelib/resolver.py", line 127, in resolve
      result = self._result = resolver.resolve(
    File "/tmp/pip-standalone-pip-mw5zcoqx/__env_pip__.zip/pip/_vendor/resolvelib/resolvers.py", line 473, in resolve
      state = resolution.resolve(requirements, max_rounds=max_rounds)
    File "/tmp/pip-standalone-pip-mw5zcoqx/__env_pip__.zip/pip/_vendor/resolvelib/resolvers.py", line 377, in resolve
      raise ResolutionImpossible(causes)
  pip._vendor.resolvelib.resolvers.ResolutionImpossible: [RequirementInformation(requirement=SpecifierRequirement('toml'), parent=LinkCandidate('https://files.pythonhosted.org/packages/6f/cd/3653de7b1d61f0ef95f2459ac752f23a91dbc84f991787201aa52d0cf1cc/flit_core-3.3.0.tar.gz#sha256=b1404accffd6504b5f24eeca9ec5d3c877f828d16825348ba81515fa084bd5f0 (from https://pypi.org/simple/flit-core/) (requires-python:>=3.4)')), RequirementInformation(requirement=SpecifierRequirement('toml'), parent=LinkCandidate('https://files.pythonhosted.org/packages/a7/06/700a2ae25c67bf3722c9b01788f43808ebc94b6a544b5008770e19406f6a/flit_core-3.2.0.tar.gz#sha256=ff87f25c5dbc24ef30ea334074e35030e4885e4c5de3bf4e21f15746f6d99431 (from https://pypi.org/simple/flit-core/) (requires-python:>=3.4)'))]

  The above exception was the direct cause of the following exception:

  Traceback (most recent call last):
    File "/tmp/pip-standalone-pip-mw5zcoqx/__env_pip__.zip/pip/_internal/cli/base_command.py", line 180, in _main

The brew file I was checking with:

class Vws < Formula
  include Language::Python::Virtualenv

  # URL Taken from https://github.com/VWS-Python/vws-cli/archive/refs/tags/2019.12.30.8.tar.gz - we don't need this to be right yet
  url "https://github.com/VWS-Python/vws-cli/archive/refs/tags/2019.12.30.8.tar.gz"
  head "file:///Users/adam/Documents/personal/vws-cli"
  homepage ""
  depends_on "python@3.9"
  depends_on "pkg-config"

  resource "certifi" do
    url "https://files.pythonhosted.org/packages/06/a9/cd1fd8ee13f73a4d4f491ee219deeeae20afefa914dfb4c130cfc9dc397a/certifi-2020.12.5.tar.gz"
    sha256 "1a4995114262bffbc2413b159f2a1a480c969de6e6eb13ee966d470af86af59c"
  end

  resource "chardet" do
    url "https://files.pythonhosted.org/packages/ee/2d/9cdc2b527e127b4c9db64b86647d567985940ac3698eeabc7ffaccb4ea61/chardet-4.0.0.tar.gz"
    sha256 "0d6f53a15db4120f2b08c94f11e7d93d2c911ee118b6b30a04ec3ee8310179fa"
  end

  resource "click" do
    url "https://files.pythonhosted.org/packages/21/83/308a74ca1104fe1e3197d31693a7a2db67c2d4e668f20f43a2fca491f9f7/click-8.0.1.tar.gz"
    sha256 "8c04c11192119b1ef78ea049e0a6f0463e4c48ef00a30160c704337586f3ad7a"
  end

  resource "func-timeout" do
    url "https://files.pythonhosted.org/packages/b3/0d/bf0567477f7281d9a3926c582bfef21bff7498fc0ffd3e9de21811896a0b/func_timeout-4.3.5.tar.gz"
    sha256 "74cd3c428ec94f4edfba81f9b2f14904846d5ffccc27c92433b8b5939b5575dd"
  end

  resource "idna" do
    url "https://files.pythonhosted.org/packages/ea/b7/e0e3c1c467636186c39925827be42f16fee389dc404ac29e930e9136be70/idna-2.10.tar.gz"
    sha256 "b307872f855b18632ce0c21c5e45be78c0ea7ae4c15c828c20788b26921eb3f6"
  end

  resource "packaging" do
    url "https://files.pythonhosted.org/packages/86/3c/bcd09ec5df7123abcf695009221a52f90438d877a2f1499453c6938f5728/packaging-20.9.tar.gz"
    sha256 "5b327ac1320dc863dca72f4514ecc086f31186744b84a230374cc1fd776feae5"
  end

  resource "pyparsing" do
    url "https://files.pythonhosted.org/packages/c1/47/dfc9c342c9842bbe0036c7f763d2d6686bcf5eb1808ba3e170afdb282210/pyparsing-2.4.7.tar.gz"
    sha256 "c203ec8783bf771a155b207279b9bccb8dea02d8f0c9e5f8ead507bc3246ecc1"
  end

  resource "PyYAML" do
    url "https://files.pythonhosted.org/packages/a0/a4/d63f2d7597e1a4b55aa3b4d6c5b029991d3b824b5bd331af8d4ab1ed687d/PyYAML-5.4.1.tar.gz"
    sha256 "607774cbba28732bfa802b54baa7484215f530991055bb562efbed5b2f20a45e"
  end

  resource "requests" do
    url "https://files.pythonhosted.org/packages/6b/47/c14abc08432ab22dc18b9892252efaf005ab44066de871e72a38d6af464b/requests-2.25.1.tar.gz"
    sha256 "27973dd4a904a4f13b263a19c866c13b92a39ed1c964655f025f3f8d3d75b804"
  end

  resource "setuptools-scm" do
    url "https://files.pythonhosted.org/packages/4b/0d/ecb9595fae02467edba5023eb8a23c688d2b438a6a8d1a9e2b8649faf23d/setuptools_scm-6.3.2.tar.gz"
    sha256 "a49aa8081eeb3514eb9728fa5040f2eaa962d6c6f4ec9c32f6c1fba88f88a0f2"
  end

  resource "tomli" do
    url "https://files.pythonhosted.org/packages/75/50/973397c5ba854445bcc396b593b5db1958da6ab8d665b27397daa1497018/tomli-1.2.1.tar.gz"
    sha256 "a5b75cb6f3968abb47af1b40c1819dc519ea82bcc065776a866e8d74c5ca9442"
  end

  resource "urllib3" do
    url "https://files.pythonhosted.org/packages/cb/cf/871177f1fc795c6c10787bc0e1f27bb6cf7b81dbde399fd35860472cecbc/urllib3-1.26.4.tar.gz"
    sha256 "e7b021f7241115872f92f43c6508082facffbd1c048e3c6e2bb9c2a157e28937"
  end

  resource "VWS-Auth-Tools" do
    url "https://files.pythonhosted.org/packages/ed/13/8564f5579d8bec87729ff1d0024659f46055c826f5ef70852e14f623dc59/VWS%20Auth%20Tools-2020.5.31.0.tar.gz"
    sha256 "abcf70927d3a4b1cf4f8eb573e970d29654b877ecdcb5e01d3789dd1266b4067"
  end

  resource "VWS-Python" do
    url "https://files.pythonhosted.org/packages/43/72/e89d3659b063f14053609fb9cbbf6c8260b311d20639d47c001e25358359/VWS%20Python-2021.3.28.2.tar.gz"
    sha256 "cbfa6edbd44befb4e332263b5f28d501d2d711db6a544d417f20656985faf8e7"
  end

  resource "wrapt" do
    url "https://files.pythonhosted.org/packages/82/f7/e43cefbe88c5fd371f4cf0cf5eb3feccd07515af9fd6cf7dbf1d1793a797/wrapt-1.12.1.tar.gz"
    sha256 "b62ffa81fb85f4332a4f609cab4ac40709470da05643a082ec1eb88e6d9b97d7"
  end

  def install
    virtualenv_install_with_resources
  end
end

Progress towards minimising this recipe:

class Vws < Formula
  include Language::Python::Virtualenv

  # URL Taken from https://github.com/VWS-Python/vws-cli/archive/refs/tags/2019.12.30.8.tar.gz - we don't need this to be right yet
  url "https://github.com/VWS-Python/vws-cli/archive/refs/tags/2019.12.30.8.tar.gz"
  depends_on "python@3.9"
  depends_on "pkg-config"

  resource "setuptools-scm" do
    url "https://files.pythonhosted.org/packages/4b/0d/ecb9595fae02467edba5023eb8a23c688d2b438a6a8d1a9e2b8649faf23d/setuptools_scm-6.3.2.tar.gz"
    sha256 "a49aa8081eeb3514eb9728fa5040f2eaa962d6c6f4ec9c32f6c1fba88f88a0f2"
  end

  def install
    virtualenv_install_with_resources
  end
end

The reproduction includes:

$ touch vws.rb
$ vi vws.rb
:set paste
(Paste the above rb code)
$ docker run -it -v $(pwd):/src linuxbrew/brew bash
$ export HOMEBREW_NO_AUTO_UPDATE=1
$ cd /src
$ brew install vws.rb

If I remove all Python requirements except tomli, the error does not persist.

@adamtheturtle
Copy link
Member Author

This is caused by pypa/flit#451.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant