Skip to content

Commit 3619890

Browse files
author
Clark Perkins
committed
Updated setup.py to remove bootstrap things
1 parent 53fd42e commit 3619890

File tree

3 files changed

+4
-17
lines changed

3 files changed

+4
-17
lines changed

bootstrap.yaml

Lines changed: 0 additions & 6 deletions
This file was deleted.

setup.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,11 @@ def test_python_version():
4444
with open('README.md') as f:
4545
LONG_DESCRIPTION = f.read()
4646

47-
CFG_DIR = os.path.join(os.path.expanduser('~'), '.stackdio-cli')
48-
4947
requirements = [
5048
'Jinja2==2.7.3',
5149
'PyYAML>=3.10',
5250
'click>=6.0,<7.0',
51+
'click-shell==0.3',
5352
'colorama>=0.3,<0.4',
5453
'keyring==3.7',
5554
'requests>=2.4.0',
@@ -76,14 +75,6 @@ def test_python_version():
7675
license='Apache 2.0',
7776
include_package_data=True,
7877
packages=find_packages(),
79-
data_files=[
80-
(CFG_DIR,
81-
[
82-
'bootstrap.yaml',
83-
]),
84-
(os.path.join(CFG_DIR, 'blueprints'),
85-
['blueprints/%s' % f for f in os.listdir('blueprints')]),
86-
],
8778
zip_safe=False,
8879
install_requires=requirements,
8980
dependency_links=[],

stackdio/cli/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import os
44

55
import click
6+
import click_shell
67

78
from stackdio.cli.mixins import blueprints, formulas, stacks
89
from stackdio.cli.utils import pass_client
@@ -16,7 +17,8 @@
1617
HIST_FILE = os.path.join(os.path.expanduser('~'), '.stackdio-cli', 'history')
1718

1819

19-
@click.group(context_settings=CONTEXT_SETTINGS)
20+
@click_shell.shell(context_settings=CONTEXT_SETTINGS, prompt='stackdio > ',
21+
intro='stackdio-cli, v{0}'.format(__version__), hist_file=HIST_FILE)
2022
@click.version_option(__version__, '-v', '--version')
2123
@click.option('-c', '--config-file', help='The config file to use.',
2224
type=click.Path(dir_okay=False, file_okay=True), default=CFG_FILE,

0 commit comments

Comments
 (0)