AppVeyor: upgrade Python and py2exe, embed TLS dependencies
This commit is contained in:
parent
b8e4306a27
commit
d81100a2e2
@ -1,11 +1,11 @@
|
|||||||
branches:
|
branches:
|
||||||
only:
|
only:
|
||||||
- master
|
- setuptools
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
MINICONDA: "C:\\Miniconda"
|
MINICONDA: "C:\\Miniconda"
|
||||||
PYTHON: "C:\\Python35"
|
PYTHON: "C:\\Python36"
|
||||||
PYTHON_VERSION: 3.5
|
PYTHON_VERSION: 3.6
|
||||||
PYTHON_ARCH: 32
|
PYTHON_ARCH: 32
|
||||||
|
|
||||||
platform: x86
|
platform: x86
|
||||||
@ -19,12 +19,12 @@ init:
|
|||||||
- python --version
|
- python --version
|
||||||
- python -m pip install -U pip setuptools wheel
|
- python -m pip install -U pip setuptools wheel
|
||||||
- pip install -U pypiwin32==223
|
- pip install -U pypiwin32==223
|
||||||
- pip install twisted
|
- pip install twisted[tls] certifi
|
||||||
- pip install zope.interface
|
- pip install zope.interface
|
||||||
- type nul > %PYTHON%\lib\site-packages\zope\__init__.py
|
- type nul > %PYTHON%\lib\site-packages\zope\__init__.py
|
||||||
- curl -L https://bintray.com/alby128/Syncplay/download_file?file_path=py2exe-0.9.2.2-py33.py34.py35-none-any.whl -o py2exe-0.9.2.2-py33.py34.py35-none-any.whl
|
- curl -L https://bintray.com/alby128/py2exe/download_file?file_path=py2exe-0.9.2.9-py36-none-any.whl -o py2exe-0.9.2.9-py36-none-any.whl
|
||||||
- pip install py2exe-0.9.2.2-py33.py34.py35-none-any.whl
|
- pip install py2exe-0.9.2.9-py36-none-any.whl
|
||||||
- del py2exe-0.9.2.2-py33.py34.py35-none-any.whl
|
- del py2exe-0.9.2.9-py36-none-any.whl
|
||||||
- pip install shiboken2==5.12.0 PySide2==5.12.0
|
- pip install shiboken2==5.12.0 PySide2==5.12.0
|
||||||
- pip freeze
|
- pip freeze
|
||||||
|
|
||||||
@ -40,10 +40,10 @@ build: off
|
|||||||
artifacts:
|
artifacts:
|
||||||
- path: 'syncplay_v$(ver)'
|
- path: 'syncplay_v$(ver)'
|
||||||
type: zip
|
type: zip
|
||||||
name: Syncplay_$(ver)_Portable
|
name: Syncplay_$(ver)_setuptools_Portable
|
||||||
|
|
||||||
- path: Syncplay-$(ver)-Setup.exe
|
- path: Syncplay-$(ver)-Setup.exe
|
||||||
name: Syncplay-$(ver)-Setup
|
name: Syncplay-$(ver)-setuptools-Setup
|
||||||
|
|
||||||
# Push artefact to S3 bucket and list all
|
# Push artefact to S3 bucket and list all
|
||||||
before_deploy:
|
before_deploy:
|
||||||
|
|||||||
11
buildPy2exe.py
Normal file → Executable file
11
buildPy2exe.py
Normal file → Executable file
@ -690,6 +690,9 @@ guiIcons = [
|
|||||||
'resources/email_go.png',
|
'resources/email_go.png',
|
||||||
'resources/world_add.png', 'resources/film_add.png', 'resources/delete.png', 'resources/spinner.mng'
|
'resources/world_add.png', 'resources/film_add.png', 'resources/delete.png', 'resources/spinner.mng'
|
||||||
]
|
]
|
||||||
|
|
||||||
|
guiIcons = ['syncplay/' + s for s in guiIcons]
|
||||||
|
|
||||||
resources = [
|
resources = [
|
||||||
"syncplay/resources/icon.ico",
|
"syncplay/resources/icon.ico",
|
||||||
"syncplay/resources/syncplay.png",
|
"syncplay/resources/syncplay.png",
|
||||||
@ -724,8 +727,8 @@ info = dict(
|
|||||||
options={
|
options={
|
||||||
'py2exe': {
|
'py2exe': {
|
||||||
'dist_dir': OUT_DIR,
|
'dist_dir': OUT_DIR,
|
||||||
'packages': 'PySide2',
|
'packages': 'PySide2, cffi, OpenSSL, certifi',
|
||||||
'includes': 'twisted, sys, encodings, datetime, os, time, math, liburl, ast, unicodedata, _ssl, win32pipe, win32file',
|
'includes': 'twisted, sys, encodings, datetime, os, time, math, urllib, ast, unicodedata, _ssl, win32pipe, win32file',
|
||||||
'excludes': 'venv, doctest, pdb, unittest, win32clipboard, win32pdh, win32security, win32trace, win32ui, winxpgui, win32process, Tkinter',
|
'excludes': 'venv, doctest, pdb, unittest, win32clipboard, win32pdh, win32security, win32trace, win32ui, winxpgui, win32process, Tkinter',
|
||||||
'dll_excludes': 'msvcr71.dll, MSVCP90.dll, POWRPROF.dll',
|
'dll_excludes': 'msvcr71.dll, MSVCP90.dll, POWRPROF.dll',
|
||||||
'optimize': 2,
|
'optimize': 2,
|
||||||
@ -737,5 +740,5 @@ info = dict(
|
|||||||
cmdclass={"py2exe": build_installer},
|
cmdclass={"py2exe": build_installer},
|
||||||
)
|
)
|
||||||
|
|
||||||
sys.argv.extend(['py2exe', '-p win32com ', '-i twisted.web.resource', '-p PySide2'])
|
sys.argv.extend(['py2exe'])
|
||||||
setup(**info)
|
setup(**info)
|
||||||
Loading…
x
Reference in New Issue
Block a user