Skip to content

Commit 49f5a68

Browse files
authored
Merge pull request #18 from kjerstadius/path-match
Pass match rather than pattern argument to files()
2 parents 4e0c64f + 315c5a9 commit 49f5a68

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

requirements-dev.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ scikit-build>=0.7.1
1010
setuptools>=28.0.0
1111
twine
1212
virtualenv>=15.0.3
13-
wheel
13+
wheel==0.31.1

tests/test_distribution.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import os
33
import pytest
44

5-
from path import Path
5+
from path import Path, matchers
66

77
DIST_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__), '../dist'))
88

@@ -18,7 +18,7 @@ def _check_ninja_install(virtualenv):
1818

1919
@pytest.mark.skipif(not Path(DIST_DIR).exists(), reason="dist directory does not exist")
2020
def test_source_distribution(virtualenv):
21-
sdists = Path(DIST_DIR).files(pattern="*.tar.gz")
21+
sdists = Path(DIST_DIR).files(match=matchers.CaseInsensitive("*.tar.gz"))
2222
if not sdists:
2323
pytest.skip("no source distribution available")
2424
assert len(sdists) == 1
@@ -32,7 +32,7 @@ def test_source_distribution(virtualenv):
3232

3333
@pytest.mark.skipif(not Path(DIST_DIR).exists(), reason="dist directory does not exist")
3434
def test_wheel(virtualenv):
35-
wheels = Path(DIST_DIR).files(pattern="*.whl")
35+
wheels = Path(DIST_DIR).files(match=matchers.CaseInsensitive("*.whl"))
3636
if not wheels:
3737
pytest.skip("no wheel available")
3838
assert len(wheels) == 1

0 commit comments

Comments
 (0)