Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PERMANENT DRAFT: #473

Draft
wants to merge 228 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
228 commits
Select commit Hold shift + click to select a range
04978a6
Initial commit
jdegenstein Sep 16, 2022
fffb6db
from jmwright 72b67da
jdegenstein Sep 16, 2022
81b703d
Create pyinstaller-builds-actions.yml
jdegenstein Sep 16, 2022
45d36f4
Create pyinstaller-builds-actions.yml
jdegenstein Sep 16, 2022
ddbc439
Delete pyinstaller-builds-actions.yml
jdegenstein Sep 16, 2022
e219eb9
Bring up to date with mainline CQ-Editor 774c3c6
jdegenstein Sep 16, 2022
16a5891
Bring up to date with mainline CQ-Editor 774c3c6
jdegenstein Sep 16, 2022
432576b
Bring up to date with mainline CQ-Editor 774c3c6
jdegenstein Sep 16, 2022
fb36c47
Change directories for successful build
jdegenstein Sep 16, 2022
c7fe068
Update pyinstaller-builds-actions.yml
jdegenstein Sep 18, 2022
937b2cc
Update pyinstaller.spec
jdegenstein Sep 18, 2022
85a7560
Add logging to CQ-Editor console
jdegenstein Sep 18, 2022
9daa332
Reformat log output
jdegenstein Sep 18, 2022
c342872
Temporarily disable Linux/MacOS builds for testing
jdegenstein Sep 18, 2022
4ab7f91
Attempt at adding cq_warehouse data
jdegenstein Sep 18, 2022
a990f8d
Second attempt at adding cq_warehouse datas
jdegenstein Sep 18, 2022
29d3588
Enable CQ-editor dark-mode for console
jdegenstein Sep 19, 2022
682660d
Enable CQ-editor dark mode for the main window/children
jdegenstein Sep 19, 2022
d970c28
Add dark mode information to README.md
jdegenstein Sep 19, 2022
c144183
Update README.md
jdegenstein Sep 19, 2022
6ef9017
Revert to build Linux/MacOS in addition to Windows
jdegenstein Sep 19, 2022
60315e7
Temporarily disable Linux/MacOS pyinstaller runs
jdegenstein Sep 19, 2022
c82b09f
Newest available versions of spyder and ipython
jdegenstein Sep 19, 2022
80af0fd
Update pyinstaller-builds-actions.yml
jdegenstein Sep 19, 2022
8dd4f6b
Add jedi specific version, remove spyder specific version
jdegenstein Sep 19, 2022
4adbb38
pin to ipython=7.20
jdegenstein Sep 19, 2022
9819944
add micromamba buildfile
jdegenstein Sep 20, 2022
b2f5363
environment.yml for micromamba
jdegenstein Sep 20, 2022
1b72e14
2nd try micromamba
jdegenstein Sep 20, 2022
655888f
yml not yaml
jdegenstein Sep 20, 2022
92999e9
Unpin versions for mmamba
jdegenstein Sep 20, 2022
f290c4f
Pin ipython=7.20.0 to mmamba
jdegenstein Sep 20, 2022
81e4ed2
pin jedi, spyder, ipython for mmamba
jdegenstein Sep 20, 2022
ca41347
unpin spyder
jdegenstein Sep 20, 2022
7760c02
remove pipwin/numpy installation
jdegenstein Sep 20, 2022
8466c54
Explicitly install debugpy
jdegenstein Sep 20, 2022
dd4c40b
remove debugpy from hiddenimports in spec
jdegenstein Sep 20, 2022
50488fa
unpin ipython=7.20.0
jdegenstein Sep 20, 2022
71a2964
re-add debugpy
jdegenstein Sep 20, 2022
b6d3c0b
Rename job and pin ipython=8.4.0
jdegenstein Sep 20, 2022
3e9b2d5
Readd pipwin/numpy to mmamba
jdegenstein Sep 20, 2022
8ceadc4
Import logbook outside of prepare_console function
jdegenstein Sep 20, 2022
9e50de2
Reenable Linux/MacOS with mmamba
jdegenstein Sep 20, 2022
bcfdcf0
Test removing conda force uninstall
jdegenstein Sep 20, 2022
db31813
Create pyinstaller-builds-actions-mmamba-TAR.yml
jdegenstein Sep 20, 2022
6410ade
tartifact@v1
jdegenstein Sep 20, 2022
7eb8bd0
Update alehechka/upload-tartifact@v1
jdegenstein Sep 20, 2022
fe7431f
Try disable download-tartifact
jdegenstein Sep 20, 2022
6d23572
Add cadquery as datas to pyinstaller.spec
jdegenstein Sep 21, 2022
1b1d68b
Testing add cq-editor to datas in pyinstaller.spec
jdegenstein Sep 23, 2022
2cab778
Fix typo in bracket
jdegenstein Sep 23, 2022
f292ab5
Update pyinstaller.spec
jdegenstein Sep 23, 2022
e47f978
Revert cq-editor pyinstaller
jdegenstein Sep 23, 2022
06ea4a4
pin PyQt5 version for static build
jdegenstein Oct 3, 2022
e24600a
Update pyinstaller-builds-actions-mmamba.yml
jdegenstein Oct 3, 2022
c52a2a4
unpin pyqt=5.15 and remove cq-editor=master
jdegenstein Oct 3, 2022
c0b97d0
Readd cq-editor=master to build action
jdegenstein Oct 3, 2022
45a7291
Pin pyqtgraph=0.12.4
jdegenstein Oct 3, 2022
c977cf2
Unpin pyqtgraph
jdegenstein Oct 3, 2022
a6ac887
Update default color to #FF0 to work with pyqtgraph=0.13+
jdegenstein Oct 4, 2022
f33cb13
Update color to work with pyqtgraph=0.13+
jdegenstein Oct 4, 2022
f9ecd7c
Add cqMore to static build
jdegenstein Oct 14, 2022
a376177
Testing show_object change for b123d
jdegenstein Oct 14, 2022
3e076eb
Compatibility with build123d
jdegenstein Oct 14, 2022
95f7ea0
Add cqmore as hiddenimport
jdegenstein Oct 14, 2022
3ad2341
Keep libstdc++.so.6
jdegenstein Oct 14, 2022
ec1ace3
Testing changes for build123d
jdegenstein Oct 16, 2022
e89fbd6
testing changes for build123d
jdegenstein Oct 16, 2022
b6532d0
Delete cq_utils.py
jdegenstein Oct 17, 2022
02453f7
Link to projects, remove wrong install, link to build actions
jdegenstein Oct 17, 2022
4ee59fd
Bring up to date with mainline CQ-editor ec81ad9
jdegenstein Oct 19, 2022
e334092
Bring up to date with mainline CQ-editor ec81ad9
jdegenstein Oct 19, 2022
c9c9d8e
Bring up to date with mainline CQ-editor ec81ad9
jdegenstein Oct 19, 2022
339d871
Bring up to date with mainline CQ-editor ec81ad9
jdegenstein Oct 19, 2022
a7fab8f
Fix DEFAULT_EDGE_WIDTH from DEFUALT_EDGE_WIDTH
jdegenstein Oct 19, 2022
39bb402
Update setup.py for pip install per u/sethfischer
jdegenstein Oct 21, 2022
6bd2148
Pin ipython=8.4.0 version to setup.py
jdegenstein Oct 21, 2022
974fd51
Merge pull request #2 from jdegenstein/dev
jdegenstein Oct 21, 2022
cfb9520
fix pin
jdegenstein Oct 21, 2022
5fd737a
pin jedi==0.17.2 in setup.py
jdegenstein Oct 21, 2022
6e26bdb
Testing add casadi DLLs to pyinstaller.spec
jdegenstein Oct 25, 2022
3764233
Update pyinstaller-builds-actions-mmamba-TAR.yml
jdegenstein Oct 25, 2022
621e0dc
Update pyinstaller.spec
jdegenstein Oct 25, 2022
3ac6e93
Update pyinstaller.spec to include casadi
jdegenstein Oct 25, 2022
dfb79aa
Update pyinstaller.spec
jdegenstein Oct 25, 2022
22c3d3a
Update pyinstaller-builds-actions-mmamba-TAR.yml
jdegenstein Oct 25, 2022
4a6e9a1
Update pyinstaller.spec
jdegenstein Oct 26, 2022
cf7253e
Update pyinstaller.spec
jdegenstein Oct 26, 2022
0818537
Update pyinstaller-builds-actions-mmamba-TAR.yml
jdegenstein Oct 26, 2022
5b474bb
Update pyinstaller.spec
jdegenstein Oct 26, 2022
2d7cb64
Update pyinstaller.spec
jdegenstein Oct 26, 2022
b0284ac
Add ipopt and casadi to hidden imports in spec
jdegenstein Oct 26, 2022
be62509
Update pyinstaller-builds-actions-mmamba-TAR.yml
jdegenstein Oct 26, 2022
de73e88
Remove casadi DLLs from pyinstaller.spec
jdegenstein Oct 26, 2022
c85c835
Update mmamba-TAR.yml to include casadi_nlpsol_ipopt.dll
jdegenstein Oct 26, 2022
36f23a4
change casadi...dll path in mmamba-TAR.yml
jdegenstein Oct 26, 2022
36f2896
Fix casadi*.dll path
jdegenstein Oct 26, 2022
839d514
add missing libraries to spec file
jdegenstein Oct 27, 2022
ce68e6e
Update setup.py
jdegenstein Oct 27, 2022
ca70604
Update test_app.py to bring up to date with Mainline a2df6ff
jdegenstein Oct 27, 2022
10a81d4
Update cq_utils.py to bring up to date with Mainline a2df6ff
jdegenstein Oct 27, 2022
ee09398
Update viewer.py to bring up to date with Mainline a2df6ff
jdegenstein Oct 27, 2022
14535ec
Create pyinstaller-builds-actions-PIP-TAR.yml
jdegenstein Oct 27, 2022
66e620a
Update pyinstaller-builds-actions-PIP-TAR.yml
jdegenstein Oct 27, 2022
0e29e30
Update pyinstaller-builds-actions-PIP-TAR.yml
jdegenstein Oct 27, 2022
aa90e48
Create pyinstaller_pip.spec
jdegenstein Oct 27, 2022
3f3e22c
Update pyinstaller_pip.spec
jdegenstein Oct 27, 2022
466d1e7
Update pyinstaller-builds-actions-PIP-TAR.yml
jdegenstein Oct 28, 2022
72e814d
Update pyinstaller_pip.spec
jdegenstein Oct 28, 2022
0087803
Update pyinstaller-builds-actions-PIP-TAR.yml
jdegenstein Oct 28, 2022
03e8575
Update README.md
jdegenstein Oct 28, 2022
9f4fa50
Update pyinstaller-builds-actions-PIP-TAR.yml
jdegenstein Oct 28, 2022
272bede
Update pyinstaller-builds-actions-PIP-TAR.yml
jdegenstein Oct 28, 2022
67fa197
Update pyinstaller-builds-actions-PIP-TAR.yml
jdegenstein Oct 28, 2022
fd47ead
Create hook-casadi.py
jdegenstein Oct 28, 2022
ebcb831
Update pyinstaller_pip.spec
jdegenstein Oct 28, 2022
acf5639
create subdir and add hook-casasi.py to it
jdegenstein Oct 28, 2022
000fe98
Delete dup hook-casadi.py
jdegenstein Oct 28, 2022
26b6460
hookspath=['pyinstaller/extrahooks/']to _pip.spec
jdegenstein Oct 28, 2022
e436bd3
Re-enable Linux/MacOS on -PIP-TAR.yaml
jdegenstein Oct 28, 2022
a7a376f
point to pyinstaller_pip.spec on Linux/MacOS
jdegenstein Oct 28, 2022
c5e0d73
fix list(tuple)
jdegenstein Oct 28, 2022
9734486
move to ubuntu-22.04 from ubuntu-latest (20.04)
jdegenstein Oct 28, 2022
925aded
add rand_color() helper function
jdegenstein Oct 29, 2022
7c8fa2b
from .widgets.object_tree import ObjectTree, rand_color
jdegenstein Oct 29, 2022
5e0d68e
remove rand_color
jdegenstein Oct 29, 2022
fefb57c
remove rand_color
jdegenstein Oct 29, 2022
73a5825
add rand_color
jdegenstein Oct 29, 2022
fbbb1fd
Update debugger.py
jdegenstein Oct 29, 2022
dbc90c2
register rand_color for use in console
jdegenstein Oct 29, 2022
69d6bc3
testing ubuntu-18.04
jdegenstein Nov 2, 2022
ecaf68e
changes for ubuntu-1804
jdegenstein Nov 2, 2022
2d7fbeb
changes for ubuntu1804
jdegenstein Nov 2, 2022
afa20cd
increase pip verbosity for cadquery and casadi install
jdegenstein Nov 2, 2022
2b3620b
max verbosity
jdegenstein Nov 2, 2022
7b49f25
Revert ubuntu-1804 changes to test ubuntu-2004
jdegenstein Nov 3, 2022
a144b2e
build123d compatibility improvements for file exporting
jdegenstein Jan 9, 2023
ee6a607
remove debugging print
jdegenstein Jan 9, 2023
2ba23c4
build123d compat
jdegenstein Jan 9, 2023
bd12503
Additional info about build123d compat and more links
jdegenstein Jan 23, 2023
524a8dd
Change right click and drag to pan
jdegenstein Feb 2, 2023
9506307
Add pip install instruction for build123d to README
jdegenstein Feb 2, 2023
29b2fae
Change rand_color seed
jdegenstein Feb 11, 2023
cf43cee
Update build123d install instruction
jdegenstein Feb 11, 2023
758afb5
Add discord link to readme
jdegenstein Feb 11, 2023
6b762ba
Merge pull request #6 from jdegenstein/mactrackpad
jdegenstein Feb 14, 2023
e71a5f1
Update README
jdegenstein Feb 17, 2023
43c4708
Testing unpinning jedi in setup.py
jdegenstein Feb 20, 2023
9eca091
test scipy<=1.9.1 in setup.py
jdegenstein Feb 21, 2023
ba3f45e
Testing pyinstaller >=5.6
jdegenstein Feb 21, 2023
6a76280
pyinstall 5.6 remove --debug
jdegenstein Feb 21, 2023
b408429
Unpin scipy from setup.py
jdegenstein Feb 21, 2023
c1e75a8
update to pyinstaller>=5.6
jdegenstein Feb 21, 2023
0d1ee5d
add qtbase5-dev qt5-qmake to linux static build
jdegenstein Feb 21, 2023
3ef2ec4
install pyopengl on linux static build
jdegenstein Feb 21, 2023
feef729
try unpin ipython==8.4.0 to fix linux static builds
jdegenstein Feb 27, 2023
5e49adc
install jupyter-rfb on linux static build
jdegenstein Feb 27, 2023
653502e
try unpin pyqtgraph==0.12.4 to fix linux static builds
jdegenstein Feb 27, 2023
611d189
bump python=3.10 linux static build
jdegenstein Feb 27, 2023
df863ae
bump to python=3.10 to fix linux static build
jdegenstein Feb 27, 2023
be2989c
pin all to python=3.10
jdegenstein Feb 27, 2023
fba053d
unpin casadi==3.5.5 to fix linux static builds
jdegenstein Feb 27, 2023
c1f08af
bump OCP static lib to python 3.10
jdegenstein Feb 27, 2023
215c200
install pyinstaller-hooks-contrib from GH
jdegenstein Feb 27, 2023
deca2f1
patched local hooks-contrib
jdegenstein Feb 27, 2023
d9153ab
bump MacOS static build to pyinstaller>=5.6
jdegenstein Feb 27, 2023
55c23b1
add doc for name and rand_color in show_object to README.md
jdegenstein Mar 1, 2023
a4b8663
change to "wine red" x-axis
jdegenstein Mar 13, 2023
0ba6402
change x-axis to "wine red" color
jdegenstein Mar 13, 2023
151b8b8
fix missing import Quantity_TOC_RGB
jdegenstein Mar 19, 2023
9a60cf7
add unused parameters to show_object for compat with ocp_vscode
jdegenstein Apr 12, 2023
56ca315
testing py 3.11
jdegenstein Apr 19, 2023
1f546f4
Update README.md
jdegenstein May 8, 2023
21d729d
Update actions to use setup-micromamba instead of prov mm
jdegenstein Jun 15, 2023
1b75bf8
GH Actions to checkout@v3 and tartifact@v2
jdegenstein Jun 15, 2023
a83d03c
GH Actions init-shell powershell for windows
jdegenstein Jun 15, 2023
0c7237f
GH Actions: Downgrade tartifact to @v1 for MacOS
jdegenstein Jun 15, 2023
e59c6ae
Add Release Info to README.md
jdegenstein Jun 16, 2023
25d4c2c
Swap front/back view directions to match with OCP CAD Viewer
jdegenstein Jul 5, 2023
f52fc4d
remove getfullnameof in pyinstaller_pip.spec
jdegenstein Sep 25, 2023
d8c4e5b
Create hook-py_lib3mf.py
jdegenstein Oct 20, 2023
ab6526c
Create hook-rtree.py
jdegenstein Oct 20, 2023
656426f
Delete pyinstaller/extrahooks/hook-rtree.py
jdegenstein Oct 26, 2023
035b95c
Update pyinstaller-builds-actions-PIP-TAR.yml
jdegenstein Oct 30, 2023
e00e40c
Update pyinstaller-builds-actions-PIP-TAR.yml
jdegenstein Oct 30, 2023
3ed0def
pyinstaller-builds-actions-PIP-TAR.yml -> install bd_warehouse
jdegenstein Jan 2, 2024
5b0504f
pyinstaller_pip.spec -> add bd_warehouse
jdegenstein Jan 2, 2024
14d0477
README.md -> add bd_warehouse
jdegenstein Jan 2, 2024
aaf0d31
Delete .github/workflows/pyinstaller-builds-actions-build-PIP-TAR-pyi…
jdegenstein Jan 2, 2024
143d771
Delete .github/workflows/pyinstaller-builds-actions-mmamba-TAR.yml
jdegenstein Jan 2, 2024
003b9eb
Delete .github/workflows/pyinstaller-builds-actions-mmamba.yml
jdegenstein Jan 2, 2024
1bb94c1
Delete .github/workflows/pyinstaller-builds-actions.yml
jdegenstein Jan 2, 2024
6fe767c
Delete pyinstaller.spec
jdegenstein Jan 2, 2024
f26f953
pyinstaller-builds-actions-PIP-TAR.yml -> update some GH actions for …
jdegenstein Apr 12, 2024
20e8d62
pyinstaller-builds-actions-PIP-TAR.yml -> Updating actions and fixing…
jdegenstein May 30, 2024
5354369
environment.yml -> python=3.11
jdegenstein May 30, 2024
33e813d
pyinstaller_pip.spec -> python 3.11
jdegenstein May 30, 2024
0254de2
Update cqgui_env.yml python 3.11
jdegenstein May 30, 2024
38feb5d
pyinstaller-builds-actions-PIP-TAR.yml -> activate environment
jdegenstein May 30, 2024
8b63d10
Update pyinstaller-builds-actions-PIP-TAR.yml
jdegenstein May 30, 2024
189c37e
pyinstaller-builds-actions-PIP-TAR.yml -> shell: bash --login {0}
jdegenstein May 30, 2024
4ae685a
pyinstaller-builds-actions-PIP-TAR.yml -> Fix win path for use with bash
jdegenstein May 30, 2024
67d64f6
pyinstaller-builds-actions-PIP-TAR.yml -> attempt to add macos-arm64
jdegenstein May 30, 2024
80b9dd5
pyinstaller-builds-actions-PIP-TAR.yml
jdegenstein May 30, 2024
7878bad
Update pyinstaller-builds-actions-PIP-TAR.yml
jdegenstein May 30, 2024
9653933
CQ-editor.sh workaround from issue #13
jdegenstein May 31, 2024
c2ba027
Update pyinstaller-builds-actions-PIP-TAR.yml
jdegenstein Jun 1, 2024
069df10
Update pyinstaller-builds-actions-PIP-TAR.yml
jdegenstein Jun 1, 2024
3ba8542
Update pyinstaller-builds-actions-PIP-TAR.yml -> use mainline pyinsta…
jdegenstein Jun 4, 2024
ebdc391
Update pyinstaller-builds-actions-PIP-TAR.yml
jdegenstein Jun 5, 2024
5fdeda5
pyinstaller-builds-actions-PIP-TAR.yml -> pip install self built maco…
jdegenstein Jun 5, 2024
d657da6
setup.py -> add numpy dep below v2
jdegenstein Aug 22, 2024
7f01d73
editor.py -> abspath to absolute
jdegenstein Aug 22, 2024
5d8f651
widgets/editor.py -> abspath to absolute
jdegenstein Aug 22, 2024
9579757
debugger.py -> abspath to absolute
jdegenstein Aug 22, 2024
f21b680
Create CQ-editor-mac.sh
jdegenstein Sep 17, 2024
7015e70
pyinstaller-builds-actions-PIP-TAR.yml -> add mac-specific shell script
jdegenstein Sep 17, 2024
cf3df6e
pyinstaller-builds-actions-PIP-TAR.yml -> add linux libssl3-dev insta…
jdegenstein Sep 18, 2024
7a279ad
Update pyinstaller-builds-actions-PIP-TAR.yml
jdegenstein Sep 18, 2024
8748b35
Update pyinstaller-builds-actions-PIP-TAR.yml
jdegenstein Sep 18, 2024
5225408
Update pyinstaller-builds-actions-PIP-TAR.yml
jdegenstein Sep 18, 2024
0499f2d
Update pyinstaller-builds-actions-PIP-TAR.yml
jdegenstein Sep 18, 2024
01ce43e
pyinstaller-builds-actions-PIP-TAR.yml -> set LD_LIBRARY_PATH
jdegenstein Sep 18, 2024
0e6b47e
pyinstaller-builds-actions-PIP-TAR.yml -> re-enable macos/windows bu…
jdegenstein Sep 19, 2024
0569294
setup.py -> numpy>=2,<3 and python 3.10 through 3.12
jdegenstein Dec 1, 2024
70b823a
cq_utils.py -> comment out nonexistent `reload(cq.occ_impl.exporters.…
jdegenstein Jan 12, 2025
f9e32b1
updates to work on python 3.13
jdegenstein Jan 29, 2025
0a360c7
merge back
jdegenstein Jan 29, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
177 changes: 177 additions & 0 deletions .github/workflows/pyinstaller-builds-actions-PIP-TAR.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,177 @@
name: build-PIP-TAR
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-x86_64:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: mamba-org/setup-micromamba@v1
with:
environment-name: test
environment-file: environment.yml
init-shell: >-
bash
# create-args: >-
- name: pip install cadquery CQ-editor ... etc
shell: bash --login {0}
run: |
sudo apt install -y libblas-dev libblas3 libblas64-3 libblas64-dev
sudo apt install -y libxkbcommon0 libxkbcommon-x11-0 libxcb-xinerama0
sudo apt install -y qtbase5-dev qt5-qmake
micromamba info
pip install pyopengl
pip install git+https://github.com/jdegenstein/jmwright-CQ-Editor
pip install -vvv --pre git+https://github.com/cadquery/cadquery casadi
pip install pyinstaller>=5.6
pip install path
pip install jupyter-rfb
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
echo $LD_LIBRARY_PATH
export LD_LIBRARY_PATH=/home/runner/micromamba/envs/test/lib
echo $LD_LIBRARY_PATH
pyinstaller --log-level=DEBUG 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: actions/upload-artifact@v4
with:
name: CQ-editor-Linux-x86_64
path: dist
build-macos-x86_64:
runs-on: macos-13
steps:
- 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 --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.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/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-mac.sh /Users/runner/work/jmwright-CQ-Editor/jmwright-CQ-Editor/dist/CQ-editor.sh
- uses: actions/upload-artifact@v4
with:
name: CQ-editor-MacOS-x86_64
path: dist
build-macos-arm64:
runs-on: macos-14
steps:
- 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-mac.sh /Users/runner/work/jmwright-CQ-Editor/jmwright-CQ-Editor/dist/CQ-editor.sh
- uses: actions/upload-artifact@v4
with:
name: CQ-editor-MacOS-arm64
path: dist
build-windows:
runs-on: windows-latest
steps:
- 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 --pre git+https://github.com/cadquery/cadquery casadi
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/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 D:/a/jmwright-CQ-Editor/jmwright-CQ-Editor/pyinstaller/CQ-editor.cmd D:/a/jmwright-CQ-Editor/jmwright-CQ-Editor/dist/

- 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:
name: CQ-editor-Windows
path: release.zip
41 changes: 41 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# CadQuery editor

<<<<<<< HEAD
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.

Running into issues? Please click here to join the [***CadQuery, CQ-Editor, and build123d Discord***](https://discord.com/invite/Bj9AQPsCfx)

![image](https://user-images.githubusercontent.com/16868537/191054760-a2cac297-3488-48d4-b9f6-52747dffcce3.png)

=======
>>>>>>> d746c8e8e6d80f53dc931ddc4910d4c791d7218b
[![Build status](https://ci.appveyor.com/api/projects/status/g98rs7la393mgy91/branch/master?svg=true)](https://ci.appveyor.com/project/adam-urbanczyk/cq-editor/branch/master)
[![codecov](https://codecov.io/gh/CadQuery/CQ-editor/branch/master/graph/badge.svg)](https://codecov.io/gh/CadQuery/CQ-editor)
[![Build Status](https://dev.azure.com/cadquery/CQ-editor/_apis/build/status/CadQuery.CQ-editor?branchName=master)](https://dev.azure.com/cadquery/CQ-editor/_build/latest?definitionId=3&branchName=master)
Expand All @@ -13,7 +24,10 @@ CadQuery GUI editor based on PyQT supports Linux, Windows and Mac.

## Notable features

<<<<<<< HEAD
=======
* Automatic code reloading - you can use your favourite editor
>>>>>>> d746c8e8e6d80f53dc931ddc4910d4c791d7218b
* OCCT based
* Graphical debugger for CadQuery scripts
* Step through script and watch how your model changes
Expand All @@ -26,6 +40,27 @@ CadQuery GUI editor based on PyQT supports Linux, Windows and Mac.

## Installation - Pre-Built Packages (Recommended)

<<<<<<< HEAD
### Release Packages

Stable release builds which do not require Anaconda are attached to the [latest release](https://github.com/jdegenstein/jmwright-CQ-editor/releases). Download the zip file for your operating system, extract it, and run the CQ-editor script for your OS (CQ-editor.cmd for Windows, CQ-editor.sh for Linux and MacOS). On Windows you should be able to simply double-click on CQ-editor.cmd. On Linux and MacOS you may need to make the script executable with `chmod +x CQ-editor.sh` and run the script from the command line. On later MacOS versions you may also need `xattr -r -d com.apple.quarantine path/to/CQ-editor-MacOS`. The script contains an environment variable export that may be required to get CQ-editor to launch correctly on MacOS Big Sur, so it is better to use the script than to launch CQ-editor directly.

### Development Packages

Development builds are also available, but can be unstable and should be used at your own risk. Click on the newest build with a green checkmark [here](https://github.com/jdegenstein/jmwright-CQ-editor/actions), wait for the _Artifacts_ section at the bottom of the page to load, and then click on the appropriate download for your operating system. Extract the archive file and run the shell (Linux/MacOS) or cmd (Windows) script in the root CQ-editor directory. The CQ-editor window should launch.

## Installation (pip)

Additional packages for Linux (known as needed on Ubuntu 22.04):
```
sudo apt install qtbase5-dev qt5-qmake
```
All platforms (Windows/Mac/Linux):
```
pip install git+https://github.com/jdegenstein/jmwright-CQ-Editor
pip install --pre "cadquery>=2.2"
pip install git+https://github.com/gumyr/build123d
=======
~~### Release Packages~~

