Skip to content

Commit 2dbc8af

Browse files
authored
Support Grout Wildcards (#1439)
* Support Grout Wildcards * Disable `Upload coverage to Codecov` which is already broken for sometime
1 parent 84c36b6 commit 2dbc8af

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

.github/workflows/test-library.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -545,11 +545,11 @@ jobs:
545545
--parallel-live
546546
--skip-missing-interpreters false
547547
--skip-pkg-install
548-
- name: Upload coverage to Codecov
549-
uses: codecov/codecov-action@v3
550-
with:
551-
flags: pytest, GHA, Python ${{ matrix.python }}, ${{ runner.os }}
552-
verbose: true
548+
# - name: Upload coverage to Codecov
549+
# uses: codecov/codecov-action@v3
550+
# with:
551+
# flags: pytest, GHA, Python ${{ matrix.python }}, ${{ runner.os }}
552+
# verbose: true
553553

554554
test-container:
555555
runs-on: ubuntu-20.04

proxy/proxy.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,10 +466,11 @@ def _parse() -> Tuple[str, int]:
466466
parser = argparse.ArgumentParser(add_help=False)
467467
parser.add_argument('route', nargs='?', default=None)
468468
parser.add_argument('name', nargs='?', default=None)
469+
parser.add_argument('--wildcard', action='store_true', help='Enable wildcard')
469470
args, _remaining_args = parser.parse_known_args()
470471
grout_tld = default_grout_tld
471472
if args.name is not None and '.' in args.name:
472-
grout_tld = args.name.split('.', maxsplit=1)[1]
473+
grout_tld = args.name if args.wildcard else args.name.split('.', maxsplit=1)[1]
473474
grout_tld_parts = grout_tld.split(':')
474475
tld_host = grout_tld_parts[0]
475476
tld_port = 443

0 commit comments

Comments
 (0)