Skip to content

Commit

Permalink
Merge pull request mailgun#51 from mailgun/vlad/REP-1803-fix-import-e…
Browse files Browse the repository at this point in the history
…rror

Fix import error for Python 3.6+
  • Loading branch information
wadcom authored Jun 20, 2022
2 parents 2dfafb4 + a3b14d7 commit db04243
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
9 changes: 9 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
=========
ChangeLog
=========

\

v1.2.2 (2022-06-20)
===================
* Fix import error for Python 3.6+.
4 changes: 4 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,17 @@ Expiring Dict
.. image:: https://coveralls.io/repos/github/mailgun/expiringdict/badge.svg?branch=master
:target: https://coveralls.io/github/mailgun/expiringdict?branch=master

ChangeLog_

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

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

.. _ChangeLog: ./CHANGELOG.rst

Installation
------------

Expand Down
8 changes: 7 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
from setuptools import setup, find_packages

try:
ModuleNotFoundError
except NameError:
ModuleNotFoundError = ImportError

try:
import md5 # fix for "No module named _md5" error
except ImportError:
Expand All @@ -14,7 +20,7 @@
]

setup(name="expiringdict",
version="1.2.1",
version="1.2.2",
description="Dictionary with auto-expiring values for caching purposes",
long_description=open("README.rst").read(),
classifiers=[
Expand Down

0 comments on commit db04243

Please sign in to comment.