Skip to content

Commit

Permalink
Merge pull request #723 from pganssle/pep8_setup_py
Browse files Browse the repository at this point in the history
Fix Python 3.3 tests, make setup.py PEP 8 compliant
  • Loading branch information
pganssle committed May 22, 2018
2 parents 4ec670d + ca19f95 commit 2353c6a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ matrix:

install:
- pip install -U six && pip install -U tox
- if [[ $TRAVIS_PYTHON_VERSION == "3.3" ]]; then pip install 'virtualenv<16.0'; fi
- ./ci_tools/retry.sh python updatezinfo.py

script:
Expand Down
1 change: 1 addition & 0 deletions changelog.d/723.misc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Brought setup.py into compliance with PEP8. (gh pr #723)
7 changes: 4 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,26 +24,27 @@ def run(self):
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={
Expand Down

0 comments on commit 2353c6a

Please sign in to comment.