[py] Fix license in package metadata and include copyright notices (#16114)

NOKEYCHECK=True
GitOrigin-RevId: 2a74c646f544de3bdb500753200c144e1c3e2a93
diff --git a/BUILD.bazel b/BUILD.bazel
index 37ace3e..7fa877d 100644
--- a/BUILD.bazel
+++ b/BUILD.bazel
@@ -196,6 +196,24 @@
     out = "selenium-%s.dist-info/LICENSE" % SE_VERSION,
 )
 
+select_file(
+    name = "global-notice",
+    srcs = "//:license",
+    subpath = "NOTICE",
+)
+
+copy_file(
+    name = "notice",
+    src = ":global-notice",
+    out = "NOTICE",
+)
+
+copy_file(
+    name = "notice-wheel",
+    src = ":global-notice",
+    out = "selenium-%s.dist-info/NOTICE" % SE_VERSION,
+)
+
 py_library(
     name = "selenium",
     srcs = glob(
@@ -251,6 +269,7 @@
         "README.rst",
         "pyproject.toml",
         ":license",
+        ":notice",
         ":selenium-pkg",
         ":selenium-pkginfo",
         "//rust:selenium_manager_srcs",
@@ -304,7 +323,7 @@
     description_file = "README.rst",
     distribution = "selenium",
     homepage = "https://www.selenium.dev",
-    license = "Apache 2.0",
+    license = "Apache-2.0",
     python_requires = ">=3.9",
     python_tag = "py3",
     requires = [
@@ -326,6 +345,7 @@
     visibility = ["//visibility:public"],
     deps = [
         ":license-wheel",
+        ":notice-wheel",
         ":selenium-pkg",
     ],
 )
diff --git a/LICENSE b/LICENSE
new file mode 120000
index 0000000..ea5b606
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1 @@
+../LICENSE
\ No newline at end of file
diff --git a/NOTICE b/NOTICE
new file mode 120000
index 0000000..7e1b82f
--- /dev/null
+++ b/NOTICE
@@ -0,0 +1 @@
+../NOTICE
\ No newline at end of file
diff --git a/pyproject.toml b/pyproject.toml
index a82fb0a..4611b38 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -5,7 +5,8 @@
 [project]
 name = "selenium"
 version = "4.35.0.202507081456"
-license = { text = "Apache 2.0" }
+license = "Apache-2.0"
+license-files = ["LICENSE", "NOTICE"]
 description = "Official Python bindings for Selenium WebDriver."
 readme = "README.rst"
 requires-python = "~=3.9"
@@ -67,7 +68,8 @@
     "selenium-manager",
     "selenium-manager.exe",
     "CHANGES",
-    "LICENSE"
+    "LICENSE",
+    "NOTICE",
 ]
 
 [tool.pytest.ini_options]