Skip to content

Commit 4076cb8

Browse files
committed
Merge branch 'release/v3.40.0'
2 parents 49c808b + d36c175 commit 4076cb8

6 files changed

Lines changed: 20 additions & 25 deletions

File tree

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1+
dist: xenial
12
sudo: false
23
language: python
34
python:
45
- '2.7'
56
- '3.4'
67
- '3.5'
78
- '3.6'
9+
- '3.7'
810
- pypy
911
install:
1012
- pip install .

docs/conf.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -41,18 +41,6 @@
4141
'sphinx.ext.napoleon',
4242
]
4343

44-
# Monkey patch to disable nonlocal image warning
45-
import sphinx
46-
if hasattr(sphinx, 'environment'):
47-
original_warn_mode = sphinx.environment.BuildEnvironment.warn_node
48-
49-
def allow_nonlocal_image_warn_node(self, msg, *args, **kwargs):
50-
if not msg.startswith('nonlocal image URI found:'):
51-
original_warn_mode(self, msg, *args, **kwargs)
52-
53-
sphinx.environment.BuildEnvironment.warn_node = \
54-
allow_nonlocal_image_warn_node
55-
5644
suppress_warnings = [
5745
'image.nonlocal_uri',
5846
]

progressbar/__about__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
long running operations.
2020
'''.strip().split())
2121
__email__ = 'wolph@wol.ph'
22-
__version__ = '3.39.3'
22+
__version__ = '3.40.0'
2323
__license__ = 'BSD'
2424
__copyright__ = 'Copyright 2015 Rick van Hattem (Wolph)'
2525
__url__ = 'https://github.com/WoLpH/python-progressbar'

progressbar/bar.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@
1010
import logging
1111
import warnings
1212
from datetime import datetime, timedelta
13-
import collections
13+
try: # pragma: no cover
14+
from collections import abc
15+
except ImportError: # pragma: no cover
16+
import collections as abc
1417

1518
from python_utils import converters
1619

@@ -47,7 +50,7 @@ def __del__(self):
4750
pass
4851

4952

50-
class ProgressBarBase(collections.Iterable, ProgressBarMixinBase):
53+
class ProgressBarBase(abc.Iterable, ProgressBarMixinBase):
5154
pass
5255

5356

setup.py

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -71,27 +71,28 @@
7171
'sphinx>=1.7.4',
7272
],
7373
'tests': [
74-
'flake8>=3.5.0',
75-
'pytest>=3.4.0',
76-
'pytest-cache>=1.0',
77-
'pytest-cov>=2.5.1',
78-
'pytest-flakes>=2.0.0',
74+
'flake8>=3.7.7',
75+
'pytest>=4.3.1',
76+
'pytest-cov>=2.6.1',
77+
'pytest-flakes>=4.0.0',
7978
'pytest-pep8>=1.0.6',
80-
'freezegun>=0.3.10',
81-
'sphinx>=1.7.1',
79+
'freezegun>=0.3.11',
80+
'sphinx>=1.8.5',
8281
],
8382
},
8483
classifiers=[
85-
'Development Status :: 5 - Production/Stable',
84+
'Development Status :: 6 - Mature',
8685
'Intended Audience :: Developers',
8786
'License :: OSI Approved :: BSD License',
8887
'Natural Language :: English',
8988
"Programming Language :: Python :: 2",
9089
'Programming Language :: Python :: 2.7',
9190
'Programming Language :: Python :: 3',
92-
'Programming Language :: Python :: 3.3',
9391
'Programming Language :: Python :: 3.4',
9492
'Programming Language :: Python :: 3.5',
93+
'Programming Language :: Python :: 3.6',
94+
'Programming Language :: Python :: 3.7',
95+
'Programming Language :: Python :: 3.8',
9596
'Programming Language :: Python :: Implementation :: PyPy',
9697
],
9798
)

tox.ini

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ basepython =
99
py35: python3.5
1010
py36: python3.6
1111
py37: python3.7
12+
py38: python3.8
1213
pypy: pypy
1314

1415
deps = -r{toxinidir}/tests/requirements.txt
@@ -20,7 +21,7 @@ deps = flake8
2021
commands = flake8 {toxinidir}/progressbar {toxinidir}/tests {toxinidir}/examples.py
2122

2223
[testenv:docs]
23-
basepython = python2.7
24+
basepython = python3
2425
deps = -r{toxinidir}/docs/requirements.txt
2526
whitelist_externals =
2627
rm

0 commit comments

Comments
 (0)