-
Notifications
You must be signed in to change notification settings - Fork 58
/
setupOLD.py
44 lines (39 loc) · 1.67 KB
/
setupOLD.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/usr/bin/env python
"""ipython_memory_usage: display memory usage during IPython execution
ipython_memory_usage is an IPython tool to report memory usage deltas for every command you type.
"""
doclines = __doc__.split("\n")
# Chosen from http://www.python.org/pypi?:action=list_classifiers
classifiers = """\
Development Status :: 5 - Production/Stable
Environment :: Console
Intended Audience :: Science/Research
Intended Audience :: Developers
License :: Free To Use But Restricted
Natural Language :: English
Operating System :: OS Independent
Programming Language :: Python
Topic :: Software Development :: Libraries :: Python Modules
Topic :: Software Development :: Testing
"""
from setuptools import setup, find_packages
setup(
name="ipython_memory_usage",
version="1.1",
url="https://github.com/ianozsvald/ipython_memory_usage",
author="Ian Ozsvald",
author_email="[email protected]",
maintainer="Ian Ozsvald",
maintainer_email="[email protected]",
description=doclines[0],
long_description = """IPython tool to report memory usage deltas for every command you type. If you are running out of RAM then use this tool to understand what's happening. It also records the time spent running each command. \n
In [3]: arr=np.random.uniform(size=int(1e7))\n
'arr=np.random.uniform(size=int(1e7))' used 76.2578 MiB RAM in 0.33s, peaked 0.00 MiB above current, total RAM usage 107.37 MiB
""",
long_description_content_type='text/markdown',
classifiers=filter(None, classifiers.split("\n")),
platforms=["Any."],
packages=['ipython_memory_usage'],
package_dir={'': 'src'},
install_requires=['IPython>=2.1', 'memory_profiler']
)