Make setup.py PEP8 compatible
diff --git a/setup.py b/setup.py
index b59bd63..7f4b86b 100644
--- a/setup.py
+++ b/setup.py
@@ -24,26 +24,27 @@
print("Running 'test' with setup.py is not supported. "
"Use 'pytest' or 'tox' to run the tests.")
+
###
# Load metadata
PACKAGES = find_packages(where='.', exclude=['dateutil.test'])
+
def README():
with io.open('README.rst', encoding='utf-8') as f:
readme_lines = f.readlines()
# The .. doctest directive is not supported by PyPA
lines_out = []
- doctest_line_found = False
for line in readme_lines:
if line.startswith('.. doctest'):
- doctest_line_found = True
lines_out.append('.. code-block:: python3\n')
else:
lines_out.append(line)
return ''.join(lines_out)
-README = README()
+README = README() # NOQA
+
setup(name="python-dateutil",
use_scm_version={