Skip to content

Commit

Permalink
Rename build_meta:legacy to build_meta:__legacy__
Browse files Browse the repository at this point in the history
  • Loading branch information
pganssle committed Feb 5, 2019
1 parent 11fb3f3 commit e04a41e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion changelog.d/1652.change.rst
Original file line number Diff line number Diff line change
@@ -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``.
4 changes: 2 additions & 2 deletions setuptools/build_meta.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
'prepare_metadata_for_build_wheel',
'build_wheel',
'build_sdist',
'legacy',
'__legacy__',
'SetupRequirementsError']

class SetupRequirementsError(BaseException):
Expand Down Expand Up @@ -228,4 +228,4 @@ def run_setup(self, setup_script='setup.py'):


# The legacy backend
legacy = _BuildMetaLegacyBackend()
__legacy__ = _BuildMetaLegacyBackend()
2 changes: 1 addition & 1 deletion setuptools/tests/test_build_meta.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ def test_build_sdist_relative_path_import(self, tmpdir_cwd):


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):
Expand Down

0 comments on commit e04a41e

Please sign in to comment.