Skip to content

Commit db04243

Browse files
authored
Merge pull request #51 from mailgun/vlad/REP-1803-fix-import-error
Fix import error for Python 3.6+
2 parents 2dfafb4 + a3b14d7 commit db04243

File tree

3 files changed

+20
-1
lines changed

3 files changed

+20
-1
lines changed

CHANGELOG.rst

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
=========
2+
ChangeLog
3+
=========
4+
5+
\
6+
7+
v1.2.2 (2022-06-20)
8+
===================
9+
* Fix import error for Python 3.6+.

README.rst

+4
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,17 @@ Expiring Dict
77
.. image:: https://coveralls.io/repos/github/mailgun/expiringdict/badge.svg?branch=master
88
:target: https://coveralls.io/github/mailgun/expiringdict?branch=master
99

10+
ChangeLog_
11+
1012
expiringdict is a Python caching library. The core of the library is ExpiringDict class which
1113
is an ordered dictionary with auto-expiring values for caching purposes. Expiration happens on
1214
any access, object is locked during cleanup from expired values. ExpiringDict can not store
1315
more than `max_len` elements - the oldest will be deleted.
1416

1517
**Note:** Iteration over dict and also keys() do not remove expired values!
1618

19+
.. _ChangeLog: ./CHANGELOG.rst
20+
1721
Installation
1822
------------
1923

setup.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
from setuptools import setup, find_packages
2+
3+
try:
4+
ModuleNotFoundError
5+
except NameError:
6+
ModuleNotFoundError = ImportError
7+
28
try:
39
import md5 # fix for "No module named _md5" error
410
except ImportError:
@@ -14,7 +20,7 @@
1420
]
1521

1622
setup(name="expiringdict",
17-
version="1.2.1",
23+
version="1.2.2",
1824
description="Dictionary with auto-expiring values for caching purposes",
1925
long_description=open("README.rst").read(),
2026
classifiers=[

0 commit comments

Comments
 (0)