Skip to content

Commit

Permalink
Use a normalized package name in Python build test (#606)
Browse files Browse the repository at this point in the history
It appears that newer setuptools versions are no longer normalizing the
package name. Rather than update the name that we're looking for, we
should just use a normalized name to begin with so that the test works
with both old and newer setuptools versions.
  • Loading branch information
cottsay authored Jan 17, 2024
1 parent 1e87212 commit d29f38d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_build_python.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def _test_build_package(tmp_path_str, *, symlink_install):
(pkg.path / 'setup.py').write_text(
'from setuptools import setup\n'
'setup(\n'
' name="test_package",\n'
' name="test-package",\n'
' packages=["my_module"],\n'
')\n'
)
Expand Down

0 comments on commit d29f38d

Please sign in to comment.