-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
executable file
·51 lines (46 loc) · 1.95 KB
/
setup.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
45
46
47
48
49
50
51
#! /usr/bin/python
from setuptools import setup, find_packages
import os.path
VERSION = "0.2.13"
with open(os.path.join(os.path.dirname(__file__), "README.md"), "r") as rf:
with open(os.path.join(os.path.dirname(__file__), "pieshell", "README.md"), "w") as wf:
README = rf.read()
wf.write(README)
with open(os.path.join(os.path.dirname(__file__), "pieshell", "version.py"), "w") as wf:
wf.write("version = '%s'\n" % (VERSION,))
setup(
name = "pieshell",
description = "Pieshell is a Python shell environment that combines the expressiveness of shell pipelines with the power of python iterators. It can be used both as an interactive shell and as an ordinary python module replacing e.g. subprocess.Popen",
long_description_content_type = "text/markdown",
long_description = README,
keywords = "Python shell pipelines suprocess",
install_requires = ['python-slugify'],
extras_require = {
'linux': ['signalfd'],
'ps': ['psutil'],
'completion': ['jedi'],
'ptpython': ['ptpython']
},
version = VERSION,
author = "Egil Moeller",
author_email = "[email protected]",
license = "GPL",
url = "https://github.com/redhog/pieshell",
packages = find_packages(),
package_data={'pieshell': ['*.md', '*.json', '*/*.pysh']},
entry_points={
'console_scripts': [
'pieshell = pieshell.shell:main',
],
'pieshell.builtin': [
"cd = pieshell.pipeline.builtins:CdBuiltin",
"bg = pieshell.pipeline.builtins:BgBuiltin",
"fg = pieshell.pipeline.builtins:FgBuiltin",
"clear_dir_cache = pieshell.pipeline.builtins:ClearDirCacheBuiltin",
"bashsource = pieshell.pipeline.builtins:BashSource",
"subshell = pieshell.pipeline.builtins:SubShell",
"remote = pieshell.pipeline.builtins:Remote",
]
},
scripts = ["pieshell/resources/get_completions"]
)