20 Commits

Author SHA1 Message Date
jdegenstein
9a41946bf6 ... PIP-TAR.yml -> disable linux/macos builds (only WIN) 2024-06-09 14:11:40 -05:00
jdegenstein
e9696209d0 ... -PIP-TAR.yml-> add choco install upx 2024-06-09 14:10:44 -05:00
jdegenstein
5fdeda5076 pyinstaller-builds-actions-PIP-TAR.yml -> pip install self built macos arm64 nlopt 2024-06-05 08:45:57 -05:00
jdegenstein
ebdc391f3d Update pyinstaller-builds-actions-PIP-TAR.yml 2024-06-04 20:36:06 -05:00
jdegenstein
3ba85424c7 Update pyinstaller-builds-actions-PIP-TAR.yml -> use mainline pyinstaller-hooks-contrib 2024-06-04 14:09:54 -05:00
jdegenstein
069df10dd0 Update pyinstaller-builds-actions-PIP-TAR.yml 2024-06-01 15:20:44 -05:00
jdegenstein
c2ba027cd5 Update pyinstaller-builds-actions-PIP-TAR.yml 2024-06-01 09:54:33 -05:00
jdegenstein
9653933c2e CQ-editor.sh workaround from issue #13 2024-05-30 20:44:56 -05:00
jdegenstein
7878bad430 Update pyinstaller-builds-actions-PIP-TAR.yml 2024-05-30 15:21:05 -05:00
jdegenstein
80b9dd5bef pyinstaller-builds-actions-PIP-TAR.yml 2024-05-30 14:48:30 -05:00
jdegenstein
67d64f67a7 pyinstaller-builds-actions-PIP-TAR.yml -> attempt to add macos-arm64 2024-05-30 14:40:50 -05:00
jdegenstein
4ae685aba2 pyinstaller-builds-actions-PIP-TAR.yml -> Fix win path for use with bash 2024-05-30 14:20:24 -05:00
jdegenstein
189c37e284 pyinstaller-builds-actions-PIP-TAR.yml -> shell: bash --login {0} 2024-05-30 14:06:37 -05:00
jdegenstein
8b63d10dc5 Update pyinstaller-builds-actions-PIP-TAR.yml 2024-05-30 13:59:06 -05:00
jdegenstein
38feb5ddc4 pyinstaller-builds-actions-PIP-TAR.yml -> activate environment 2024-05-30 13:49:42 -05:00
jdegenstein
0254de2be7 Update cqgui_env.yml python 3.11 2024-05-30 13:15:30 -05:00
jdegenstein
33e813dad8 pyinstaller_pip.spec -> python 3.11 2024-05-30 13:14:42 -05:00
jdegenstein
5354369dcd environment.yml -> python=3.11 2024-05-30 13:14:04 -05:00
jdegenstein
20e8d623d0 pyinstaller-builds-actions-PIP-TAR.yml -> Updating actions and fixing MacOS/x86_64 builds 2024-05-30 13:13:05 -05:00
jdegenstein
f26f95396a pyinstaller-builds-actions-PIP-TAR.yml -> update some GH actions for node20 2024-04-12 09:46:11 -05:00
5 changed files with 142 additions and 102 deletions

View File

@@ -9,111 +9,145 @@ on:
required: true required: true
default: 'dir' default: 'dir'
jobs: jobs:
build-linux: # build-linux-x86_64:
runs-on: ubuntu-22.04 # runs-on: ubuntu-22.04
steps: # steps:
- uses: actions/checkout@v3 # - uses: actions/checkout@v4
- uses: mamba-org/setup-micromamba@v1 # - uses: mamba-org/setup-micromamba@v1
with: # with:
#miniconda-version: "latest" # environment-name: test
#auto-update-conda: true # environment-file: environment.yml
environment-name: test # init-shell: >-
environment-file: environment.yml # bash
create-args: >- # - name: pip install cadquery CQ-editor ... etc
python=3.10 # shell: bash --login {0}
- name: pip install cadquery CQ-editor ... etc # run: |
shell: bash --login {0} # sudo apt install -y libblas-dev libblas3 libblas64-3 libblas64-dev
run: | # sudo apt install -y libxkbcommon0 libxkbcommon-x11-0 libxcb-xinerama0
sudo apt install -y libblas-dev libblas3 libblas64-3 libblas64-dev # sudo apt install -y qtbase5-dev qt5-qmake
sudo apt install -y libxkbcommon0 # micromamba info
sudo apt install -y libxkbcommon-x11-0 # pip install pyopengl
sudo apt install -y libxcb-xinerama0 # pip install git+https://github.com/jdegenstein/jmwright-CQ-Editor
sudo apt install -y qtbase5-dev qt5-qmake # pip install -vvv --pre git+https://github.com/cadquery/cadquery casadi
micromamba info # pip install pyinstaller>=5.6
pip install pyopengl # pip install path
pip install git+https://github.com/jdegenstein/jmwright-CQ-Editor # pip install jupyter-rfb
pip install -vvv --pre git+https://github.com/cadquery/cadquery casadi # pip install git+https://github.com/gumyr/cq_warehouse.git#egg=cq_warehouse
pip install pyinstaller>=5.6 git+https://github.com/jdegenstein/pyinstaller-hooks-contrib # pip install git+https://github.com/gumyr/bd_warehouse
pip install path # pip install git+https://github.com/meadiode/cq_gears.git@main
pip install jupyter-rfb # 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/cq_warehouse.git#egg=cq_warehouse # pip install git+https://github.com/gumyr/build123d
pip install git+https://github.com/gumyr/bd_warehouse # pip install git+https://github.com/JustinSDK/cqMore
pip install git+https://github.com/meadiode/cq_gears.git@main # pip list
pip install -e "git+https://github.com/CadQuery/cadquery-plugins.git#egg=cq_cache&subdirectory=plugins/cq_cache" # - name: Run build
pip install git+https://github.com/gumyr/build123d # shell: bash --login {0}
pip install git+https://github.com/JustinSDK/cqMore # run: |
pip list # micromamba activate test
- name: Run build # micromamba info
shell: bash --login {0} # pyinstaller pyinstaller_pip.spec ${{ github.event.inputs.type }}
run: | # cp /home/runner/work/jmwright-CQ-Editor/jmwright-CQ-Editor/pyinstaller/CQ-editor.sh /home/runner/work/jmwright-CQ-Editor/jmwright-CQ-Editor/dist/
micromamba info # - uses: actions/upload-artifact@v4
pyinstaller pyinstaller_pip.spec ${{ github.event.inputs.type }} # with:
cp /home/runner/work/jmwright-CQ-Editor/jmwright-CQ-Editor/pyinstaller/CQ-editor.sh /home/runner/work/jmwright-CQ-Editor/jmwright-CQ-Editor/dist/ # name: CQ-editor-Linux-x86_64
- uses: alehechka/upload-tartifact@v2 # path: dist
with: # build-macos-x86_64:
name: CQ-editor-Linux-x86_64 # runs-on: macos-13
path: dist # steps:
build-macos: # - uses: actions/checkout@v4
runs-on: macos-latest # - uses: mamba-org/setup-micromamba@v1
steps: # with:
- uses: actions/checkout@v3 # environment-name: test
- uses: mamba-org/setup-micromamba@v1 # environment-file: environment.yml
with: # init-shell: >-
#miniconda-version: "latest" # bash
#auto-update-conda: true # - name: pip install cadquery CQ-editor ... etc
environment-name: test # shell: bash --login {0}
environment-file: environment.yml # run: |
create-args: >- # micromamba info
python=3.10 # pip install git+https://github.com/jdegenstein/jmwright-CQ-Editor
- name: pip install cadquery CQ-editor ... etc # pip install --pre git+https://github.com/cadquery/cadquery casadi
shell: bash --login {0} # pip install pyinstaller>=5.6
run: | # pip install path
micromamba info # pip uninstall -y PyQt5
pip install git+https://github.com/jdegenstein/jmwright-CQ-Editor # pip install PyQt5==5.15.7
pip install --pre git+https://github.com/cadquery/cadquery casadi # pip install PyQtWebEngine==5.15.6
pip install pyinstaller>=5.6 git+https://github.com/jdegenstein/pyinstaller-hooks-contrib # pip install git+https://github.com/gumyr/cq_warehouse.git#egg=cq_warehouse
pip install path # pip install git+https://github.com/gumyr/bd_warehouse
pip uninstall -y PyQt5 # pip install git+https://github.com/meadiode/cq_gears.git@main
pip install PyQt5==5.15.7 # pip install -e "git+https://github.com/CadQuery/cadquery-plugins.git#egg=cq_cache&subdirectory=plugins/cq_cache"
pip install PyQtWebEngine==5.15.6 # pip install git+https://github.com/gumyr/build123d
pip install git+https://github.com/gumyr/cq_warehouse.git#egg=cq_warehouse # pip install git+https://github.com/JustinSDK/cqMore
pip install git+https://github.com/gumyr/bd_warehouse # pip list
pip install git+https://github.com/meadiode/cq_gears.git@main # - name: Run build
pip install -e "git+https://github.com/CadQuery/cadquery-plugins.git#egg=cq_cache&subdirectory=plugins/cq_cache" # shell: bash --login {0}
pip install git+https://github.com/gumyr/build123d # run: |
pip install git+https://github.com/JustinSDK/cqMore # micromamba activate test
pip list # micromamba info
- name: Run build # pyinstaller pyinstaller_pip.spec ${{ github.event.inputs.type }}
shell: bash --login {0} # cp /Users/runner/work/jmwright-CQ-Editor/jmwright-CQ-Editor/pyinstaller/CQ-editor.sh /Users/runner/work/jmwright-CQ-Editor/jmwright-CQ-Editor/dist/
run: | # - uses: actions/upload-artifact@v4
micromamba info # with:
pyinstaller pyinstaller_pip.spec ${{ github.event.inputs.type }} # name: CQ-editor-MacOS-x86_64
cp /Users/runner/work/jmwright-CQ-Editor/jmwright-CQ-Editor/pyinstaller/CQ-editor.sh /Users/runner/work/jmwright-CQ-Editor/jmwright-CQ-Editor/dist/ # path: dist
- uses: alehechka/upload-tartifact@v1 # build-macos-arm64:
with: # runs-on: macos-14
name: CQ-editor-MacOS # steps:
path: dist # - uses: actions/checkout@v4
# - uses: mamba-org/setup-micromamba@v1
# with:
# environment-name: test
# environment-file: environment.yml
# init-shell: >-
# bash
# - name: pip install cadquery CQ-editor ... etc
# shell: bash --login {0}
# run: |
# micromamba info
# pip install git+https://github.com/jdegenstein/jmwright-CQ-Editor
# pip install https://github.com/CadQuery/ocp-build-system/releases/download/7.7.2.0/cadquery_ocp-7.7.2-cp311-cp311-macosx_11_0_arm64.whl
# pip install https://github.com/jdegenstein/nlopt-python/releases/download/2.7.1.3/nlopt-2.7.1-cp311-cp311-macosx_11_0_arm64.whl
# pip install --pre git+https://github.com/cadquery/cadquery casadi
# pip install pyinstaller>=5.6
# pip install path
# pip uninstall -y PyQt5
# pip install PyQt5==5.15.10
# 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/bd_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: bash --login {0}
# run: |
# micromamba activate test
# 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: actions/upload-artifact@v4
# with:
# name: CQ-editor-MacOS-arm64
# path: dist
build-windows: build-windows:
runs-on: windows-latest runs-on: windows-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- uses: mamba-org/setup-micromamba@v1 - uses: mamba-org/setup-micromamba@v1
with: with:
#miniconda-version: "latest"
#auto-update-conda: true
environment-name: test environment-name: test
environment-file: environment.yml environment-file: environment.yml
init-shell: >- init-shell: >-
powershell bash
create-args: >-
python=3.10
- name: pip install cadquery CQ-editor ... etc - name: pip install cadquery CQ-editor ... etc
shell: powershell shell: bash --login {0}
run: | run: |
micromamba info micromamba info
choco install upx
pip install git+https://github.com/jdegenstein/jmwright-CQ-Editor pip install git+https://github.com/jdegenstein/jmwright-CQ-Editor
pip install --pre git+https://github.com/cadquery/cadquery casadi pip install --pre git+https://github.com/cadquery/cadquery casadi
pip install pyinstaller>=5.6 git+https://github.com/jdegenstein/pyinstaller-hooks-contrib pip install pyinstaller>=5.6
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/gumyr/bd_warehouse
@@ -123,12 +157,18 @@ jobs:
pip install git+https://github.com/JustinSDK/cqMore pip install git+https://github.com/JustinSDK/cqMore
pip list pip list
- name: Run build - name: Run build
shell: powershell shell: bash --login {0}
run: | run: |
micromamba activate test
micromamba info micromamba info
pyinstaller pyinstaller_pip.spec ${{ github.event.inputs.type }} 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\ cp 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@v2
- name: 7zip artifact (workaround for too many files during artifact upload)
shell: bash --login {0}
run: 7z a release.zip ./dist/*
- uses: actions/upload-artifact@v4
with: with:
name: CQ-editor-Windows name: CQ-editor-Windows
path: dist path: release.zip

View File

@@ -5,7 +5,7 @@ channels:
dependencies: dependencies:
- pyqt=5 - pyqt=5
- pyqtgraph - pyqtgraph
- python=3.10 - python=3.11
- spyder=5 - spyder=5
- path - path
- logbook - logbook

View File

@@ -3,4 +3,4 @@ channels:
- conda-forge - conda-forge
- defaults - defaults
dependencies: dependencies:
- python=3.10 - python=3.11

View File

@@ -1,4 +1,4 @@
#!/bin/sh #!/bin/sh
export QT_MAC_WANTS_LAYER=1 export QT_MAC_WANTS_LAYER=1
chmod u+x ./CQ-editor/CQ-editor chmod u+x ./CQ-editor/CQ-editor
./CQ-editor/CQ-editor QT_QPA_PLATFORM=xcb PYOPENGL_PLATFORM=x11 ./CQ-editor/CQ-editor

View File

@@ -14,13 +14,13 @@ cq_path = Path(site.getsitepackages()[-1]) / 'cadquery'
if sys.platform == 'linux': if sys.platform == 'linux':
occt_dir = os.path.join(Path(sys.prefix), 'share', 'opencascade') occt_dir = os.path.join(Path(sys.prefix), 'share', 'opencascade')
ocp_path = [(os.path.join(HOMEPATH, 'OCP.cpython-310-x86_64-linux-gnu.so'), '.')] ocp_path = [(os.path.join(HOMEPATH, 'OCP.cpython-311-x86_64-linux-gnu.so'), '.')]
elif sys.platform == 'darwin': elif sys.platform == 'darwin':
occt_dir = os.path.join(Path(sys.prefix), 'share', 'opencascade') occt_dir = os.path.join(Path(sys.prefix), 'share', 'opencascade')
ocp_path = [(os.path.join(HOMEPATH, 'OCP.cpython-310-darwin.so'), '.')] ocp_path = [(os.path.join(HOMEPATH, 'OCP.cpython-311-darwin.so'), '.')]
elif sys.platform == 'win32': elif sys.platform == 'win32':
occt_dir = os.path.join(Path(sys.prefix), 'Library', 'share', 'opencascade') occt_dir = os.path.join(Path(sys.prefix), 'Library', 'share', 'opencascade')
ocp_path = [(os.path.join(HOMEPATH, 'OCP.cp310-win_amd64.pyd'), '.')] ocp_path = [(os.path.join(HOMEPATH, 'OCP.cp311-win_amd64.pyd'), '.')]
datas1, binaries1, hiddenimports1 = collect_all('debugpy') datas1, binaries1, hiddenimports1 = collect_all('debugpy')
hiddenimports2 = collect_submodules('xmlrpc') hiddenimports2 = collect_submodules('xmlrpc')