def test_get_readme(self): self.assertTrue(hasattr(setupextras, 'get_readme')) self.assertTrue(callable(setupextras.get_readme)) result = setupextras.get_readme() with open(path.join(helper.root_path(), 'README.md')) as readme: self.assertDeepEqual(result, readme.read()) foo_package_path = helper.fixture_path() result = setupextras.get_readme(foo_package_path) self.assertDeepEqual(result, None) foo_package_path = helper.fixture_path('py-foo') result = setupextras.get_readme(foo_package_path, silent=False) self.assertDeepEqual( result, '\n# foo\n\n*A foo library.*\n\n\n# Install\n\n```sh\npip install foo\n```\n\n# License\n\nReleased under the MIT license.\n' )
'url', 'serializer', 'deserializer', 'packer', 'unpacker', 'stringifier', 'parser', 'multi-host', ] packages = setupextras.get_packages() data_files = setupextras.get_data_files(['*.*'], os.path.join(name, 'tests', '__fixtures__')) requirements = setupextras.get_requirements() readme = setupextras.get_readme() config = { 'name': name, 'version': version, 'description': (description), 'keywords': keywords, 'author': 'Jonas Grimfelt', 'author_email': '*****@*****.**', 'url': 'https://github.com/grimen/python-{name}'.format(name=name),