aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Ganssle <paul@ganssle.io>2019-02-05 08:42:36 -0500
committerPaul Ganssle <paul@ganssle.io>2019-02-05 08:42:36 -0500
commite04a41e3129fa9945e15b16fd6d65cc212c1d946 (patch)
treeb5a917f6755dd4fee499e48c4e4ef56d570ea10c
parent11fb3f38d23ff1e0d81e64ba3b68b3de2d2b990a (diff)
downloadexternal_python_setuptools-e04a41e3129fa9945e15b16fd6d65cc212c1d946.tar.gz
external_python_setuptools-e04a41e3129fa9945e15b16fd6d65cc212c1d946.tar.bz2
external_python_setuptools-e04a41e3129fa9945e15b16fd6d65cc212c1d946.zip
Rename build_meta:legacy to build_meta:__legacy__
-rw-r--r--changelog.d/1652.change.rst2
-rw-r--r--setuptools/build_meta.py4
-rw-r--r--setuptools/tests/test_build_meta.py2
3 files changed, 4 insertions, 4 deletions
diff --git a/changelog.d/1652.change.rst b/changelog.d/1652.change.rst
index 545365ac..387d212c 100644
--- a/changelog.d/1652.change.rst
+++ b/changelog.d/1652.change.rst
@@ -1 +1 @@
-Added the ``build_meta:legacy`` backend, a "compatibility mode" PEP 517 backend that can be used as the default when ``build-backend`` is left unspecified in ``pyproject.toml``.
+Added the ``build_meta:__legacy__`` backend, a "compatibility mode" PEP 517 backend that can be used as the default when ``build-backend`` is left unspecified in ``pyproject.toml``.
diff --git a/setuptools/build_meta.py b/setuptools/build_meta.py
index e16f319e..70b7ab23 100644
--- a/setuptools/build_meta.py
+++ b/setuptools/build_meta.py
@@ -40,7 +40,7 @@ __all__ = ['get_requires_for_build_sdist',
'prepare_metadata_for_build_wheel',
'build_wheel',
'build_sdist',
- 'legacy',
+ '__legacy__',
'SetupRequirementsError']
class SetupRequirementsError(BaseException):
@@ -228,4 +228,4 @@ build_sdist = _BACKEND.build_sdist
# The legacy backend
-legacy = _BuildMetaLegacyBackend()
+__legacy__ = _BuildMetaLegacyBackend()
diff --git a/setuptools/tests/test_build_meta.py b/setuptools/tests/test_build_meta.py
index 42e3098a..6236b9f4 100644
--- a/setuptools/tests/test_build_meta.py
+++ b/setuptools/tests/test_build_meta.py
@@ -270,7 +270,7 @@ class TestBuildMetaBackend:
class TestBuildMetaLegacyBackend(TestBuildMetaBackend):
- backend_name = 'setuptools.build_meta:legacy'
+ backend_name = 'setuptools.build_meta:__legacy__'
# build_meta_legacy-specific tests
def test_build_sdist_relative_path_import(self, tmpdir_cwd):