~~Stable release builds which do not require Anaconda are attached to the [latest release](https://github.com/CadQuery/CQ-editor/releases). Download installer for your operating system, extract it, and run the CQ-editor script for your OS (CQ-editor.cmd for Windows, CQ-editor.sh for Linux and MacOS). On Windows you should be able to simply double-click on CQ-editor.cmd. On Linux and MacOS you may need to make the script executable with `chmod +x CQ-editor.sh` and run the script from the command line. The script contains an environment variable export that may be required to get CQ-editor to launch correctly on MacOS Big Sur, so it is better to use the script than to launch CQ-editor directly.~~
Expand Down Expand Up @@ -66,6 +101,7 @@ sudo apt install libglu1-mesa libgl1-mesa-dri mesa-common-dev libglu1-mesa-dev
On Fedora 29 the packages can be installed as follows:
```
dnf install -y mesa-libGLU mesa-libGL mesa-libGLU-devel
>>>>>>> d746c8e8e6d80f53dc931ddc4910d4c791d7218b
```

## Usage
Expand All @@ -76,6 +112,11 @@ By default, CQ-editor will display a 3D representation of all `Workplane` object

```python
show_object(result, name="somename", options={"alpha":0.5, "color": (64, 164, 223)})
<<<<<<< HEAD
# or using rand_color:
show_object(result, name="somename", options=rand_color(alpha=.5))
=======
>>>>>>> d746c8e8e6d80f53dc931ddc4910d4c791d7218b
```

Note that `show_object` works for `Shape` and `TopoDS_Shape` objects too. In order to display objects from the embedded Python console use `show`.
Expand Down
12 changes: 12 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ shallow_clone: false

image:
- Ubuntu2004
<<<<<<< HEAD
- Ubuntu1804
=======
>>>>>>> d746c8e8e6d80f53dc931ddc4910d4c791d7218b
- Visual Studio 2015

environment:
Expand All @@ -13,11 +17,19 @@ environment:

install:
- sh: if [[ $APPVEYOR_BUILD_WORKER_IMAGE != "macOS"* ]]; then sudo apt update; sudo apt -y --force-yes install libglu1-mesa xvfb libgl1-mesa-dri mesa-common-dev libglu1-mesa-dev; fi
<<<<<<< HEAD
- sh: if [[ $APPVEYOR_BUILD_WORKER_IMAGE != "macOS"* ]]; then curl -fsSL -o miniconda.sh https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge-Linux-x86_64.sh; fi
- sh: if [[ $APPVEYOR_BUILD_WORKER_IMAGE == "macOS"* ]]; then curl -fsSL -o miniconda.sh https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge-MacOSX-x86_64.sh; fi
- sh: bash miniconda.sh -b -p $HOME/miniconda
- sh: source $HOME/miniconda/bin/activate
- cmd: curl -fsSL -o miniconda.exe https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge-Windows-x86_64.exe
=======
- sh: if [[ $APPVEYOR_BUILD_WORKER_IMAGE != "macOS"* ]]; then curl -fsSL -o miniconda.sh https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Linux-x86_64.sh; fi
- sh: if [[ $APPVEYOR_BUILD_WORKER_IMAGE == "macOS"* ]]; then curl -fsSL -o miniconda.sh https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Darwin-x86_64.sh; fi
- sh: bash miniconda.sh -b -p $HOME/miniconda
- sh: source $HOME/miniconda/bin/activate
- cmd: curl -fsSL -o miniconda.exe https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Windows-x86_64.exe
>>>>>>> d746c8e8e6d80f53dc931ddc4910d4c791d7218b
- cmd: miniconda.exe /S /InstallationType=JustMe /D=%MINICONDA_DIRNAME%
- cmd: set "PATH=%MINICONDA_DIRNAME%;%MINICONDA_DIRNAME%\\Scripts;%PATH%"
- cmd: activate
Expand Down
39 changes: 39 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@ trigger:
include:
- master
- refs/tags/*
<<<<<<< HEAD
=======
exclude:
- refs/tags/nightly
>>>>>>> d746c8e8e6d80f53dc931ddc4910d4c791d7218b

pr:
- master
Expand All @@ -13,13 +16,48 @@ resources:
repositories:
- repository: templates
type: github
<<<<<<< HEAD
name: jmwright/conda-packages
=======
name: CadQuery/conda-packages
>>>>>>> d746c8e8e6d80f53dc931ddc4910d4c791d7218b
endpoint: CadQuery

parameters:
- name: minor
type: object
default:
<<<<<<< HEAD
- 8
- 9
- 10

jobs:
- ${{ each minor in parameters.minor }}:
- template: conda-build.yml@templates
parameters:
name: Linux
vmImage: 'ubuntu-18.04'
py_maj: 3
py_min: ${{minor}}
conda_bld: 3.21.6

- template: conda-build.yml@templates
parameters:
name: macOS
vmImage: 'macOS-10.15'
py_maj: 3
py_min: ${{minor}}
conda_bld: 3.21.6

- template: conda-build.yml@templates
parameters:
name: Windows
vmImage: 'windows-latest'
py_maj: 3
py_min: ${{minor}}
conda_bld: 3.21.6
=======
- 11

stages:
Expand Down Expand Up @@ -86,3 +124,4 @@ stages:
artifact: installer_ubuntu-latest
- bash: cp $(Pipeline.Workspace)/installer*/*.* .
- bash: sh ./CQ-editor-master-Linux-x86_64.sh -b -p dummy && cd dummy && ./run.sh
>>>>>>> d746c8e8e6d80f53dc931ddc4910d4c791d7218b
16 changes: 16 additions & 0 deletions conda/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,31 @@ source:
path: ..

build:
<<<<<<< HEAD
string: {{ 'py'+environ.get('PYTHON_VERSION')}}
=======
string: {{ GIT_DESCRIBE_TAG }}_{{ GIT_BUILD_STR }}
noarch: python
>>>>>>> d746c8e8e6d80f53dc931ddc4910d4c791d7218b
script: python setup.py install --single-version-externally-managed --record=record.txt
entry_points:
- cq-editor = cq_editor.__main__:main
- CQ-editor = cq_editor.__main__:main
requirements:
build:
<<<<<<< HEAD
- python {{ environ.get('PYTHON_VERSION') }}
- setuptools

run:
- python {{ environ.get('PYTHON_VERSION') }}
=======
- python >=3.8
- setuptools

run:
- python >=3.8
>>>>>>> d746c8e8e6d80f53dc931ddc4910d4c791d7218b
- cadquery=master
- ocp
- logbook
Expand All @@ -28,7 +40,11 @@ requirements:
- path
- logbook
- requests
<<<<<<< HEAD

=======
- qtconsole=5.4.1
>>>>>>> d746c8e8e6d80f53dc931ddc4910d4c791d7218b
test:
imports:
- cq_editor
Expand Down
Loading