4228 Commits

Author SHA1 Message Date
Rylan Polster
e344cb6aff
Merge pull request #11648 from Rylan12/homebrew-json
Install formulae from JSON files
2021-07-13 02:54:49 -04:00
Rylan Polster
1973e72015
BottleAPI: fix tests 2021-07-13 02:29:03 -04:00
Rylan Polster
68c2be5c17
BottleAPI: add tests 2021-07-12 03:03:29 -04:00
Mike McQuaid
5659d74ff5
Merge pull request #11646 from chenrui333/add-test-epub
fixtures: add test.epub
2021-07-09 17:15:25 +01:00
Rui Chen
b28f14aac2 fixtures: add test.epub
Signed-off-by: Rui Chen <rui@chenrui.dev>
2021-07-09 11:39:58 -04:00
Nanda H Krishna
5ccfbcd1d2
Autocorrect style issues with brew style --fix 2021-07-08 12:36:39 +05:30
Mike McQuaid
1680ddb267
utils/repology: temporarily disable functionality.
Doesn't work with system `curl` currently.
2021-06-30 09:20:56 +01:00
Mike McQuaid
a4c2e0e1b3
Tweak BuildPulse/rspec-retry logic
BuildPulse is trying to find flaky tests for us but, given the previous
model of using `rspec-retry`, it would rarely find them. Instead, let's
try to always rerun `brew tests` multiple times, report to BuildPulse
each time (by moving the reporting logic into `brew tests`) and disable
`rspec-retry` when using BuildPulse.

While we're here, let's enable `rspec-retry` locally so we don't have
flaky tests biting maintainers/contributors there.
2021-06-29 12:43:47 +01:00
Carlo Cabrera
3d3b9874f9
language/python: create venvs with access to system site packages
A user may wish to use two use two brew-installed Python packages
together. For example, one might want to `import numpy` when using
`jupyterlab` or `ptpython`.

Currently, the only ways to do this I'm aware of is with some hacking of
`PYTHONPATH` or the creation of `.pth` files in a formula's prefix.

A better solution is to allow the virtualenvs that `brew` creates to
have access to system site-packages by default, so that `import numpy`
inside `ptpython` or `jupyterlab` just works.

