Skip to content

Commit 7802725

Browse files
authored
bump version, merge pull request #36 from iterative/devel
2 parents d93d6af + f0f48b4 commit 7802725

File tree

3 files changed

+10
-20
lines changed

3 files changed

+10
-20
lines changed

.github/workflows/test.yml

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -54,27 +54,18 @@ jobs:
5454
- id: dist
5555
uses: casperdcl/deploy-pypi@v2
5656
with:
57-
build: true
57+
pip: true
5858
password: ${{ secrets.PYPI_TOKEN }}
5959
upload: ${{ github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') }}
6060
- name: Changelog
6161
run: git log --pretty='format:%d%n- %s%n%b---' $(git tag --sort=v:refname | tail -n2 | head -n1)..HEAD > _CHANGES.md
6262
- if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
63-
id: create_release
64-
uses: actions/create-release@v1
63+
uses: softprops/action-gh-release@v1
6564
env:
66-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
65+
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
6766
with:
68-
tag_name: ${{ github.ref }}
69-
release_name: shtab ${{ github.ref }} beta
67+
release_name: shtab ${{ github.ref }} stable
7068
body_path: _CHANGES.md
7169
draft: true
72-
- if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
73-
uses: actions/upload-release-asset@v1
74-
env:
75-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
76-
with:
77-
upload_url: ${{ steps.create_release.outputs.upload_url }}
78-
asset_path: dist/${{ steps.dist.outputs.whl }}
79-
asset_name: ${{ steps.dist.outputs.whl }}
80-
asset_content_type: application/zip
70+
files: |
71+
dist/${{ steps.dist.outputs.whl }}

shtab/__init__.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -268,12 +268,11 @@ def complete_bash(
268268
# $1=COMP_WORDS[1]
269269
_shtab_compgen_files() {
270270
compgen -f -- $1 # files
271-
compgen -d -S '/' -- $1 # recurse into subdirs
272271
}
273272
274273
# $1=COMP_WORDS[1]
275274
_shtab_compgen_dirs() {
276-
compgen -d -S '/' -- $1 # recurse into subdirs
275+
compgen -d -- $1 # recurse into subdirs
277276
}
278277
279278
# $1=COMP_WORDS[1]
@@ -344,7 +343,7 @@ def complete_bash(
344343
return 0
345344
}
346345
347-
complete -o nospace -F {root_prefix} {prog}""",
346+
complete -o filenames -F {root_prefix} {prog}""",
348347
commands=" ".join(commands),
349348
options=" ".join(options),
350349
preamble=(

tests/test_shtab.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def test_prog_override(shell, caplog, capsys):
8181
captured = capsys.readouterr()
8282
assert not captured.err
8383
if shell == "bash":
84-
assert "complete -o nospace -F _shtab_shtab foo" in captured.out
84+
assert "complete -o filenames -F _shtab_shtab foo" in captured.out
8585

8686
assert not caplog.record_tuples
8787

@@ -95,7 +95,7 @@ def test_prog_scripts(shell, caplog, capsys):
9595
assert not captured.err
9696
script_py = [i.strip() for i in captured.out.splitlines() if "script.py" in i]
9797
if shell == "bash":
98-
assert script_py == ["complete -o nospace -F _shtab_shtab script.py"]
98+
assert script_py == ["complete -o filenames -F _shtab_shtab script.py"]
9999
elif shell == "zsh":
100100
assert script_py == [
101101
"#compdef script.py",

0 commit comments

Comments
 (0)