-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsetup.py
More file actions
53 lines (45 loc) · 1.4 KB
/
setup.py
File metadata and controls
53 lines (45 loc) · 1.4 KB
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
45
46
47
48
49
50
51
52
53
project_name = 'sourceinspect'
version = '0.0.3'
description = 'A unified inspector for retriving source from Python objects'
long_description = '''
SourceInspect
=============
The functionality is mainly same as ``inspect``, but fixing the ``OSError``
when used in some non-standard shells.
API reference
-------------
- ``sourceinspect.getsource(object)``
- ``sourceinspect.getsourcelines(object)``
- ``sourceinspect.getsourcefile(object)``
Supported shells
----------------
- Python script (wrap ``dill.source``)
- Python interactive shell (wrap ``dill.source``)
- IPython advanced shell (wrap ``IPython.core.oinspect``)
- Jupyter notebook (wrap ``IPython.core.oinspect``)
- Blender scripting module (add hooks to ``inspect``)
- Blender interactive mode (add hooks to ``code.py``)
- Python IDLE file mode (wraps ``dill.source``)
- Python IDLE interactive mode (need manually add hooks to ``code.py``)
'''
classifiers = [
'Intended Audience :: Developers',
'Operating System :: OS Independent',
]
python_requires = '>=3.6'
install_requires = [
'dill',
]
import setuptools
setuptools.setup(
name=project_name,
version=version,
author='彭于斌',
author_email='1931127624@qq.com',
description=description,
long_description=long_description,
classifiers=classifiers,
python_requires=python_requires,
install_requires=install_requires,
packages=setuptools.find_packages(),
)