diff options
author | Paul Ganssle <pganssle@users.noreply.github.com> | 2018-10-29 16:38:10 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-29 16:38:10 -0400 |
commit | a50f09b90c4433aa4ef7b50c682413191da0a1d9 (patch) | |
tree | 17b5f6a345ca3040b51a922374607121ec006ccd /setuptools/tests | |
parent | 566f3aadfa112b8d6b9a1ecf5178552f6e0f8c6c (diff) | |
parent | 1c226bdeb61dbd82419508dcc65b9969d0f42e16 (diff) | |
download | external_python_setuptools-a50f09b90c4433aa4ef7b50c682413191da0a1d9.tar.gz external_python_setuptools-a50f09b90c4433aa4ef7b50c682413191da0a1d9.tar.bz2 external_python_setuptools-a50f09b90c4433aa4ef7b50c682413191da0a1d9.zip |
Merge pull request #1541 from smenon8/deprecate-requires
Deprecate the requires keyword
Diffstat (limited to 'setuptools/tests')
-rw-r--r-- | setuptools/tests/test_config.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/setuptools/tests/test_config.py b/setuptools/tests/test_config.py index 76759ec5..736c184d 100644 --- a/setuptools/tests/test_config.py +++ b/setuptools/tests/test_config.py @@ -391,6 +391,23 @@ class TestMetadata: with get_dist(tmpdir) as dist: assert set(dist.metadata.classifiers) == expected + def test_deprecated_config_handlers(self, tmpdir): + fake_env( + tmpdir, + '[metadata]\n' + 'version = 10.1.1\n' + 'description = Some description\n' + 'requires = some, requirement\n' + ) + + with pytest.deprecated_call(): + with get_dist(tmpdir) as dist: + metadata = dist.metadata + + assert metadata.version == '10.1.1' + assert metadata.description == 'Some description' + assert metadata.requires == ['some', 'requirement'] + class TestOptions: |