]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
use pep639 license
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 14 May 2025 12:24:44 +0000 (08:24 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 14 May 2025 14:47:43 +0000 (10:47 -0400)
Removed the "license classifier" from setup.cfg for SQLAlchemy 2.0, which
eliminates loud deprecation warnings when building the package.  SQLAlchemy
2.1 will use a full :pep:`639` configuration in pyproject.toml while
SQLAlchemy 2.0 remains using ``setup.cfg`` for setup.

for main, also bumping setuptools to 77.0.3 as we no longer have
py3.7, 3.8 to worry about

Change-Id: If732dca7f9b57a4c6a789a68ecc77f0293be4786

doc/build/changelog/unreleased_20/use_pep639.rst [new file with mode: 0644]
pyproject.toml

diff --git a/doc/build/changelog/unreleased_20/use_pep639.rst b/doc/build/changelog/unreleased_20/use_pep639.rst
new file mode 100644 (file)
index 0000000..ff73d87
--- /dev/null
@@ -0,0 +1,9 @@
+.. change::
+    :tags: bug, installation
+
+    Removed the "license classifier" from setup.cfg for SQLAlchemy 2.0, which
+    eliminates loud deprecation warnings when building the package.  SQLAlchemy
+    2.1 will use a full :pep:`639` configuration in pyproject.toml while
+    SQLAlchemy 2.0 remains using ``setup.cfg`` for setup.
+
+
index 4365a9a7f08d49dc19dccc7db0ace6b7abe0e3fe..dd1ac6de5a47d0280e3146ebaa9de90a1e1e0004 100644 (file)
@@ -1,7 +1,7 @@
 [build-system]
 build-backend = "setuptools.build_meta"
 requires = [
-    "setuptools>=61.0",
+    "setuptools>=77.0.3",
     "cython>=3; platform_python_implementation == 'CPython'", # Skip cython when using pypy
 ]
 
@@ -11,11 +11,11 @@ name = "SQLAlchemy"
 description = "Database Abstraction Library"
 readme = "README.rst"
 authors = [{name = "Mike Bayer", email = "mike_mp@zzzcomputing.com"}]
-license = {text = "MIT"}
+license = "MIT"
+license-files = ["LICENSE"]
 classifiers = [
     "Development Status :: 5 - Production/Stable",
     "Intended Audience :: Developers",
-    "License :: OSI Approved :: MIT License",
     "Operating System :: OS Independent",
     "Programming Language :: Python",
     "Programming Language :: Python :: 3",
@@ -100,7 +100,6 @@ postgresql_psycopgbinary = ["sqlalchemy[postgresql-psycopgbinary]"]
 
 [tool.setuptools]
 include-package-data = true
-license-files = ["LICENSE"]
 
 [tool.setuptools.packages.find]
 where = ["lib"]