-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
63 lines (54 loc) · 1.96 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
52
53
54
55
56
57
58
59
60
61
62
63
import os
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
try:
from setupext_janitor import janitor
CleanCommand = janitor.CleanCommand
except ImportError:
CleanCommand = None
this_directory = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(this_directory, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
cmd_classes = {}
if CleanCommand is not None:
cmd_classes['clean'] = CleanCommand
INSTALL_REQUIRES = [
'powerline-status>=2.7',
]
def version():
with open(os.path.abspath(__file__).replace('setup.py', 'version.meta'), 'r') as v:
return v.read().replace('\n', '')
# Note: `setup_requires` will NOT be automatically installed on the system where the setup script is being run.
# They are simply downloaded to the ./.eggs directory if they’re not locally available already.
setup(
setup_requires=['setupext_janitor'],
cmdclass=cmd_classes,
entry_points={
# normal parameters, ie. console_scripts[]
'distutils.commands': [
' clean = setupext_janitor.janitor:CleanCommand']
},
name='powerline-inject',
version=version(),
description='A powerline segment to show an ENV list with extra knobs',
long_description=long_description,
long_description_content_type='text/markdown',
author='Scott MacGregor',
author_email='smacgregor@d2iq.com',
url='https://github.com/d2iq-shadowbq/powerline-inject',
download_url='https://github.com/d2iq-shadowbq/powerline-inject/tarball/'+ version(),
packages=['powerline_inject'],
python_requires='>=3.6',
install_requires=INSTALL_REQUIRES,
license='Apache 2.0',
keywords=['powerline','powerline_inject'],
classifiers=[
'Programming Language :: Python :: 3',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Topic :: Terminals'
]
)