File tree Expand file tree Collapse file tree 4 files changed +31
-0
lines changed Expand file tree Collapse file tree 4 files changed +31
-0
lines changed Original file line number Diff line number Diff line change 1+ # SPDX-FileCopyrightText: 2023 The meson-python developers
2+ #
3+ # SPDX-License-Identifier: MIT
4+
5+ project (' encoding' , version : ' 1.0.0' )
6+
7+ py = import (' python' ).find_installation()
8+
9+ py.install_sources(' テスト.py' )
Original file line number Diff line number Diff line change 1+ # SPDX-FileCopyrightText: 2023 The meson-python developers
2+ #
3+ # SPDX-License-Identifier: MIT
4+
5+ [build-system ]
6+ build-backend = ' mesonpy'
7+ requires = [' meson-python' ]
Original file line number Diff line number Diff line change 1+ # SPDX-FileCopyrightText: 2023 The meson-python developers
2+ #
3+ # SPDX-License-Identifier: MIT
Original file line number Diff line number Diff line change @@ -338,3 +338,15 @@ def test_vendored_meson(wheel_vendored_meson):
338338 # This test will error if the vendored meson.py wrapper script in
339339 # the test package isn't used.
340340 pass
341+
342+
343+ def test_encoding (package_encoding , tmp_path ):
344+ with mesonpy ._project () as project :
345+ wheelname = project .wheel (tmp_path )
346+ artifact = wheel .wheelfile .WheelFile (tmp_path / wheelname )
347+ assert wheel_contents (artifact ) == {
348+ 'encoding-1.0.0.dist-info/METADATA' ,
349+ 'encoding-1.0.0.dist-info/RECORD' ,
350+ 'encoding-1.0.0.dist-info/WHEEL' ,
351+ 'テスト.py' ,
352+ }
You can’t perform that action at this time.
0 commit comments