15 Commits

Author SHA1 Message Date
jdegenstein
14d0477d1d README.md -> add bd_warehouse 2024-01-02 10:56:34 -06:00
jdegenstein
5b0504f22b pyinstaller_pip.spec -> add bd_warehouse 2024-01-02 10:55:24 -06:00
jdegenstein
3ed0deff41 pyinstaller-builds-actions-PIP-TAR.yml -> install bd_warehouse 2024-01-02 10:49:14 -06:00
jdegenstein
e00e40c7b0 Update pyinstaller-builds-actions-PIP-TAR.yml
back to python 3.10
2023-10-30 13:44:07 -05:00
jdegenstein
035b95c508 Update pyinstaller-builds-actions-PIP-TAR.yml
bump to Ubuntu-22.04 and python 3.11
2023-10-30 13:42:10 -05:00
jdegenstein
656426f645 Delete pyinstaller/extrahooks/hook-rtree.py
fixed on pyinstaller hooks contrib, this file did not produce working linux builds anyway
2023-10-26 13:40:46 -05:00
jdegenstein
ab6526c1fe Create hook-rtree.py 2023-10-20 15:19:04 -05:00
jdegenstein
d8c4e5bfac Create hook-py_lib3mf.py 2023-10-20 14:01:40 -05:00
jdegenstein
f52fc4dd42 remove getfullnameof in pyinstaller_pip.spec
changes in pyinstaller>=6.0.0 removed getfullnameof
2023-09-25 10:53:38 -05:00
jdegenstein
25d4c2c45c Swap front/back view directions to match with OCP CAD Viewer
also makes it match with many other CAD software
2023-07-05 16:41:13 -05:00
jdegenstein
e59c6ae7ba Add Release Info to README.md 2023-06-16 12:29:05 -05:00
jdegenstein
0c7237fecb GH Actions: Downgrade tartifact to @v1 for MacOS
due to shopt globstar invalid on MacOS
2023-06-15 11:13:42 -05:00
jdegenstein
a83d03c7ef GH Actions init-shell powershell for windows 2023-06-15 10:00:09 -05:00
jdegenstein
1b75bf8fc0 GH Actions to checkout@v3 and tartifact@v2
alehechka/upload-tartifact@v2
actions/checkout@v3

for Node16 compat
2023-06-15 09:49:20 -05:00
jdegenstein
21d729d758 Update actions to use setup-micromamba instead of prov mm
Update actions to use setup-micromamba instead of provision-with-micromamba
2023-06-15 09:37:19 -05:00
5 changed files with 36 additions and 24 deletions

View File

@@ -10,16 +10,16 @@ on:
default: 'dir'
jobs:
build-linux:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- uses: mamba-org/provision-with-micromamba@main
- uses: actions/checkout@v3
- uses: mamba-org/setup-micromamba@v1
with:
#miniconda-version: "latest"
#auto-update-conda: true
environment-name: test
environment-file: environment.yml
extra-specs:
create-args: >-
python=3.10
- name: pip install cadquery CQ-editor ... etc
shell: bash --login {0}
@@ -37,6 +37,7 @@ jobs:
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
@@ -48,21 +49,21 @@ jobs:
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
- uses: alehechka/upload-tartifact@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
- uses: actions/checkout@v3
- uses: mamba-org/setup-micromamba@v1
with:
#miniconda-version: "latest"
#auto-update-conda: true
environment-name: test
environment-file: environment.yml
extra-specs:
create-args: >-
python=3.10
- name: pip install cadquery CQ-editor ... etc
shell: bash --login {0}
@@ -76,6 +77,7 @@ jobs:
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
@@ -94,14 +96,16 @@ jobs:
build-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: mamba-org/provision-with-micromamba@main
- uses: actions/checkout@v3
- uses: mamba-org/setup-micromamba@v1
with:
#miniconda-version: "latest"
#auto-update-conda: true
environment-name: test
environment-file: environment.yml
extra-specs:
init-shell: >-
powershell
create-args: >-
python=3.10
- name: pip install cadquery CQ-editor ... etc
shell: powershell
@@ -112,6 +116,7 @@ jobs:
pip install pyinstaller>=5.6 git+https://github.com/jdegenstein/pyinstaller-hooks-contrib
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
@@ -123,7 +128,7 @@ jobs:
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
- uses: alehechka/upload-tartifact@v2
with:
name: CQ-editor-Windows
path: dist

View File

@@ -1,6 +1,6 @@
# 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.
@@ -35,7 +35,7 @@ CadQuery GUI editor based on PyQT supports Linux, Windows and Mac.
### Release Packages
TBD
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

View File

@@ -252,13 +252,13 @@ class OCCViewer(QWidget,ComponentMixin):
def front_view(self):
v = self._get_view()
v.SetProj(0,1,0)
v.SetProj(0,-1,0)
v.SetTwist(0)
def back_view(self):
v = self._get_view()
v.SetProj(0,-1,0)
v.SetProj(0,1,0)
v.SetTwist(0)
def left_view(self):

View File

@@ -0,0 +1,4 @@
# hook-py_lib3mf.py
from PyInstaller.utils.hooks import collect_dynamic_libs
binaries = collect_dynamic_libs('py_lib3mf')

View File

@@ -9,6 +9,7 @@ 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'
bdw_path = Path(site.getsitepackages()[-1]) / 'bd_warehouse'
cq_path = Path(site.getsitepackages()[-1]) / 'cadquery'
if sys.platform == 'linux':
@@ -29,6 +30,7 @@ a = Analysis(['run.py'],
binaries=ocp_path + binaries1,
datas=[(spyder_data, 'spyder'),
(cqw_path, 'cq_warehouse'),
(bdw_path, 'bd_warehouse'),
(cq_path, 'cadquery')] +
[(p, 'parso/python') for p in parso_grammar] + datas1,
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',
'cq_warehouse.drafting', 'cq_warehouse.extensions', 'cq_warehouse.fastener',
'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/'],
runtime_hooks=['pyinstaller/pyi_rth_occ.py',
'pyinstaller/pyi_rth_fontconfig.py'],
@@ -50,13 +53,13 @@ a = Analysis(['run.py'],
# 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'),
]
# 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,