Skip to content

Commit 65fd67b

Browse files
committed
setup package for uploading to PyPI
1 parent 66d8fa8 commit 65fd67b

File tree

6 files changed

+21
-3
lines changed

6 files changed

+21
-3
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# python-memoization
2-
A minimalist functional caching lib for Python
2+
A minimalist functional caching lib for Python, with TTL and auto memory management support.
3+
4+
## Installation
5+
6+
```bash
7+
pip install memoization
8+
```
39

410
## Usage in 2 lines
511

memoization/__init__.py

Whitespace-only changes.
File renamed without changes.

memoization.py renamed to memoization/memoization.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import time
66
from functools import wraps
77

8-
__version__ = 'v0.0.3'
8+
__version__ = '0.0.6'
99
_cache = {}
1010

1111

@@ -185,5 +185,6 @@ def _retrieve_safe_function_id(func):
185185

186186
if __name__ == '__main__':
187187
import sys
188-
sys.stderr.write('python-memoization ' + __version__ + ': A minimalist functional caching lib for Python\n')
188+
sys.stderr.write('python-memoization v' + __version__ +
189+
': A minimalist functional caching lib for Python, with TTL and auto memory management support.\n')
189190
sys.stderr.write('Go to https://github.com/lonelyenvoy/python-memoization for usage and more details.\n')

memoization/setup.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
from setuptools import setup, find_packages
2+
3+
setup(name='memoization',
4+
version='0.0.6',
5+
description='A minimalist functional caching lib for Python, with TTL and auto memory management support',
6+
keywords='memoization memorization decorator cache functional ttl capacity',
7+
url='https://github.com/lonelyenvoy/python-memoization',
8+
author='lonelyenvoy',
9+
author_email='petrinchor@gmail.com',
10+
license='MIT',
11+
packages=find_packages())
File renamed without changes.

0 commit comments

Comments
 (0)