Skip to content

Commit 574b4d8

Browse files
committed
ref(client): move python libraries to a requirements.txt file
1 parent b40ae3e commit 574b4d8

7 files changed

Lines changed: 23 additions & 46 deletions

File tree

client/Makefile

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
build: setup-venv
3-
venv/bin/pip install docopt==0.6.2 ndg-httpsclient==0.3.3 pyasn1==0.1.7 pyOpenSSL==0.15.1 python-dateutil==2.4.2 PyYAML==3.11 requests==2.5.1 git+https://github.com/pyinstaller/pyinstaller@7413317 tabulate==0.7.4 termcolor==1.1.0 urllib3==1.10.2
3+
venv/bin/pip install -r requirements.txt git+https://github.com/pyinstaller/pyinstaller@7413317
44
venv/bin/pyinstaller deis.spec
55
chmod +x dist/deis
66

@@ -16,9 +16,6 @@ uninstall:
1616
clean:
1717
rm -rf build/ dist/ *.egg-info
1818

19-
client:
20-
pyinstaller deis.spec
21-
2219
installer: build
2320
@if [ ! -d makeself ]; then git clone -b single-binary https://github.com/deis/makeself.git; fi
2421
PATH=./makeself:$$PATH BINARY=deis makeself.sh --bzip2 --current --nox11 dist \
@@ -32,9 +29,9 @@ installer: build
3229

3330
setup-venv:
3431
@if [ ! -d venv ]; then virtualenv venv; fi
35-
venv/bin/pip install -q flake8==2.4.0
3632

3733
test-style: setup-venv
34+
venv/bin/pip install -q flake8==2.4.0
3835
venv/bin/flake8
3936

4037
test-unit:

client/deis.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ exe = EXE(pyz,
1414
debug=False,
1515
strip=None,
1616
upx=True,
17-
console=True )
17+
console=True)

client/requirements.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Deis CLI requirements
2+
3+
docopt==0.6.2
4+
ndg-httpsclient==0.3.3
5+
pyasn1==0.1.7
6+
pyOpenSSL==0.15.1
7+
python-dateutil==2.4.2
8+
PyYAML==3.11
9+
requests==2.5.1
10+
tabulate==0.7.4
11+
termcolor==1.1.0
12+
urllib3==1.10.2

client/setup.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@
2727
KWARGS = {'scripts': ['deis']}
2828

2929

30+
with open('requirements.txt') as f:
31+
required = f.read().splitlines()
32+
required = [r for r in required if r.strip() and not r.startswith('#')]
33+
34+
3035
setup(name='deis',
3136
version='1.6.0-dev',
3237
license=APACHE_LICENSE,
@@ -56,12 +61,6 @@
5661
('.', ['README.rst']),
5762
],
5863
long_description=LONG_DESCRIPTION,
59-
install_requires=[
60-
'docopt==0.6.2', 'ndg-httpsclient==0.3.3',
61-
'pyasn1==0.1.7', 'pyOpenSSL==0.15.1',
62-
'python-dateutil==2.4.2', 'PyYAML==3.11',
63-
'requests==2.5.1', 'tabulate==0.7.4',
64-
'termcolor==1.1.0', 'urllib3==1.10.2',
65-
],
64+
install_requires=required,
6665
zip_safe=True,
6766
**KWARGS)

controller/dev_requirements.txt

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,6 @@
1-
# Deis client requirements
2-
docopt==0.6.2
3-
ndg-httpsclient==0.3.3
4-
pyasn1==0.1.7
5-
pyOpenSSL==0.15.1
6-
python-dateutil==2.4.2
7-
PyYAML==3.11
8-
requests==2.5.1
9-
tabulate==0.7.4
10-
termcolor==1.1.0
11-
urllib3==1.10.2
12-
13-
# PyInstaller builds client binaries
14-
git+https://github.com/pyinstaller/pyinstaller@7413317
15-
16-
# Deis documentation requirements
17-
Sphinx==1.3.1
18-
smartypants==1.8.6
19-
sphinxcontrib-httpdomain==1.3.0
20-
21-
# Run "make coverage" for the % of code exercised during tests
1+
# Run "make coverage" or "make test-unit" for the % of code exercised during tests
222
coverage>=3.7.1
233

24-
# Generates template documentation in the Django admin
25-
docutils>=0.12
26-
274
# Run "make flake8" to check python syntax and style
285
flake8==2.4.0
296

docs/docs_requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ PyYAML==3.11
2323
South==1.0.2
2424
python-ldap==2.4.19
2525

26-
# Deis client requirements
26+
# Deis client requirements, copied from client/requirements.txt
2727
docopt==0.6.2
2828
ndg-httpsclient==0.3.3
2929
pyasn1==0.1.7

tests/bin/build-deis-cli.sh

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

0 commit comments

Comments
 (0)