Merge pull request #1952 from aanand/bundle-schema-json

Bundle schema.json in binary
This commit is contained in:
mnowster 2015-09-03 10:40:11 +01:00
commit 2073805bc1
5 changed files with 28 additions and 4 deletions

View File

@ -5,6 +5,5 @@
build
coverage-html
dist
docker-compose.spec
docs/_site
venv

1
.gitignore vendored
View File

@ -5,6 +5,5 @@
/build
/coverage-html
/dist
/docker-compose.spec
/docs/_site
/venv

26
docker-compose.spec Normal file
View File

@ -0,0 +1,26 @@
# -*- mode: python -*-
block_cipher = None
a = Analysis(['bin/docker-compose'],
pathex=['.'],
hiddenimports=[],
hookspath=None,
runtime_hooks=None,
cipher=block_cipher)
pyz = PYZ(a.pure,
cipher=block_cipher)
exe = EXE(pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
[('compose/config/fields_schema.json', 'compose/config/fields_schema.json', 'DATA')],
[('compose/config/service_schema.json', 'compose/config/service_schema.json', 'DATA')],
name='docker-compose',
debug=False,
strip=None,
upx=True,
console=True )

View File

@ -8,6 +8,6 @@ mkdir -p `pwd`/dist
chmod 777 `pwd`/dist
pip install -r requirements-build.txt
su -c "pyinstaller -F bin/docker-compose" user
su -c "pyinstaller docker-compose.spec" user
mv dist/docker-compose $TARGET
$TARGET version

View File

@ -8,6 +8,6 @@ virtualenv -p /usr/local/bin/python venv
venv/bin/pip install -r requirements.txt
venv/bin/pip install -r requirements-build.txt
venv/bin/pip install .
venv/bin/pyinstaller -F bin/docker-compose
venv/bin/pyinstaller docker-compose.spec
mv dist/docker-compose dist/docker-compose-Darwin-x86_64
dist/docker-compose-Darwin-x86_64 version