diff --git a/pyproject.toml b/pyproject.toml
index 49a24dde2546e60136c5732ef3e1b296cfc0044e..5f097e1d72f3361649ff5cf11af28edebdea8bca 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -7,7 +7,7 @@ name = 'scikit-multimodallearn'
 dynamic = ["version", "dependencies"]
 requires-python = '>=3.6'
 
-license = {file = "license.txt"}
+license-files = [ "license.txt"]
 readme = {file = "README.rst", content-type = "text/x-rst"}
 description = 'A scikit-learn compatible package for multimodal Classifiers'
 authors = [