diff options
| author | Sviatoslav Sydorenko <wk@sydorenko.org.ua> | 2017-08-09 23:16:13 +0300 |
|---|---|---|
| committer | Sviatoslav Sydorenko <wk@sydorenko.org.ua> | 2017-08-28 09:20:15 +0300 |
| commit | 986ff42f117e8ac3cc952bfc2c043f7de8ba7084 (patch) | |
| tree | d30161ac5b3ead6ef2544291844a93c673f6ee4e /setuptools/tests | |
| parent | 60cfeeacd34da6eb3881808f556ae4b194b60c73 (diff) | |
| download | external_python_setuptools-986ff42f117e8ac3cc952bfc2c043f7de8ba7084.tar.gz external_python_setuptools-986ff42f117e8ac3cc952bfc2c043f7de8ba7084.tar.bz2 external_python_setuptools-986ff42f117e8ac3cc952bfc2c043f7de8ba7084.zip | |
Allow adding few files @ metadata.long_description
Diffstat (limited to 'setuptools/tests')
| -rw-r--r-- | setuptools/tests/test_config.py | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/setuptools/tests/test_config.py b/setuptools/tests/test_config.py index dbabd69e..95ae60b2 100644 --- a/setuptools/tests/test_config.py +++ b/setuptools/tests/test_config.py @@ -139,6 +139,30 @@ class TestMetadata: assert metadata.download_url == 'http://test.test.com/test/' assert metadata.maintainer_email == 'test@test.com' + def test_file_mixed(self, tmpdir): + + fake_env( + tmpdir, + '[metadata]\n' + 'long_description =\n' + ' Some normal line\n' + ' file: README.rst\n' + ' Another line\n' + ' file: CHANGES.rst\n' + '\n' + ) + + tmpdir.join('README.rst').write('readme contents\nline2') + tmpdir.join('CHANGES.rst').write('changelog contents\nand stuff') + + with get_dist(tmpdir) as dist: + assert dist.metadata.long_description == ( + 'Some normal line\n' + 'readme contents\nline2\n' + 'Another line\n' + 'changelog contents\nand stuff' + ) + def test_file_sandboxed(self, tmpdir): fake_env( |
