Skip to content

Commit 02f6fad

Browse files
committed
Fixed deis#41 -- repackaged client as a single-file install.
1 parent b04f295 commit 02f6fad

File tree

13 files changed

+18
-20
lines changed

13 files changed

+18
-20
lines changed

.travis.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,10 @@ before_install:
1818
- sudo apt-get install -qq libevent-dev libpq-dev
1919

2020
install:
21-
- "pip install -r requirements.txt --use-mirrors"
22-
- "pip install coveralls sphinx --use-mirrors"
21+
- pip install -r requirements.txt --use-mirrors
22+
- pip install -r client/requirements.txt --use-mirrors
23+
- pip install -r docs/requirements.txt --use-mirrors
24+
- pip install coveralls flake8 --use-mirrors
2325

2426
before_script:
2527
- "psql -c 'create database deis_testing;' -U postgres"
@@ -39,8 +41,9 @@ before_script:
3941
EOF
4042
4143
script:
42-
- coverage run manage.py test api celerytasks client web
43-
- make -C docs clean dirhtml
44+
# - make flake8
45+
- make coverage
46+
- make -C docs
4447

4548
after_success:
4649
- coveralls

client/.gitignore

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

client/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
# Install deis client locally through pip.
33
install:
4-
pip install deis
4+
pip install .
55

66
# Remove the installed copy of the deis client through pip.
77
uninstall:

client/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
"""
2+
A command-line client for the Deis system.
3+
"""
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,17 +40,17 @@
4040

4141
from cookielib import MozillaCookieJar
4242
from getpass import getpass
43+
import glob
4344
import json
4445
import os.path
45-
import glob
4646
import re
47+
import subprocess
4748
import sys
4849
import urlparse
4950

5051
from docopt import docopt
5152
from docopt import DocoptExit
5253
import requests
53-
import subprocess
5454
import yaml
5555

5656

client/deis/__init__.py

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

client/deis/deis

Lines changed: 0 additions & 1 deletion
This file was deleted.

client/setup.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"""Install the Deis command-line client."""
44

55

6-
import os.path
76
try:
87
from setuptools import setup
98
USE_SETUPTOOLS = True
@@ -25,10 +24,10 @@
2524
if USE_SETUPTOOLS:
2625
KWARGS = {
2726
'install_requires': ['docopt', 'PyYAML', 'requests'],
28-
'entry_points': {'console_scripts': ['deis = deis.client:main']},
27+
'entry_points': {'console_scripts': ['deis = deis:main']},
2928
}
3029
else:
31-
KWARGS = {'scripts': [os.path.sep.join(['deis', 'deis'])]}
30+
KWARGS = {'scripts': ['deis']}
3231

3332

3433
# pylint: disable=W0142
@@ -52,12 +51,11 @@
5251
'Programming Language :: Python :: 2.7',
5352
'Topic :: Internet',
5453
'Topic :: System :: Systems Administration',
55-
],
56-
packages=['deis'],
54+
],
55+
py_modules=['deis'],
5756
data_files=[
5857
('.', ['README.rst']),
59-
],
60-
scripts=['deis/deis'],
58+
],
6159
long_description=LONG_DESCRIPTION,
6260
requires=['docopt', 'PyYAML', 'requests'],
6361
zip_safe=True,

0 commit comments

Comments
 (0)