--- /dev/null
+.. change::
+ :tags: change, general
+ :tickets: 11818
+ :versions: 2.0.33 1.4.54
+
+ The pin for ``setuptools<69.3`` in ``pyproject.toml`` has been removed.
+ This pin was to prevent a sudden change in setuptools to use :pep:`625`
+ from taking place, which would change the file name of SQLAlchemy's source
+ distribution on pypi to be an all lower case name, which is likely to cause
+ problems with various build environments that expected the previous naming
+ style. However, the presence of this pin is holding back environments that
+ otherwise want to use a newer setuptools, so we've decided to move forward
+ with this change, with the assumption that build environments will have
+ largely accommodated the setuptools change by now.
+
+ This change was first released in version 2.0.33 however is being
+ backported to 1.4.54 to support ongoing releases.
+
--- /dev/null
+.. change::
+ :tags: change, general
+
+ The setuptools "test" command is removed from the 1.4 series as modern
+ versions of setuptools actively refuse to accommodate this extension being
+ present. This change was already part of the 2.0 series. To run the
+ test suite use the ``tox`` command.
[build-system]
build-backend = "setuptools.build_meta"
requires = [
- # avoid moving to https://github.com/pypa/setuptools/issues/3593
- # until we're ready
- "setuptools>=44,<69.3",
+ "setuptools>=44",
]
[tool.black]
from setuptools import Extension
from setuptools import setup
from setuptools.command.build_ext import build_ext
-from setuptools.command.test import test as TestCommand
# attempt to use pep-632 imports for setuptools symbols; however,
# since these symbols were only added to setuptools as of 59.0.1,
return True
-class UseTox(TestCommand):
- RED = 31
- RESET_SEQ = "\033[0m"
- BOLD_SEQ = "\033[1m"
- COLOR_SEQ = "\033[1;%dm"
-
- def run_tests(self):
- sys.stderr.write(
- "%s%spython setup.py test is deprecated by pypa. Please invoke "
- "'tox' with no arguments for a basic test run.\n%s"
- % (self.COLOR_SEQ % self.RED, self.BOLD_SEQ, self.RESET_SEQ)
- )
- sys.exit(1)
-
-
-cmdclass["test"] = UseTox
-
-
def status_msgs(*msgs):
print("*" * 75)
for msg in msgs: