Compare commits
13 Commits
pyside6
...
0.30-dev-5
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6fe767c0a4 | ||
|
|
1bb94c1d76 | ||
|
|
003b9eb3f5 | ||
|
|
143d7712cd | ||
|
|
aaf0d31b52 | ||
|
|
14d0477d1d | ||
|
|
5b0504f22b | ||
|
|
3ed0deff41 | ||
|
|
e00e40c7b0 | ||
|
|
035b95c508 | ||
|
|
656426f645 | ||
|
|
ab6526c1fe | ||
|
|
d8c4e5bfac |
@@ -10,7 +10,7 @@ on:
|
|||||||
default: 'dir'
|
default: 'dir'
|
||||||
jobs:
|
jobs:
|
||||||
build-linux:
|
build-linux:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: mamba-org/setup-micromamba@v1
|
- uses: mamba-org/setup-micromamba@v1
|
||||||
@@ -37,6 +37,7 @@ jobs:
|
|||||||
pip install path
|
pip install path
|
||||||
pip install jupyter-rfb
|
pip install jupyter-rfb
|
||||||
pip install git+https://github.com/gumyr/cq_warehouse.git#egg=cq_warehouse
|
pip install git+https://github.com/gumyr/cq_warehouse.git#egg=cq_warehouse
|
||||||
|
pip install git+https://github.com/gumyr/bd_warehouse
|
||||||
pip install git+https://github.com/meadiode/cq_gears.git@main
|
pip install git+https://github.com/meadiode/cq_gears.git@main
|
||||||
pip install -e "git+https://github.com/CadQuery/cadquery-plugins.git#egg=cq_cache&subdirectory=plugins/cq_cache"
|
pip install -e "git+https://github.com/CadQuery/cadquery-plugins.git#egg=cq_cache&subdirectory=plugins/cq_cache"
|
||||||
pip install git+https://github.com/gumyr/build123d
|
pip install git+https://github.com/gumyr/build123d
|
||||||
@@ -76,6 +77,7 @@ jobs:
|
|||||||
pip install PyQt5==5.15.7
|
pip install PyQt5==5.15.7
|
||||||
pip install PyQtWebEngine==5.15.6
|
pip install PyQtWebEngine==5.15.6
|
||||||
pip install git+https://github.com/gumyr/cq_warehouse.git#egg=cq_warehouse
|
pip install git+https://github.com/gumyr/cq_warehouse.git#egg=cq_warehouse
|
||||||
|
pip install git+https://github.com/gumyr/bd_warehouse
|
||||||
pip install git+https://github.com/meadiode/cq_gears.git@main
|
pip install git+https://github.com/meadiode/cq_gears.git@main
|
||||||
pip install -e "git+https://github.com/CadQuery/cadquery-plugins.git#egg=cq_cache&subdirectory=plugins/cq_cache"
|
pip install -e "git+https://github.com/CadQuery/cadquery-plugins.git#egg=cq_cache&subdirectory=plugins/cq_cache"
|
||||||
pip install git+https://github.com/gumyr/build123d
|
pip install git+https://github.com/gumyr/build123d
|
||||||
@@ -114,6 +116,7 @@ jobs:
|
|||||||
pip install pyinstaller>=5.6 git+https://github.com/jdegenstein/pyinstaller-hooks-contrib
|
pip install pyinstaller>=5.6 git+https://github.com/jdegenstein/pyinstaller-hooks-contrib
|
||||||
pip install path
|
pip install path
|
||||||
pip install git+https://github.com/gumyr/cq_warehouse.git#egg=cq_warehouse
|
pip install git+https://github.com/gumyr/cq_warehouse.git#egg=cq_warehouse
|
||||||
|
pip install git+https://github.com/gumyr/bd_warehouse
|
||||||
pip install git+https://github.com/meadiode/cq_gears.git@main
|
pip install git+https://github.com/meadiode/cq_gears.git@main
|
||||||
pip install -e "git+https://github.com/CadQuery/cadquery-plugins.git#egg=cq_cache&subdirectory=plugins/cq_cache"
|
pip install -e "git+https://github.com/CadQuery/cadquery-plugins.git#egg=cq_cache&subdirectory=plugins/cq_cache"
|
||||||
pip install git+https://github.com/gumyr/build123d
|
pip install git+https://github.com/gumyr/build123d
|
||||||
|
|||||||
@@ -1,126 +0,0 @@
|
|||||||
name: build-PIP-TAR-pyinst5-6p
|
|
||||||
on:
|
|
||||||
# schedule:
|
|
||||||
# - cron: '0 0 * * 1'
|
|
||||||
workflow_dispatch:
|
|
||||||
inputs:
|
|
||||||
type:
|
|
||||||
description: 'Whether to build a single file (onefile) or directory (dir) dist'
|
|
||||||
required: true
|
|
||||||
default: 'dir'
|
|
||||||
jobs:
|
|
||||||
# build-linux:
|
|
||||||
# runs-on: ubuntu-20.04
|
|
||||||
# steps:
|
|
||||||
# - uses: actions/checkout@v2
|
|
||||||
# - uses: mamba-org/provision-with-micromamba@main
|
|
||||||
# with:
|
|
||||||
# #miniconda-version: "latest"
|
|
||||||
# #auto-update-conda: true
|
|
||||||
# environment-name: test
|
|
||||||
# environment-file: environment.yml
|
|
||||||
# extra-specs:
|
|
||||||
# python=3.9
|
|
||||||
# - name: Mamba install CadQuery and pyinstaller
|
|
||||||
# shell: bash --login {0}
|
|
||||||
# run: |
|
|
||||||
# sudo apt install -y libblas-dev libblas3 libblas64-3 libblas64-dev
|
|
||||||
# sudo apt install -y libxkbcommon0
|
|
||||||
# sudo apt install -y libxkbcommon-x11-0
|
|
||||||
# sudo apt install -y libxcb-xinerama0
|
|
||||||
# micromamba info
|
|
||||||
# pip install git+https://github.com/jdegenstein/jmwright-CQ-Editor
|
|
||||||
# pip install -vvv --pre git+https://github.com/cadquery/cadquery casadi==3.5.5
|
|
||||||
# pip install pyinstaller==4.10
|
|
||||||
# pip install path
|
|
||||||
# pip install git+https://github.com/gumyr/cq_warehouse.git#egg=cq_warehouse
|
|
||||||
# pip install git+https://github.com/meadiode/cq_gears.git@main
|
|
||||||
# pip install -e "git+https://github.com/CadQuery/cadquery-plugins.git#egg=cq_cache&subdirectory=plugins/cq_cache"
|
|
||||||
# pip install git+https://github.com/gumyr/build123d.git#egg=build123d
|
|
||||||
# pip install git+https://github.com/JustinSDK/cqMore
|
|
||||||
# pip list
|
|
||||||
# - name: Run build
|
|
||||||
# shell: bash --login {0}
|
|
||||||
# run: |
|
|
||||||
# micromamba info
|
|
||||||
# pyinstaller pyinstaller_pip.spec ${{ github.event.inputs.type }}
|
|
||||||
# cp /home/runner/work/jmwright-CQ-Editor/jmwright-CQ-Editor/pyinstaller/CQ-editor.sh /home/runner/work/jmwright-CQ-Editor/jmwright-CQ-Editor/dist/
|
|
||||||
# - uses: alehechka/upload-tartifact@v1
|
|
||||||
# with:
|
|
||||||
# name: CQ-editor-Linux-x86_64
|
|
||||||
# path: dist
|
|
||||||
# build-macos:
|
|
||||||
# runs-on: macos-latest
|
|
||||||
# steps:
|
|
||||||
# - uses: actions/checkout@v2
|
|
||||||
# - uses: mamba-org/provision-with-micromamba@main
|
|
||||||
# with:
|
|
||||||
# #miniconda-version: "latest"
|
|
||||||
# #auto-update-conda: true
|
|
||||||
# environment-name: test
|
|
||||||
# environment-file: environment.yml
|
|
||||||
# extra-specs:
|
|
||||||
# python=3.9
|
|
||||||
# - name: Mamba install CadQuery and pyinstaller
|
|
||||||
# shell: bash --login {0}
|
|
||||||
# run: |
|
|
||||||
# micromamba info
|
|
||||||
# pip install git+https://github.com/jdegenstein/jmwright-CQ-Editor
|
|
||||||
# pip install --pre git+https://github.com/cadquery/cadquery casadi==3.5.5
|
|
||||||
# pip install pyinstaller==4.10
|
|
||||||
# pip install path
|
|
||||||
# pip uninstall -y PyQt5
|
|
||||||
# pip install PyQt5==5.15.7
|
|
||||||
# pip install PyQtWebEngine==5.15.6
|
|
||||||
# pip install git+https://github.com/gumyr/cq_warehouse.git#egg=cq_warehouse
|
|
||||||
# pip install git+https://github.com/meadiode/cq_gears.git@main
|
|
||||||
# pip install -e "git+https://github.com/CadQuery/cadquery-plugins.git#egg=cq_cache&subdirectory=plugins/cq_cache"
|
|
||||||
# pip install git+https://github.com/gumyr/build123d.git#egg=build123d
|
|
||||||
# pip install git+https://github.com/JustinSDK/cqMore
|
|
||||||
# pip list
|
|
||||||
# - name: Run build
|
|
||||||
# shell: bash --login {0}
|
|
||||||
# run: |
|
|
||||||
# micromamba info
|
|
||||||
# pyinstaller pyinstaller_pip.spec ${{ github.event.inputs.type }}
|
|
||||||
# cp /Users/runner/work/jmwright-CQ-Editor/jmwright-CQ-Editor/pyinstaller/CQ-editor.sh /Users/runner/work/jmwright-CQ-Editor/jmwright-CQ-Editor/dist/
|
|
||||||
# - uses: alehechka/upload-tartifact@v1
|
|
||||||
# with:
|
|
||||||
# name: CQ-editor-MacOS
|
|
||||||
# path: dist
|
|
||||||
build-windows:
|
|
||||||
runs-on: windows-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- uses: mamba-org/provision-with-micromamba@main
|
|
||||||
with:
|
|
||||||
#miniconda-version: "latest"
|
|
||||||
#auto-update-conda: true
|
|
||||||
environment-name: test
|
|
||||||
environment-file: environment.yml
|
|
||||||
extra-specs:
|
|
||||||
python=3.9
|
|
||||||
- name: pip install cadquery CQ-editor ... etc
|
|
||||||
shell: powershell
|
|
||||||
run: |
|
|
||||||
micromamba info
|
|
||||||
pip install git+https://github.com/jdegenstein/jmwright-CQ-Editor
|
|
||||||
pip install --pre git+https://github.com/cadquery/cadquery casadi==3.5.5
|
|
||||||
pip install pyinstaller>=5.6
|
|
||||||
pip install path
|
|
||||||
pip install git+https://github.com/gumyr/cq_warehouse.git#egg=cq_warehouse
|
|
||||||
pip install git+https://github.com/meadiode/cq_gears.git@main
|
|
||||||
pip install -e "git+https://github.com/CadQuery/cadquery-plugins.git#egg=cq_cache&subdirectory=plugins/cq_cache"
|
|
||||||
pip install git+https://github.com/gumyr/build123d
|
|
||||||
pip install git+https://github.com/JustinSDK/cqMore
|
|
||||||
pip list
|
|
||||||
- name: Run build
|
|
||||||
shell: powershell
|
|
||||||
run: |
|
|
||||||
micromamba info
|
|
||||||
pyinstaller pyinstaller_pip.spec ${{ github.event.inputs.type }}
|
|
||||||
Copy-Item D:\a\jmwright-CQ-Editor\jmwright-CQ-Editor\pyinstaller\CQ-editor.cmd D:\a\jmwright-CQ-Editor\jmwright-CQ-Editor\dist\
|
|
||||||
- uses: alehechka/upload-tartifact@v1
|
|
||||||
with:
|
|
||||||
name: CQ-editor-Windows
|
|
||||||
path: dist
|
|
||||||
@@ -1,122 +0,0 @@
|
|||||||
name: build-micromamba-DEV
|
|
||||||
on:
|
|
||||||
schedule:
|
|
||||||
- cron: '0 0 * * 1'
|
|
||||||
workflow_dispatch:
|
|
||||||
inputs:
|
|
||||||
type:
|
|
||||||
description: 'Whether to build a single file (onefile) or directory (dir) dist'
|
|
||||||
required: true
|
|
||||||
default: 'dir'
|
|
||||||
jobs:
|
|
||||||
# build-linux:
|
|
||||||
# runs-on: ubuntu-latest
|
|
||||||
# steps:
|
|
||||||
# - uses: actions/checkout@v2
|
|
||||||
# - uses: mamba-org/provision-with-micromamba@main
|
|
||||||
# with:
|
|
||||||
# #miniconda-version: "latest"
|
|
||||||
# #auto-update-conda: true
|
|
||||||
# environment-name: test
|
|
||||||
# environment-file: environment.yml
|
|
||||||
# extra-specs:
|
|
||||||
# python=3.9
|
|
||||||
# - name: Mamba install CadQuery and pyinstaller
|
|
||||||
# shell: bash --login {0}
|
|
||||||
# run: |
|
|
||||||
# sudo apt install -y libblas-dev libblas3 libblas64-3 libblas64-dev
|
|
||||||
# sudo apt install -y libxkbcommon0
|
|
||||||
# sudo apt install -y libxkbcommon-x11-0
|
|
||||||
# sudo apt install -y libxcb-xinerama0
|
|
||||||
# micromamba info
|
|
||||||
# micromamba install -c cadquery -c conda-forge cq-editor=master cadquery=master debugpy ipython=8.4.0 jedi=0.17.2 python=3.9
|
|
||||||
# micromamba install -c conda-forge pyinstaller=4.10
|
|
||||||
# pip install path
|
|
||||||
# pip install git+https://github.com/gumyr/cq_warehouse.git#egg=cq_warehouse
|
|
||||||
# pip install git+https://github.com/meadiode/cq_gears.git@main
|
|
||||||
# pip install -e "git+https://github.com/CadQuery/cadquery-plugins.git#egg=cq_cache&subdirectory=plugins/cq_cache"
|
|
||||||
# pip install git+https://github.com/gumyr/build123d.git#egg=build123d
|
|
||||||
# pip install git+https://github.com/JustinSDK/cqMore
|
|
||||||
# - name: Run build
|
|
||||||
# shell: bash --login {0}
|
|
||||||
# run: |
|
|
||||||
# micromamba info
|
|
||||||
# pyinstaller pyinstaller.spec ${{ github.event.inputs.type }}
|
|
||||||
# cp /home/runner/work/jmwright-CQ-Editor/jmwright-CQ-Editor/pyinstaller/CQ-editor.sh /home/runner/work/jmwright-CQ-Editor/jmwright-CQ-Editor/dist/
|
|
||||||
# - uses: actions/upload-artifact@v2
|
|
||||||
# with:
|
|
||||||
# name: CQ-editor-Linux-x86_64
|
|
||||||
# path: dist
|
|
||||||
# build-macos:
|
|
||||||
# runs-on: macos-latest
|
|
||||||
# steps:
|
|
||||||
# - uses: actions/checkout@v2
|
|
||||||
# - uses: mamba-org/provision-with-micromamba@main
|
|
||||||
# with:
|
|
||||||
# #miniconda-version: "latest"
|
|
||||||
# #auto-update-conda: true
|
|
||||||
# environment-name: test
|
|
||||||
# environment-file: environment.yml
|
|
||||||
# extra-specs:
|
|
||||||
# python=3.9
|
|
||||||
# - name: Mamba install CadQuery and pyinstaller
|
|
||||||
# shell: bash --login {0}
|
|
||||||
# run: |
|
|
||||||
# micromamba info
|
|
||||||
# micromamba install -c cadquery -c conda-forge cq-editor=master cadquery=master debugpy ipython=8.4.0 jedi=0.17.2 python=3.9
|
|
||||||
# micromamba install -c conda-forge pyinstaller
|
|
||||||
# pip install path
|
|
||||||
# pip uninstall -y PyQt5
|
|
||||||
# pip install PyQt5==5.15.7
|
|
||||||
# pip install PyQtWebEngine==5.15.6
|
|
||||||
# pip install git+https://github.com/gumyr/cq_warehouse.git#egg=cq_warehouse
|
|
||||||
# pip install git+https://github.com/meadiode/cq_gears.git@main
|
|
||||||
# pip install -e "git+https://github.com/CadQuery/cadquery-plugins.git#egg=cq_cache&subdirectory=plugins/cq_cache"
|
|
||||||
# pip install git+https://github.com/gumyr/build123d.git#egg=build123d
|
|
||||||
# pip install git+https://github.com/JustinSDK/cqMore
|
|
||||||
# - name: Run build
|
|
||||||
# shell: bash --login {0}
|
|
||||||
# run: |
|
|
||||||
# micromamba info
|
|
||||||
# pyinstaller pyinstaller.spec ${{ github.event.inputs.type }}
|
|
||||||
# cp /Users/runner/work/jmwright-CQ-Editor/jmwright-CQ-Editor/pyinstaller/CQ-editor.sh /Users/runner/work/jmwright-CQ-Editor/jmwright-CQ-Editor/dist/
|
|
||||||
# - uses: actions/upload-artifact@v2
|
|
||||||
# with:
|
|
||||||
# name: CQ-editor-MacOS
|
|
||||||
# path: dist
|
|
||||||
build-windows:
|
|
||||||
runs-on: windows-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- uses: mamba-org/provision-with-micromamba@main
|
|
||||||
with:
|
|
||||||
#miniconda-version: "latest"
|
|
||||||
#auto-update-conda: true
|
|
||||||
environment-name: test
|
|
||||||
environment-file: environment.yml
|
|
||||||
extra-specs:
|
|
||||||
python=3.9
|
|
||||||
- name: Mamba install CadQuery and pyinstaller
|
|
||||||
shell: powershell
|
|
||||||
run: |
|
|
||||||
micromamba install -c cadquery -c conda-forge cq-editor=master cadquery=master debugpy ipython=8.4.0 jedi=0.17.2 python=3.9
|
|
||||||
micromamba install -c conda-forge pyinstaller=4.10 casadi ipopt
|
|
||||||
pip install path
|
|
||||||
pip install pipwin
|
|
||||||
pipwin install numpy
|
|
||||||
pip install git+https://github.com/gumyr/cq_warehouse.git#egg=cq_warehouse
|
|
||||||
pip install git+https://github.com/meadiode/cq_gears.git@main
|
|
||||||
pip install -e "git+https://github.com/CadQuery/cadquery-plugins.git#egg=cq_cache&subdirectory=plugins/cq_cache"
|
|
||||||
pip install git+https://github.com/gumyr/build123d.git#egg=build123d
|
|
||||||
pip install git+https://github.com/JustinSDK/cqMore
|
|
||||||
- name: Run build
|
|
||||||
shell: powershell
|
|
||||||
run: |
|
|
||||||
micromamba info
|
|
||||||
pyinstaller --debug all pyinstaller.spec ${{ github.event.inputs.type }}
|
|
||||||
Copy-Item C:\Users\runneradmin\micromamba-root\envs\test\Library\bin\casadi_nlpsol_ipopt.dll D:\a\jmwright-CQ-Editor\jmwright-CQ-Editor\dist\CQ-editor\
|
|
||||||
Copy-Item D:\a\jmwright-CQ-Editor\jmwright-CQ-Editor\pyinstaller\CQ-editor.cmd D:\a\jmwright-CQ-Editor\jmwright-CQ-Editor\dist\
|
|
||||||
- uses: alehechka/upload-tartifact@v1
|
|
||||||
with:
|
|
||||||
name: CQ-editor-Windows
|
|
||||||
path: dist
|
|
||||||
@@ -1,121 +0,0 @@
|
|||||||
name: build-micromamba
|
|
||||||
on:
|
|
||||||
schedule:
|
|
||||||
- cron: '0 0 * * 1'
|
|
||||||
workflow_dispatch:
|
|
||||||
inputs:
|
|
||||||
type:
|
|
||||||
description: 'Whether to build a single file (onefile) or directory (dir) dist'
|
|
||||||
required: true
|
|
||||||
default: 'dir'
|
|
||||||
jobs:
|
|
||||||
build-linux:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- uses: mamba-org/provision-with-micromamba@main
|
|
||||||
with:
|
|
||||||
#miniconda-version: "latest"
|
|
||||||
#auto-update-conda: true
|
|
||||||
environment-name: test
|
|
||||||
environment-file: environment.yml
|
|
||||||
extra-specs:
|
|
||||||
python=3.9
|
|
||||||
- name: Mamba install CadQuery and pyinstaller
|
|
||||||
shell: bash --login {0}
|
|
||||||
run: |
|
|
||||||
sudo apt install -y libblas-dev libblas3 libblas64-3 libblas64-dev
|
|
||||||
sudo apt install -y libxkbcommon0
|
|
||||||
sudo apt install -y libxkbcommon-x11-0
|
|
||||||
sudo apt install -y libxcb-xinerama0
|
|
||||||
micromamba info
|
|
||||||
micromamba install -c cadquery -c conda-forge cq-editor=master cadquery=master debugpy ipython=8.4.0 jedi=0.17.2 python=3.9
|
|
||||||
micromamba install -c conda-forge pyinstaller=4.10
|
|
||||||
pip install path
|
|
||||||
pip install git+https://github.com/gumyr/cq_warehouse.git#egg=cq_warehouse
|
|
||||||
pip install git+https://github.com/meadiode/cq_gears.git@main
|
|
||||||
pip install -e "git+https://github.com/CadQuery/cadquery-plugins.git#egg=cq_cache&subdirectory=plugins/cq_cache"
|
|
||||||
pip install git+https://github.com/gumyr/build123d.git#egg=build123d
|
|
||||||
pip install git+https://github.com/JustinSDK/cqMore
|
|
||||||
- name: Run build
|
|
||||||
shell: bash --login {0}
|
|
||||||
run: |
|
|
||||||
micromamba info
|
|
||||||
pyinstaller pyinstaller.spec ${{ github.event.inputs.type }}
|
|
||||||
cp /home/runner/work/jmwright-CQ-Editor/jmwright-CQ-Editor/pyinstaller/CQ-editor.sh /home/runner/work/jmwright-CQ-Editor/jmwright-CQ-Editor/dist/
|
|
||||||
- uses: actions/upload-artifact@v2
|
|
||||||
with:
|
|
||||||
name: CQ-editor-Linux-x86_64
|
|
||||||
path: dist
|
|
||||||
build-macos:
|
|
||||||
runs-on: macos-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- uses: mamba-org/provision-with-micromamba@main
|
|
||||||
with:
|
|
||||||
#miniconda-version: "latest"
|
|
||||||
#auto-update-conda: true
|
|
||||||
environment-name: test
|
|
||||||
environment-file: environment.yml
|
|
||||||
extra-specs:
|
|
||||||
python=3.9
|
|
||||||
- name: Mamba install CadQuery and pyinstaller
|
|
||||||
shell: bash --login {0}
|
|
||||||
run: |
|
|
||||||
micromamba info
|
|
||||||
micromamba install -c cadquery -c conda-forge cq-editor=master cadquery=master debugpy ipython=8.4.0 jedi=0.17.2 python=3.9
|
|
||||||
micromamba install -c conda-forge pyinstaller
|
|
||||||
pip install path
|
|
||||||
pip uninstall -y PyQt5
|
|
||||||
pip install PyQt5==5.15.7
|
|
||||||
pip install PyQtWebEngine==5.15.6
|
|
||||||
pip install git+https://github.com/gumyr/cq_warehouse.git#egg=cq_warehouse
|
|
||||||
pip install git+https://github.com/meadiode/cq_gears.git@main
|
|
||||||
pip install -e "git+https://github.com/CadQuery/cadquery-plugins.git#egg=cq_cache&subdirectory=plugins/cq_cache"
|
|
||||||
pip install git+https://github.com/gumyr/build123d.git#egg=build123d
|
|
||||||
pip install git+https://github.com/JustinSDK/cqMore
|
|
||||||
- name: Run build
|
|
||||||
shell: bash --login {0}
|
|
||||||
run: |
|
|
||||||
micromamba info
|
|
||||||
pyinstaller pyinstaller.spec ${{ github.event.inputs.type }}
|
|
||||||
cp /Users/runner/work/jmwright-CQ-Editor/jmwright-CQ-Editor/pyinstaller/CQ-editor.sh /Users/runner/work/jmwright-CQ-Editor/jmwright-CQ-Editor/dist/
|
|
||||||
- uses: actions/upload-artifact@v2
|
|
||||||
with:
|
|
||||||
name: CQ-editor-MacOS
|
|
||||||
path: dist
|
|
||||||
build-windows:
|
|
||||||
runs-on: windows-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- uses: mamba-org/provision-with-micromamba@main
|
|
||||||
with:
|
|
||||||
#miniconda-version: "latest"
|
|
||||||
#auto-update-conda: true
|
|
||||||
environment-name: test
|
|
||||||
environment-file: environment.yml
|
|
||||||
extra-specs:
|
|
||||||
python=3.9
|
|
||||||
- name: Mamba install CadQuery and pyinstaller
|
|
||||||
shell: powershell
|
|
||||||
run: |
|
|
||||||
micromamba install -c cadquery -c conda-forge cq-editor=master cadquery=master debugpy ipython=8.4.0 jedi=0.17.2 python=3.9
|
|
||||||
micromamba install -c conda-forge pyinstaller=4.10
|
|
||||||
pip install path
|
|
||||||
pip install pipwin
|
|
||||||
pipwin install numpy
|
|
||||||
pip install git+https://github.com/gumyr/cq_warehouse.git#egg=cq_warehouse
|
|
||||||
pip install git+https://github.com/meadiode/cq_gears.git@main
|
|
||||||
pip install -e "git+https://github.com/CadQuery/cadquery-plugins.git#egg=cq_cache&subdirectory=plugins/cq_cache"
|
|
||||||
pip install git+https://github.com/gumyr/build123d.git#egg=build123d
|
|
||||||
pip install git+https://github.com/JustinSDK/cqMore
|
|
||||||
- name: Run build
|
|
||||||
shell: powershell
|
|
||||||
run: |
|
|
||||||
micromamba info
|
|
||||||
pyinstaller --debug all pyinstaller.spec ${{ github.event.inputs.type }}
|
|
||||||
Copy-Item D:\a\jmwright-CQ-Editor\jmwright-CQ-Editor\pyinstaller\CQ-editor.cmd D:\a\jmwright-CQ-Editor\jmwright-CQ-Editor\dist\
|
|
||||||
- uses: actions/upload-artifact@v2
|
|
||||||
with:
|
|
||||||
name: CQ-editor-Windows
|
|
||||||
path: dist
|
|
||||||
120
.github/workflows/pyinstaller-builds-actions.yml
vendored
120
.github/workflows/pyinstaller-builds-actions.yml
vendored
@@ -1,120 +0,0 @@
|
|||||||
name: build
|
|
||||||
on:
|
|
||||||
schedule:
|
|
||||||
- cron: '0 0 * * 1'
|
|
||||||
workflow_dispatch:
|
|
||||||
inputs:
|
|
||||||
type:
|
|
||||||
description: 'Whether to build a single file (onefile) or directory (dir) dist'
|
|
||||||
required: true
|
|
||||||
default: 'dir'
|
|
||||||
jobs:
|
|
||||||
# build-linux:
|
|
||||||
# runs-on: ubuntu-latest
|
|
||||||
# steps:
|
|
||||||
# - uses: actions/checkout@v2
|
|
||||||
# - uses: conda-incubator/setup-miniconda@v2
|
|
||||||
# with:
|
|
||||||
# mamba-version: "*"
|
|
||||||
# channels: conda-forge,defaults
|
|
||||||
# channel-priority: true
|
|
||||||
# # auto-update-conda: true
|
|
||||||
# python-version: 3.9
|
|
||||||
# activate-environment: test
|
|
||||||
# - name: Install CadQuery, CQ-editor and pyinstaller
|
|
||||||
# shell: bash --login {0}
|
|
||||||
# run: |
|
|
||||||
# sudo apt install -y libblas-dev libblas3 libblas64-3 libblas64-dev
|
|
||||||
# sudo apt install -y libxkbcommon0
|
|
||||||
# sudo apt install -y libxkbcommon-x11-0
|
|
||||||
# sudo apt install -y libxcb-xinerama0
|
|
||||||
# conda info
|
|
||||||
# conda install -c cadquery -c conda-forge cq-editor=master cadquery=master python=3.9
|
|
||||||
# conda install -c conda-forge pyinstaller=4.10
|
|
||||||
# conda uninstall --force -y importlib_resources
|
|
||||||
# pip install path
|
|
||||||
# pip install git+https://github.com/gumyr/cq_warehouse.git#egg=cq_warehouse
|
|
||||||
# pip install git+https://github.com/meadiode/cq_gears.git@main
|
|
||||||
# pip install -e "git+https://github.com/CadQuery/cadquery-plugins.git#egg=cq_cache&subdirectory=plugins/cq_cache"
|
|
||||||
# pip install git+https://github.com/gumyr/build123d.git#egg=build123d
|
|
||||||
# - name: Run build
|
|
||||||
# shell: bash --login {0}
|
|
||||||
# run: |
|
|
||||||
# conda info
|
|
||||||
# pyinstaller pyinstaller.spec ${{ github.event.inputs.type }}
|
|
||||||
# cp /home/runner/work/jmwright-CQ-Editor/jmwright-CQ-Editor/pyinstaller/CQ-editor.sh /home/runner/work/jmwright-CQ-Editor/jmwright-CQ-Editor/dist/
|
|
||||||
# rm /home/runner/work/jmwright-CQ-Editor/jmwright-CQ-Editor/dist/CQ-editor/libstdc++.so.6
|
|
||||||
# - uses: actions/upload-artifact@v2
|
|
||||||
# with:
|
|
||||||
# name: CQ-editor-Linux-x86_64
|
|
||||||
# path: dist
|
|
||||||
# build-macos:
|
|
||||||
# runs-on: macos-latest
|
|
||||||
# steps:
|
|
||||||
# - uses: actions/checkout@v2
|
|
||||||
# - uses: conda-incubator/setup-miniconda@v2
|
|
||||||
# with:
|
|
||||||
# mamba-version: "*"
|
|
||||||
# channels: conda-forge,defaults
|
|
||||||
# # auto-update-conda: true
|
|
||||||
# python-version: 3.9
|
|
||||||
# activate-environment: test
|
|
||||||
# - name: Install CadQuery, CQ-editor and pyinstaller=4.10
|
|
||||||
# shell: bash --login {0}
|
|
||||||
# run: |
|
|
||||||
# conda info
|
|
||||||
# conda install -c cadquery -c conda-forge cq-editor=master cadquery=master python=3.9
|
|
||||||
# conda install -c conda-forge pyinstaller
|
|
||||||
# conda uninstall --force -y importlib_resources
|
|
||||||
# pip install path
|
|
||||||
# pip uninstall -y PyQt5
|
|
||||||
# pip install PyQt5==5.15.7
|
|
||||||
# pip install PyQtWebEngine==5.15.6
|
|
||||||
# pip install git+https://github.com/gumyr/cq_warehouse.git#egg=cq_warehouse
|
|
||||||
# pip install git+https://github.com/meadiode/cq_gears.git@main
|
|
||||||
# pip install -e "git+https://github.com/CadQuery/cadquery-plugins.git#egg=cq_cache&subdirectory=plugins/cq_cache"
|
|
||||||
# pip install git+https://github.com/gumyr/build123d.git#egg=build123d
|
|
||||||
# - name: Run build
|
|
||||||
# shell: bash --login {0}
|
|
||||||
# run: |
|
|
||||||
# conda info
|
|
||||||
# pyinstaller pyinstaller.spec ${{ github.event.inputs.type }}
|
|
||||||
# cp /Users/runner/work/jmwright-CQ-Editor/jmwright-CQ-Editor/pyinstaller/CQ-editor.sh /Users/runner/work/jmwright-CQ-Editor/jmwright-CQ-Editor/dist/
|
|
||||||
# - uses: actions/upload-artifact@v2
|
|
||||||
# with:
|
|
||||||
# name: CQ-editor-MacOS
|
|
||||||
# path: dist
|
|
||||||
build-windows:
|
|
||||||
runs-on: windows-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- uses: conda-incubator/setup-miniconda@v2
|
|
||||||
with:
|
|
||||||
miniconda-version: "latest"
|
|
||||||
auto-update-conda: true
|
|
||||||
python-version: 3.9
|
|
||||||
activate-environment: test
|
|
||||||
- name: Install CadQuery and pyinstaller
|
|
||||||
shell: powershell
|
|
||||||
run: |
|
|
||||||
conda install -c cadquery -c conda-forge cq-editor=master cadquery=master ipython=7.20 python=3.9
|
|
||||||
conda install -c conda-forge pyinstaller=4.10
|
|
||||||
pip install pipwin
|
|
||||||
pipwin install numpy
|
|
||||||
pip install path
|
|
||||||
pip install git+https://github.com/gumyr/cq_warehouse.git#egg=cq_warehouse
|
|
||||||
pip install git+https://github.com/meadiode/cq_gears.git@main
|
|
||||||
pip install -e "git+https://github.com/CadQuery/cadquery-plugins.git#egg=cq_cache&subdirectory=plugins/cq_cache"
|
|
||||||
pip install git+https://github.com/gumyr/build123d.git#egg=build123d
|
|
||||||
- name: Run build
|
|
||||||
shell: powershell
|
|
||||||
run: |
|
|
||||||
conda info
|
|
||||||
pyinstaller --debug all pyinstaller.spec ${{ github.event.inputs.type }}
|
|
||||||
Copy-Item C:\Miniconda3\Library\bin\libssl-1_1-x64.dll D:\a\jmwright-CQ-Editor\jmwright-CQ-Editor\dist\CQ-editor\
|
|
||||||
Copy-Item C:\Miniconda3\Library\bin\libcrypto-1_1-x64.dll D:\a\jmwright-CQ-Editor\jmwright-CQ-Editor\dist\CQ-editor\
|
|
||||||
Copy-Item D:\a\jmwright-CQ-Editor\jmwright-CQ-Editor\pyinstaller\CQ-editor.cmd D:\a\jmwright-CQ-Editor\jmwright-CQ-Editor\dist\
|
|
||||||
- uses: actions/upload-artifact@v2
|
|
||||||
with:
|
|
||||||
name: CQ-editor-Windows
|
|
||||||
path: dist
|
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
# CadQuery editor
|
# CadQuery editor
|
||||||
|
|
||||||
This is a fork of [jmwright's fork](https://github.com/jmwright/CQ-editor) of [CadQuery/CQ-editor](https://github.com/CadQuery/CQ-editor). This fork includes changes that enable dark mode for CQ-editor (see screenshot below). Under the GitHub Actions menu this fork also contains static builds of CQ-editor for Linux/MacOS/Windows that include the [cq_gears](https://github.com/meadiode/cq_gears), [cq_cache](https://github.com/CadQuery/cadquery-plugins/tree/main/plugins/cq_cache), [cq_more](https://github.com/JustinSDK/cqMore), [cq_warehouse](https://github.com/gumyr/cq_warehouse), and [build123d](https://github.com/gumyr/build123d) libraries. Note you need to change color preferences to enable dark mode for all panes (see Edit -> Preferences).
|
This is a fork of [jmwright's fork](https://github.com/jmwright/CQ-editor) of [CadQuery/CQ-editor](https://github.com/CadQuery/CQ-editor). This fork includes changes that enable dark mode for CQ-editor (see screenshot below). Under the GitHub Actions menu this fork also contains static builds of CQ-editor for Linux/MacOS/Windows that include the [cq_gears](https://github.com/meadiode/cq_gears), [cq_cache](https://github.com/CadQuery/cadquery-plugins/tree/main/plugins/cq_cache), [cq_more](https://github.com/JustinSDK/cqMore), [cq_warehouse](https://github.com/gumyr/cq_warehouse), [bd_warehouse](https://github.com/gumyr/bd_warehouse), and [build123d](https://github.com/gumyr/build123d) libraries. Note you need to change color preferences to enable dark mode for all panes (see Edit -> Preferences).
|
||||||
|
|
||||||
This fork also contains additional changes to the `show_object` function in CQ-editor that make it easier to display and export build123d objects and object lists.
|
This fork also contains additional changes to the `show_object` function in CQ-editor that make it easier to display and export build123d objects and object lists.
|
||||||
|
|
||||||
|
|||||||
@@ -1,98 +0,0 @@
|
|||||||
# -*- mode: python -*-
|
|
||||||
|
|
||||||
import sys, site, os
|
|
||||||
from path import Path
|
|
||||||
from PyInstaller.utils.hooks import collect_all, collect_submodules
|
|
||||||
|
|
||||||
block_cipher = None
|
|
||||||
|
|
||||||
spyder_data = Path(site.getsitepackages()[-1]) / 'spyder'
|
|
||||||
parso_grammar = (Path(site.getsitepackages()[-1]) / 'parso/python').glob('grammar*')
|
|
||||||
cqw_path = Path(site.getsitepackages()[-1]) / 'cq_warehouse'
|
|
||||||
cq_path = Path(site.getsitepackages()[-1]) / 'cadquery'
|
|
||||||
|
|
||||||
if sys.platform == 'linux':
|
|
||||||
occt_dir = os.path.join(Path(sys.prefix), 'share', 'opencascade')
|
|
||||||
ocp_path = (os.path.join(HOMEPATH, 'OCP.cpython-39-x86_64-linux-gnu.so'), '.')
|
|
||||||
elif sys.platform == 'darwin':
|
|
||||||
occt_dir = os.path.join(Path(sys.prefix), 'share', 'opencascade')
|
|
||||||
ocp_path = (os.path.join(HOMEPATH, 'OCP.cpython-39-darwin.so'), '.')
|
|
||||||
elif sys.platform == 'win32':
|
|
||||||
occt_dir = os.path.join(Path(sys.prefix), 'Library', 'share', 'opencascade')
|
|
||||||
ocp_path = [(os.path.join(HOMEPATH, 'OCP.cp39-win_amd64.pyd'), '.')]
|
|
||||||
cas_DLL = [(os.path.join(Path(sys.prefix), 'Library', 'bin', 'casadi_nlpsol_ipopt.dll'), '.')]
|
|
||||||
ipo_DLL = [(os.path.join(Path(sys.prefix), 'Library', 'bin', 'ipopt-3.dll'), '.')]
|
|
||||||
bla_DLL = [(os.path.join(Path(sys.prefix), 'Library', 'bin', 'libblas.dll'), '.')]
|
|
||||||
lap_DLL = [(os.path.join(Path(sys.prefix), 'Library', 'bin', 'liblapack.dll'), '.')]
|
|
||||||
mum_DLL = [(os.path.join(Path(sys.prefix), 'Library', 'bin', 'dmumps.dll'), '.')]
|
|
||||||
fla_DLL = [(os.path.join(Path(sys.prefix), 'Library', 'bin', 'flang.dll'), '.')]
|
|
||||||
flr_DLL = [(os.path.join(Path(sys.prefix), 'Library', 'bin', 'flangrti.dll'), '.')]
|
|
||||||
omp_DLL = [(os.path.join(Path(sys.prefix), 'Library', 'bin', 'libomp.dll'), '.')]
|
|
||||||
mkl_DLLs = [(os.path.join(Path(sys.prefix), 'Library', 'bin', 'mkl*.dll'), '.')]
|
|
||||||
#cas_dllA = os.path.join(HOMEPATH, 'casadi', 'libcasadi.dll')
|
|
||||||
#cas_dllB = os.path.join(HOMEPATH, 'casadi', 'libcasadi_nlpsol_ipopt.dll')
|
|
||||||
|
|
||||||
datas1, binaries1, hiddenimports1 = collect_all('debugpy')
|
|
||||||
hiddenimports2 = collect_submodules('xmlrpc')
|
|
||||||
|
|
||||||
a = Analysis(['run.py'],
|
|
||||||
pathex=['.'],
|
|
||||||
binaries=ocp_path + cas_DLL + ipo_DLL + bla_DLL + lap_DLL + mum_DLL + fla_DLL + flr_DLL + omp_DLL + mkl_DLLs + binaries1,
|
|
||||||
datas=[(spyder_data, 'spyder'),
|
|
||||||
(occt_dir, 'opencascade'),
|
|
||||||
(cqw_path, 'cq_warehouse'),
|
|
||||||
(cq_path, 'cadquery')] +
|
|
||||||
[(p, 'parso/python') for p in parso_grammar] + datas1,
|
|
||||||
hiddenimports=['ipykernel.datapub', 'debugpy', 'vtkmodules', 'vtkmodules.all',
|
|
||||||
'pyqtgraph.graphicsItems.ViewBox.axisCtrlTemplate_pyqt5',
|
|
||||||
'pyqtgraph.graphicsItems.PlotItem.plotConfigTemplate_pyqt5',
|
|
||||||
'pyqtgraph.imageview.ImageViewTemplate_pyqt5', 'xmlrpc', 'ipopt', 'casadi',
|
|
||||||
'zmq.backend', 'cq_warehouse', 'cq_warehouse.bearing', 'cq_warehouse.chain',
|
|
||||||
'cq_warehouse.drafting', 'cq_warehouse.extensions', 'cq_warehouse.fastener',
|
|
||||||
'cq_warehouse.sprocket', 'cq_warehouse.thread', 'cq_gears', 'cq_cache',
|
|
||||||
'build123d', 'cqmore'] + hiddenimports1 + hiddenimports2,
|
|
||||||
hookspath=[],
|
|
||||||
runtime_hooks=['pyinstaller/pyi_rth_occ.py',
|
|
||||||
'pyinstaller/pyi_rth_fontconfig.py'],
|
|
||||||
excludes=['_tkinter'],
|
|
||||||
win_no_prefer_redirects=False,
|
|
||||||
win_private_assemblies=False,
|
|
||||||
cipher=block_cipher,
|
|
||||||
noarchive=False)
|
|
||||||
|
|
||||||
# There is an issue that keeps the OpenSSL libraries from being copied to the output directory.
|
|
||||||
# This should work if nothing else, but does not with GitHub Actions
|
|
||||||
if sys.platform == 'win32':
|
|
||||||
from PyInstaller.depend.bindepend import getfullnameof
|
|
||||||
rel_data_path = ['PyQt5', 'Qt', 'bin']
|
|
||||||
a.datas += [
|
|
||||||
(getfullnameof('libssl-1_1-x64.dll'), os.path.join(*rel_data_path), 'DATA'),
|
|
||||||
(getfullnameof('libcrypto-1_1-x64.dll'), os.path.join(*rel_data_path), 'DATA'),
|
|
||||||
]
|
|
||||||
|
|
||||||
|
|
||||||
pyz = PYZ(a.pure, a.zipped_data,
|
|
||||||
cipher=block_cipher)
|
|
||||||
exe = EXE(pyz,
|
|
||||||
a.scripts,
|
|
||||||
[],
|
|
||||||
exclude_binaries=True,
|
|
||||||
name='CQ-editor',
|
|
||||||
debug=False,
|
|
||||||
bootloader_ignore_signals=False,
|
|
||||||
strip=False,
|
|
||||||
upx=True,
|
|
||||||
console=True,
|
|
||||||
icon='icons/cadquery_logo_dark.ico')
|
|
||||||
|
|
||||||
exclude = ()
|
|
||||||
#exclude = ('libGL','libEGL','libbsd')
|
|
||||||
a.binaries = TOC([x for x in a.binaries if not x[0].startswith(exclude)])
|
|
||||||
|
|
||||||
coll = COLLECT(exe,
|
|
||||||
a.binaries,
|
|
||||||
a.zipfiles,
|
|
||||||
a.datas,
|
|
||||||
strip=False,
|
|
||||||
upx=True,
|
|
||||||
name='CQ-editor')
|
|
||||||
4
pyinstaller/extrahooks/hook-py_lib3mf.py
Normal file
4
pyinstaller/extrahooks/hook-py_lib3mf.py
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
# hook-py_lib3mf.py
|
||||||
|
from PyInstaller.utils.hooks import collect_dynamic_libs
|
||||||
|
|
||||||
|
binaries = collect_dynamic_libs('py_lib3mf')
|
||||||
@@ -9,6 +9,7 @@ block_cipher = None
|
|||||||
spyder_data = Path(site.getsitepackages()[-1]) / 'spyder'
|
spyder_data = Path(site.getsitepackages()[-1]) / 'spyder'
|
||||||
parso_grammar = (Path(site.getsitepackages()[-1]) / 'parso/python').glob('grammar*')
|
parso_grammar = (Path(site.getsitepackages()[-1]) / 'parso/python').glob('grammar*')
|
||||||
cqw_path = Path(site.getsitepackages()[-1]) / 'cq_warehouse'
|
cqw_path = Path(site.getsitepackages()[-1]) / 'cq_warehouse'
|
||||||
|
bdw_path = Path(site.getsitepackages()[-1]) / 'bd_warehouse'
|
||||||
cq_path = Path(site.getsitepackages()[-1]) / 'cadquery'
|
cq_path = Path(site.getsitepackages()[-1]) / 'cadquery'
|
||||||
|
|
||||||
if sys.platform == 'linux':
|
if sys.platform == 'linux':
|
||||||
@@ -29,6 +30,7 @@ a = Analysis(['run.py'],
|
|||||||
binaries=ocp_path + binaries1,
|
binaries=ocp_path + binaries1,
|
||||||
datas=[(spyder_data, 'spyder'),
|
datas=[(spyder_data, 'spyder'),
|
||||||
(cqw_path, 'cq_warehouse'),
|
(cqw_path, 'cq_warehouse'),
|
||||||
|
(bdw_path, 'bd_warehouse'),
|
||||||
(cq_path, 'cadquery')] +
|
(cq_path, 'cadquery')] +
|
||||||
[(p, 'parso/python') for p in parso_grammar] + datas1,
|
[(p, 'parso/python') for p in parso_grammar] + datas1,
|
||||||
hiddenimports=['ipykernel.datapub', 'debugpy', 'vtkmodules', 'vtkmodules.all',
|
hiddenimports=['ipykernel.datapub', 'debugpy', 'vtkmodules', 'vtkmodules.all',
|
||||||
@@ -38,7 +40,8 @@ a = Analysis(['run.py'],
|
|||||||
'zmq.backend', 'cq_warehouse', 'cq_warehouse.bearing', 'cq_warehouse.chain',
|
'zmq.backend', 'cq_warehouse', 'cq_warehouse.bearing', 'cq_warehouse.chain',
|
||||||
'cq_warehouse.drafting', 'cq_warehouse.extensions', 'cq_warehouse.fastener',
|
'cq_warehouse.drafting', 'cq_warehouse.extensions', 'cq_warehouse.fastener',
|
||||||
'cq_warehouse.sprocket', 'cq_warehouse.thread', 'cq_gears', 'cq_cache',
|
'cq_warehouse.sprocket', 'cq_warehouse.thread', 'cq_gears', 'cq_cache',
|
||||||
'build123d', 'cqmore'] + hiddenimports1 + hiddenimports2,
|
'build123d', 'cqmore', 'bd_warehouse', 'bd_warehouse.pipe', 'bd_warehouse.flange',
|
||||||
|
'bd_warehouse.thread', 'bd_warehouse.gears'] + hiddenimports1 + hiddenimports2,
|
||||||
hookspath=['pyinstaller/extrahooks/'],
|
hookspath=['pyinstaller/extrahooks/'],
|
||||||
runtime_hooks=['pyinstaller/pyi_rth_occ.py',
|
runtime_hooks=['pyinstaller/pyi_rth_occ.py',
|
||||||
'pyinstaller/pyi_rth_fontconfig.py'],
|
'pyinstaller/pyi_rth_fontconfig.py'],
|
||||||
|
|||||||
Reference in New Issue
Block a user