Skip to content

Commit

Permalink
Support only Python 3.6+
Browse files Browse the repository at this point in the history
  • Loading branch information
elyezer committed May 24, 2019
1 parent 19bf4fc commit a0088d6
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 13 deletions.
9 changes: 3 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
dist: xenial
sudo: false
language: python
python:
- "2.7"
- "3.4"
- "3.5"
- "3.6"
- '3.6'
- '3.7'
install: pip install -r requirements-dev.txt .
script:
- make lint
- make test
notifications:
irc: "chat.freenode.net#robottelo"
14 changes: 12 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,20 @@
author_email='[email protected]',
packages=find_packages(),
install_requires=['Click', 'termcolor', 'docutils', 'pyyaml'],
entry_points='''
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
],
entry_points="""
[console_scripts]
testimony=testimony.cli:testimony
''',
""",
description='Testimony inspects and reports on the python test cases.',
long_description=long_description,
license=license,
Expand Down
2 changes: 1 addition & 1 deletion testimony/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
try:
import termcolor
HAS_TERMCOLOR = True
except ImportError as exception:
except ImportError:
HAS_TERMCOLOR = False

SETTINGS = {
Expand Down
5 changes: 1 addition & 4 deletions testimony/parser.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
# coding=utf-8
"""Docstring parser utilities for Testimony."""
from collections import namedtuple
from io import StringIO
from xml.etree import ElementTree
try:
from io import StringIO
except:
from StringIO import StringIO

from docutils.core import publish_string
from docutils.parsers.rst import nodes, roles
Expand Down

0 comments on commit a0088d6

Please sign in to comment.