forked from keras-team/keras
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move project metadata from setup.py to pyproject.toml (keras-team#20427)
* Move project metadata from setup.py to pyproject.toml * Override black target version (for now) to avoid other changes * PR feedback * Move explicit list of dependencies from setup.py to pyproject.toml * pathlib was already imported
- Loading branch information
Showing
5 changed files
with
62 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,55 @@ | ||
[build-system] | ||
requires = ["setuptools >=61.0"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "keras" | ||
authors = [ | ||
{name = "Keras team", email = "[email protected]"}, | ||
] | ||
description = "Multi-backend Keras" | ||
readme = "README.md" | ||
requires-python = ">=3.9" | ||
license = {text = "Apache License 2.0"} | ||
dynamic = ["version"] | ||
classifiers = [ | ||
"Development Status :: 4 - Beta", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3 :: Only", | ||
"Operating System :: Unix", | ||
"Operating System :: MacOS", | ||
"Intended Audience :: Science/Research", | ||
"Topic :: Scientific/Engineering", | ||
"Topic :: Software Development", | ||
] | ||
dependencies = [ | ||
"absl-py", | ||
"numpy", | ||
"rich", | ||
"namex", | ||
"h5py", | ||
"optree", | ||
"ml-dtypes", | ||
"packaging", | ||
] | ||
# Run also: pip install -r requirements.txt | ||
|
||
[project.urls] | ||
Home = "https://keras.io/" | ||
Repository = "https://github.com/keras-team/keras" | ||
|
||
[tool.setuptools.dynamic] | ||
version = {attr = "keras.src.version.__version__"} | ||
|
||
[tool.setuptools.packages.find] | ||
include = ["keras", "keras.*"] | ||
|
||
[tool.black] | ||
line-length = 80 | ||
target-version = [] | ||
|
||
# black needs this to be a regex | ||
# to add more exclude expressions | ||
|