Skip to content

Commit

Permalink
Add failing test for issue gh-399
Browse files Browse the repository at this point in the history
  • Loading branch information
takluyver committed Mar 21, 2021
1 parent bbd08ed commit 6d86c80
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions flit_core/flit_core/tests/samples/inclusion/LICENSES/README
Original file line number Diff line number Diff line change
@@ -0,0 1,2 @@
This directory will match the LICENSE* glob which Flit uses to add license
files to wheel metadata.
12 changes: 12 additions & 0 deletions flit_core/flit_core/tests/test_wheel.py
Original file line number Diff line number Diff line change
@@ -0,0 1,12 @@
from pathlib import Path

from testpath import assert_isfile

from flit_core.wheel import make_wheel_in

samples_dir = Path(__file__).parent / 'samples'

def test_licenses_dir(tmp_path):
# Smoketest for https://github.com/takluyver/flit/issues/399
info = make_wheel_in(samples_dir / 'inclusion' / 'pyproject.toml', tmp_path)
assert_isfile(info.file)

0 comments on commit 6d86c80

Please sign in to comment.