Skip to content

Commit

Permalink
Black formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Audun Skaugen committed Jan 13, 2021
1 parent 832b10b commit b2d24fd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion poetry/core/masonry/builders/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def find_excluded_files(self): # type: () -> Set[str]

explicitely_included = set()
for inc in self._package.include:
included_glob = inc['path']
included_glob = inc["path"]
for included in self._path.glob(str(included_glob)):
explicitely_included.add(
Path(included).relative_to(self._path).as_posix()
Expand Down
3 changes: 2 additions & 1 deletion tests/masonry/builders/test_wheel.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ def test_wheel_excluded_nested_data():
assert "my_package/public/item1/subitem/subitemdata.txt" not in z.namelist()
assert "my_package/public/item2/itemdata2.txt" not in z.namelist()


def test_include_excluded_code():
module_path = fixtures_dir / "include_excluded_code"
poetry = Factory().create_poetry(module_path)
Expand All @@ -109,6 +110,7 @@ def test_include_excluded_code():
assert "my_package/generated.py" in z.namelist()
assert "lib/my_package/generated.py" not in z.namelist()


def test_wheel_localversionlabel():
module_path = fixtures_dir / "localversionlabel"
project = Factory().create_poetry(module_path)
Expand Down Expand Up @@ -282,4 +284,3 @@ def test_default_src_with_excluded_data(mocker):
assert "my_package/data/data1.txt" in names
assert "my_package/data/sub_data/data2.txt" not in names
assert "my_package/data/sub_data/data3.txt" in names

0 comments on commit b2d24fd

Please sign in to comment.