diff --git a/pyproject.toml b/pyproject.toml
index 5f4bc735bb11d65173167f61075ac6870dcebb63..00649a5a4728152439e2417a2fb2b5bb055a2b9e 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -8,6 +8,7 @@ dynamic = ["version", "dependencies"]
 requires-python = '>=3.6'
 
 license = "BSD-3-Clause"
+license-files = ["license.txt"]
 readme = {file = "README.rst", content-type = "text/x-rst"}
 description = 'A scikit-learn compatible package for multimodal Classifiers'
 authors = [
@@ -44,8 +45,7 @@ doc = ["sphinx==5.0", "numpydoc", "sphinx_gallery", "matplotlib", "sphinx_rtd_th
 Documentation  = "https://multi-learn.github.io/scikit-multimodallearn/"
 "Bug Tracker" = "https://github.com/multi-learn/scikit-multimodallearn/issues"
 
-[tool.setuptools]
-license-files = ["license.txt"]
+
 
 [tool.setuptools.dynamic]
 dependencies = {file = ["requirements.txt"]}