Set repository up for compilation with crdx/pyinstaller
According to: https://github.com/cdrx/docker-pyinstaller/blob/master/README.md
This commit is contained in:
parent
a47cb77e03
commit
7fb00175b9
|
@ -5,4 +5,3 @@ feeds.*
|
|||
# Build artifacts
|
||||
build/
|
||||
dist/
|
||||
fenen.spec
|
||||
|
|
|
@ -12,7 +12,7 @@ pipeline {
|
|||
}
|
||||
steps {
|
||||
sh 'python -m py_compile *.py'
|
||||
stash(name: 'compiled-results', includes: '*.py*')
|
||||
stash(name: 'compiled-results', includes: '*.py*, fenen.spec, requirements.txt')
|
||||
}
|
||||
}
|
||||
stage('Deliver') {
|
||||
|
@ -24,8 +24,7 @@ pipeline {
|
|||
steps {
|
||||
dir(path: env.BUILD_ID) {
|
||||
unstash(name: 'compiled-results')
|
||||
sh label: "Install Dependencies", script: "pip install feedparser"
|
||||
sh label: "Invoke PyInstaller", script: "docker run --rm -v ${VOLUME} ${IMAGE} 'pyinstaller --onefile fenen.py'"
|
||||
sh "docker run --rm -v ${VOLUME} ${IMAGE} 'pyinstaller --onefile fenen.py'"
|
||||
}
|
||||
}
|
||||
post {
|
||||
|
|
|
@ -0,0 +1,44 @@
|
|||
# -*- mode: python ; coding: utf-8 -*-
|
||||
|
||||
|
||||
block_cipher = None
|
||||
|
||||
|
||||
a = Analysis(
|
||||
['fenen.py'],
|
||||
pathex=[],
|
||||
binaries=[],
|
||||
datas=[],
|
||||
hiddenimports=[],
|
||||
hookspath=[],
|
||||
hooksconfig={},
|
||||
runtime_hooks=[],
|
||||
excludes=[],
|
||||
win_no_prefer_redirects=False,
|
||||
win_private_assemblies=False,
|
||||
cipher=block_cipher,
|
||||
noarchive=False,
|
||||
)
|
||||
pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher)
|
||||
|
||||
exe = EXE(
|
||||
pyz,
|
||||
a.scripts,
|
||||
a.binaries,
|
||||
a.zipfiles,
|
||||
a.datas,
|
||||
[],
|
||||
name='fenen',
|
||||
debug=False,
|
||||
bootloader_ignore_signals=False,
|
||||
strip=False,
|
||||
upx=True,
|
||||
upx_exclude=[],
|
||||
runtime_tmpdir=None,
|
||||
console=True,
|
||||
disable_windowed_traceback=False,
|
||||
argv_emulation=False,
|
||||
target_arch=None,
|
||||
codesign_identity=None,
|
||||
entitlements_file=None,
|
||||
)
|
|
@ -0,0 +1 @@
|
|||
feedparser==6.0.10
|
Loading…
Reference in New Issue