Partially resolves Homebrew/homebrew-core#76950.
2021-06-28 03:20:03 +01:00
Michael Cho
d304c84f2a
test/utils/github_spec: fix artifact number 2021-06-25 11:36:13 -07:00
Alexander Bayandin
d55cbeac78
github_spec: Update PR number with unexpired artifacts 2021-06-24 13:29:44 +01:00
Sam Ford
0752d25125
OS::Mac: Move version methods into ::Version 2021-06-23 09:03:46 -04:00
Mike McQuaid
08c96df947
release_notes: refactor/cleanup.
This was failing for me locally so I've made some fixes:
- remove the `markdown` flag (as it's the only path now)
- refactor the generation to not use intermediate variables
- discard more weird cases rather than erroring
- exclude @Homebrew changes (e.g. from bots) because we don't care about
  these in the release notes
2021-06-21 14:25:01 +01:00
Rylan Polster
46164a3054
Merge pull request #11555 from Rylan12/remove-homebrew-core
Allow for homebrew/core to be untapped
2021-06-18 16:05:24 -04:00
Alexander Bayandin
7c962c0aa8
audit_spec: simplify tests 2021-06-18 17:34:43 +01:00
Alexander Bayandin
43d67816ea
audit_conflicts: enable for third-party taps 2021-06-18 17:34:42 +01:00
Alexander Bayandin
1ddb6ef584
audit: do not allow aliases and renames in formula conflicts 2021-06-18 17:34:42 +01:00
Alexander Bayandin
84e3e0a6b8
audit_spec: add tests for audit_conflicts 2021-06-18 17:34:42 +01:00
Rylan Polster
60203afdd5
Merge env variables into HOMEBREW_JSON_CORE 2021-06-18 12:10:26 -04:00
Mike McQuaid
72c59c816f
Merge pull request #11548 from MikeMcQuaid/3_2_deprecate_disable_remove
Deprecate, disable, delete code for Homebrew 3.2.0
2021-06-18 14:34:10 +01:00
Misty De Meo
c0a02442d9
Revert "language/java: use shortened brew paths"
This reverts commits 318175cfe2b23328f1b5f13812fd59cfd45fe1dc,
e7ab760392b9691a6c730b7e0d660b7874969e70 and
3b35af63f608438b1882756feca94a6ebdd0d6a3 (PR #11537).
2021-06-17 20:29:43 -07:00
Rylan Polster
1cb0f0fbf2
Merge pull request #11534 from Rylan12/formulary-map
Formulary: map formula names to local bottle paths
2021-06-17 12:26:05 -04:00
Mike McQuaid
30a65342e8
Deprecate, disable, delete code for Homebrew 3.2.0
Do the usual deprecation, disable, delete dance for Homebrew 3.2.0.
2021-06-17 11:34:32 +01:00
Sam Ford
d4c15a6d9d
Version: Add parser for hyphenated filenames 2021-06-16 14:16:57 -04:00
Rylan Polster
8b04bcb994
Only allow mapping with environment variable
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2021-06-16 10:27:15 -04:00
Misty De Meo
3cf5c3239f
Merge pull request #11544 from mistydemeo/fix_tests
Fix a pair of tests on Apple silicon
2021-06-16 03:15:06 -07:00
Misty De Meo
5d5fb944d2
List spec: fix hardcoded library path 2021-06-15 21:24:50 -07:00
Misty De Meo
93ea8b6350
Analytics spec: avoid ARM-specific strings 2021-06-15 20:35:21 -07:00
Rylan Polster
75c1a23f63
Rename method to ::map_name_to_bottle 2021-06-15 11:21:59 -04:00
Caleb Xu
e7ab760392
extend/pathname: use shortened brew paths 2021-06-15 09:58:46 -04:00
Caleb Xu
318175cfe2
Utils: add shortened_brew_path 2021-06-15 09:58:46 -04:00
Sam Ford
e8f803bc75
Cask::Audit: Handle livecheck skip conditions 2021-06-14 14:28:27 -04:00
Rylan Polster
44bc942703
Fix tests 2021-06-14 12:59:03 -04:00
Rylan Polster
e9631d969c
Formulary: add ::map to map formula refs 2021-06-14 12:01:01 -04:00
Bo Anderson
a06d136d2c
Move Sorbet gems into an optional group 2021-06-11 08:10:30 +01:00
Nanda H Krishna
ffaa042457
test/pkg_version_spec: fix style 2021-06-10 13:42:33 +05:30
Rylan Polster
08b44afcdf
cli/parser: allow options to be hidden 2021-06-08 22:02:32 -04:00
Dawid Dziurla
9657303ed2
Merge pull request #11492 from SMillerDev/fix/service/add_linux_target
service: add install block to unit
2021-06-08 02:14:01 +02:00
Rylan Polster
aebaa7f8df
formula: only include sha256 for core formulae in bottle JSON 2021-06-05 12:31:55 -04:00
Rylan Polster
d60f549a48
info: add --bottle option for JSON bottle info 2021-06-05 12:27:24 -04:00
Sean Molenaar
8250f73383
service: add install block to unit 2021-06-05 17:59:17 +02:00
Rylan Polster
8b0f7e7ada
formula: add to_bottle_hash method 2021-06-03 12:59:42 -04:00
Mike McQuaid
8171fd6b1b
Merge pull request #11447 from scpeters/lowercase_formula_names
audit: complain about uppercase formula names
2021-05-31 12:30:42 +01:00
Connor Mann
0da4c4e3ce
Update tests 2021-05-29 13:16:27 -04:00
Steve Peters
ca6fc4873e
audit_spec: expect error for uppercase formula
Our docs state that formula filenames must not have uppercase letters.
This adds a test to expect that FormulaAuditor's audit_formula_name
method complains about such a formula.
2021-05-27 17:45:24 -07:00
Rylan Polster
d0f5a0832e
Merge pull request #11397 from cnnrmnn/add-link-head
Add `brew link --HEAD`
2021-05-26 11:46:58 -04:00
Sean Molenaar
3ce5737425
service: ensure environment variables are strings 2021-05-25 20:52:51 +02:00
Sean Molenaar
ef9c49c5b2
service: ensure environment variables are prefixed in command 2021-05-25 11:47:44 +02:00
Connor Mann
d50b32313f Fix to_kegs test 2021-05-24 09:17:52 -04:00
Connor Mann
b81a522230 Add tests for to_latest_kegs 2021-05-23 16:09:35 -04:00