From 8dfe2f41bbe1feee9f398a190c7dae3954f1e506 Mon Sep 17 00:00:00 2001 From: Michael Howitz Date: Thu, 8 Feb 2018 08:48:39 +0100 Subject: [PATCH] Rename files so the extension matches the content. (#6) * Rename files so the extension matches the content. This allows smother rendering on GH, too. * PEP-8. --- CHANGES.txt => CHANGES.rst | 0 README.txt => README.rst | 0 setup.py | 21 ++++++++++++--------- 3 files changed, 12 insertions(+), 9 deletions(-) rename CHANGES.txt => CHANGES.rst (100%) rename README.txt => README.rst (100%) diff --git a/CHANGES.txt b/CHANGES.rst similarity index 100% rename from CHANGES.txt rename to CHANGES.rst diff --git a/README.txt b/README.rst similarity index 100% rename from README.txt rename to README.rst diff --git a/setup.py b/setup.py index 464a324..88cf721 100644 --- a/setup.py +++ b/setup.py @@ -1,21 +1,24 @@ from setuptools import setup, find_packages -import os -def read(*rnames): - return open(os.path.join(os.path.dirname(__file__), *rnames)).read() + +def read(name): + """Read a file.""" + with open(name) as f: + return f.read() + long_description = ( - read('README.txt') + read('README.rst') + '\n' + - read('CHANGES.txt') - ) + read('CHANGES.rst') +) tests_require = [ 'zope.configuration', 'zope.schema', 'zope.testing > 4.6', 'zope.testrunner', - ] +] setup( @@ -58,8 +61,8 @@ def read(*rnames): 'zope.container', 'zope.interface', 'zope.location', - ], + ], tests_require=tests_require, test_suite='grokcore.annotation.tests.test_grok.test_suite', extras_require={'test': tests_require}, - ) +)