Skip to content

Commit a1652f9

Browse files
authored
Fix pyproject.toml license classifier deprecation (#14592)
Gets rid of the 'deprecated' warnings that pop up multiple times during build/install Bumps setuptools requirement to accept the new license declaration format ### Summary Just a tiny PR, no change to API or code or anything. The license itself is as before, it just changes the manner in which it is declared -- as recommended by the PyPA guidelines https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license I tried to find any issue related to this but found none. And I guess not worth it creating one ### Test plan Since this does not change any of the code, I just tested that the package can be installed/built as before via `./install_executorch.sh`, and that the deprecation warnings vanish
1 parent 19258d2 commit a1652f9

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

pyproject.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
[build-system]
22
requires = [
33
"cmake>=3.29,<4.0.0", # For building binary targets in the wheel. 4.0.0 breaks third-party CMake build so temporarily pin the version.
4+
"packaging>=24.2", # Lower bound required by setuptools
45
"pip>=23", # For building the pip package.
56
"pyyaml", # Imported by the kernel codegen tools.
6-
"setuptools>=63", # For building the pip package contents.
7+
"setuptools>=77.0.3", # For building the pip package contents.
78
"wheel", # For building the pip package archive.
89
"zstd", # Imported by resolve_buck.py.
910
"certifi", # Imported by resolve_buck.py.
@@ -21,7 +22,8 @@ readme = "README-wheel.md"
2122
authors = [
2223
{name="PyTorch Team", email="[email protected]"},
2324
]
24-
license = {file = "LICENSE"}
25+
license = "BSD-3-Clause"
26+
license-files = ["LICENSE"]
2527
keywords = ["pytorch", "machine learning"]
2628
# PyPI package information.
2729
classifiers = [
@@ -33,7 +35,6 @@ classifiers = [
3335
"Intended Audience :: Developers",
3436
"Intended Audience :: Education",
3537
"Intended Audience :: Science/Research",
36-
"License :: OSI Approved :: BSD License",
3738
"Topic :: Scientific/Engineering",
3839
"Topic :: Scientific/Engineering :: Mathematics",
3940
"Topic :: Scientific/Engineering :: Artificial Intelligence",

requirements-dev.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
# Pip packages needed to build from source. Mainly for development of ExecuTorch.
22

33
cmake>=3.29, <4.0.0 # For building binary targets in the wheel.
4+
packaging>=24.2 # Lower bound required by setuptools
45
pip>=23 # For building the pip package.
56
pyyaml # Imported by the kernel codegen tools.
6-
setuptools>=63 # For building the pip package contents.
7+
setuptools>=77.0.3 # For building the pip package contents.
78
wheel # For building the pip package archive.
89
zstd # Imported by resolve_buck.py.
910
certifi # Imported by resolve_buck.py.

0 commit comments

Comments
 (0)