-
Notifications
You must be signed in to change notification settings - Fork 915
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: migrate to hatch/hatchling, drop Python 2 support (#626)
* Mark some TODOs; reword Ruff env description * Hatchling as build backend, add missing metadata * Mark wheel as py3 and above, support Python 3.8+ * Remove `setuptools`-specific files * Add hatch and friends, modernise build command * Drop dependence on `six` * Drop dependence on `future` * Pin NumPy <2 to allow the tests to pass * Bump some GHA tools versions * Bump to `setup-python` v5.1.1 * Preface command-line `tox` invocation with `python -m` * Temporarily exclude PyPy3.10-Windows
- Loading branch information
1 parent
c274f8a
commit 7832b4b
Showing
11 changed files
with
41 additions
and
52 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 was deleted.
Oops, something went wrong.
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
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,11 +1,12 @@ | ||
[build-system] | ||
requires = ["setuptools>=44"] | ||
build-backend = "setuptools.build_meta" | ||
requires = ["hatchling"] | ||
build-backend = "hatchling.build" | ||
|
||
[project] | ||
name = "autograd" | ||
version = "1.6.3" | ||
description = "Efficiently computes derivatives of numpy code." | ||
requires-python = ">=3.8" | ||
description = "Efficiently computes derivatives of NumPy code." | ||
readme = "README.md" | ||
license = {file = "license.txt"} | ||
authors = [ | ||
|
@@ -16,22 +17,20 @@ authors = [ | |
] | ||
maintainers = [ | ||
{name = "Jamie Townsend", email = "[email protected]"}, | ||
{name = "Fabian Joswig", email = "[email protected]"}, | ||
{name = "Agriya Khetarpal", email = "[email protected]"}, | ||
] | ||
classifiers = [ | ||
"Development Status :: 4 - Beta", | ||
"Intended Audience :: Information Technology", | ||
"Intended Audience :: Science/Research", | ||
"License :: OSI Approved :: MIT License", | ||
"Programming Language :: Python :: 2", | ||
"Programming Language :: Python :: 2.7", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.5", | ||
"Programming Language :: Python :: 3.6", | ||
"Programming Language :: Python :: 3.7", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
"Topic :: Scientific/Engineering", | ||
] | ||
keywords = [ | ||
"Automatic differentiation", | ||
|
@@ -41,14 +40,16 @@ keywords = [ | |
"optimization", | ||
"neural networks", | ||
"Python", | ||
"Numpy", | ||
"Scipy", | ||
"NumPy", | ||
"SciPy", | ||
] | ||
dependencies = [ | ||
"numpy>=1.12", | ||
"six", | ||
"future>=0.15.2; python_version < '3'", | ||
"numpy<2", | ||
] | ||
# dynamic = ["version"] | ||
|
||
[project.urls] | ||
Source = "https://github.com/HIPS/autograd" | ||
|
||
[project.optional-dependencies] | ||
scipy = [ | ||
|
@@ -69,12 +70,3 @@ extend-exclude = [] | |
extend-ignore = ["E731"] | ||
extend-select = ["I", "W"] | ||
line-length = 109 | ||
|
||
[tool.setuptools] | ||
packages=[ | ||
"autograd", | ||
"autograd.numpy", | ||
"autograd.scipy", | ||
"autograd.scipy.stats", | ||
"autograd.misc", | ||
] |
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