mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
IGN:Build linux egg in a VM
This commit is contained in:
parent
77d65631a9
commit
0b592ab2d5
4
Makefile
4
Makefile
@ -40,3 +40,7 @@ pictureflow :
|
||||
|
||||
pot :
|
||||
cd src/calibre/translations && ${PYTHON} __init__.py pot
|
||||
|
||||
egg : all
|
||||
${PYTHON} setup.py register bdist_egg --exclude-source-files upload
|
||||
|
||||
|
@ -35,7 +35,7 @@ class LibraryDelegate(QItemDelegate):
|
||||
gradient = QLinearGradient(0, 0, 0, 100)
|
||||
gradient.setColorAt(0.0, self.COLOR)
|
||||
gradient.setColorAt(1.0, self.COLOR)
|
||||
self. brush = QBrush(gradient)
|
||||
self.brush = QBrush(gradient)
|
||||
self.factor = self.SIZE/100.
|
||||
|
||||
def sizeHint(self, option, index):
|
||||
|
@ -171,4 +171,4 @@ def main():
|
||||
if __name__ == '__main__':
|
||||
sys.exit(main())
|
||||
|
||||
from calibre.utils.single_qt_application import SingleApplication
|
||||
|
||||
|
13
upload.py
13
upload.py
@ -127,6 +127,17 @@ def upload_tarball():
|
||||
check_call('ssh divok rm -f %s/calibre-\*.tar.bz2'%DOWNLOADS)
|
||||
check_call('scp dist/calibre-*.tar.bz2 divok:%s/'%DOWNLOADS)
|
||||
|
||||
def pypi():
|
||||
vm = '/vmware/linux/libprs500-gentoo.vmx'
|
||||
vmware = ('vmware', '-q', '-x', '-n', vm)
|
||||
subprocess.Popen(vmware)
|
||||
print 'Waiting for linux to boot up...'
|
||||
time.sleep(60)
|
||||
check_call('scp ~/.pypirc linux:')
|
||||
check_call('ssh linux make -C /mnt/hgfs/giskard/work/calibre egg')
|
||||
check_call('ssh linux rm -f ~/.pypirc')
|
||||
check_call('ssh linux sudo poweroff')
|
||||
|
||||
def main():
|
||||
upload = len(sys.argv) < 2
|
||||
shutil.rmtree('build')
|
||||
@ -144,7 +155,7 @@ def main():
|
||||
print 'Uploading installers...'
|
||||
upload_installers()
|
||||
print 'Uploading to PyPI'
|
||||
check_call('''python setup.py register bdist_egg --exclude-source-files upload''')
|
||||
pypi()
|
||||
upload_tarball()
|
||||
upload_docs()
|
||||
upload_user_manual()
|
||||
|
Loading…
x
Reference in New Issue
Block a user