summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cliff/columns.py9
-rw-r--r--lower-constraints.txt2
-rw-r--r--setup.cfg1
-rw-r--r--setup.py1
-rw-r--r--tox.ini2
5 files changed, 10 insertions, 5 deletions
diff --git a/cliff/columns.py b/cliff/columns.py
index c2b5fe1..6ecef64 100644
--- a/cliff/columns.py
+++ b/cliff/columns.py
@@ -21,10 +21,14 @@ class FormattableColumn(object, metaclass=abc.ABCMeta):
def __init__(self, value):
self._value = value
+ def __eq__(self, other):
+ return (
+ self.__class__ == other.__class__ and self._value == other._value
+ )
+
@abc.abstractmethod
def human_readable(self):
- """Return a basic human readable version of the data.
- """
+ """Return a basic human readable version of the data."""
def machine_readable(self):
"""Return a raw data structure using only Python built-in types.
@@ -32,6 +36,5 @@ class FormattableColumn(object, metaclass=abc.ABCMeta):
It must be possible to serialize the return value directly
using a formatter like JSON, and it will be up to the
formatter plugin to decide how to make that transformation.
-
"""
return self._value
diff --git a/lower-constraints.txt b/lower-constraints.txt
index 8dd8957..15a7668 100644
--- a/lower-constraints.txt
+++ b/lower-constraints.txt
@@ -10,7 +10,7 @@ GitPython==1.0.1
imagesize==0.7.1
Jinja2==2.10
linecache2==1.0.0
-MarkupSafe==1.0
+MarkupSafe==1.1.1
pbr==2.0.0
prettytable==0.7.2
Pygments==2.2.0
diff --git a/setup.cfg b/setup.cfg
index f755402..63ebbf7 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -13,6 +13,7 @@ classifier =
Programming Language :: Python :: 3
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
+ Programming Language :: Python :: 3.8
Programming Language :: Python :: 3 :: Only
Programming Language :: Python :: Implementation :: CPython
Intended Audience :: Developers
diff --git a/setup.py b/setup.py
index f63cc23..77fd783 100644
--- a/setup.py
+++ b/setup.py
@@ -18,4 +18,5 @@ import setuptools
setuptools.setup(
setup_requires=['pbr>=2.0.0'],
+ install_requires=['setuptools'],
pbr=True)
diff --git a/tox.ini b/tox.ini
index 4c2eab5..b794c83 100644
--- a/tox.ini
+++ b/tox.ini
@@ -15,7 +15,7 @@ commands =
stestr run {posargs}
stestr slowest
deps =
- -c{env:UPPER_CONSTRAINTS_FILE:https://opendev.org/openstack/requirements/raw/upper-constraints.txt}
+ -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/test-requirements.txt
-r{toxinidir}/requirements.txt