mirror of
https://github.com/jdegenstein/jmwright-CQ-Editor.git
synced 2025-12-19 22:24:19 +01:00
Compare commits
13 Commits
0.30-dev-7
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c632ec2ff4 | ||
|
|
d67472fb3c | ||
|
|
10cd914498 | ||
|
|
6d0ae2564c | ||
|
|
3bbe2ea762 | ||
|
|
5a5f96d3e9 | ||
|
|
7161462aa5 | ||
|
|
41ee6be4e5 | ||
|
|
9e027d908e | ||
|
|
58cefa05b0 | ||
|
|
c592c9cccf | ||
|
|
f9e32b156a | ||
|
|
70b823ae5d |
@@ -29,7 +29,7 @@ jobs:
|
||||
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 -vvv --pre git+https://github.com/cadquery/cadquery casadi typish "multimethod>=1.11,<2.0" "nlopt>=2.9.0,<3.0" typish
|
||||
pip install pyinstaller>=5.6
|
||||
pip install path
|
||||
pip install jupyter-rfb
|
||||
@@ -55,7 +55,7 @@ jobs:
|
||||
name: CQ-editor-Linux-x86_64
|
||||
path: dist
|
||||
build-macos-x86_64:
|
||||
runs-on: macos-13
|
||||
runs-on: macos-15-intel
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: mamba-org/setup-micromamba@v1
|
||||
@@ -69,7 +69,7 @@ jobs:
|
||||
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 -vvv --pre git+https://github.com/cadquery/cadquery casadi typish "multimethod>=1.11,<2.0" "nlopt>=2.9.0,<3.0" typish
|
||||
pip install pyinstaller>=5.6
|
||||
pip install path
|
||||
pip uninstall -y PyQt5
|
||||
@@ -107,10 +107,11 @@ jobs:
|
||||
shell: bash --login {0}
|
||||
run: |
|
||||
micromamba info
|
||||
brew update
|
||||
brew upgrade
|
||||
brew install openssl
|
||||
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 -vvv --pre git+https://github.com/cadquery/cadquery casadi typish "multimethod>=1.11,<2.0" "nlopt>=2.9.0,<3.0" typish
|
||||
pip install pyinstaller>=5.6
|
||||
pip install path
|
||||
pip uninstall -y PyQt5
|
||||
@@ -128,6 +129,9 @@ jobs:
|
||||
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 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
|
||||
@@ -149,7 +153,7 @@ jobs:
|
||||
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 -vvv --pre git+https://github.com/cadquery/cadquery casadi typish "multimethod>=1.11,<2.0" "nlopt>=2.9.0,<3.0" typish
|
||||
pip install pyinstaller>=5.6
|
||||
pip install path
|
||||
pip install git+https://github.com/gumyr/cq_warehouse.git#egg=cq_warehouse
|
||||
|
||||
@@ -2,7 +2,7 @@ import cadquery as cq
|
||||
from cadquery.occ_impl.assembly import toCAF
|
||||
|
||||
from typing import List, Union
|
||||
from imp import reload
|
||||
from importlib import reload
|
||||
from types import SimpleNamespace
|
||||
|
||||
from OCP.XCAFPrs import XCAFPrs_AISObject
|
||||
@@ -31,7 +31,7 @@ def find_cq_objects(results: dict):
|
||||
|
||||
|
||||
def to_compound(
|
||||
obj: Union[cq.Workplane, List[cq.Workplane], cq.Shape, List[cq.Shape], cq.Sketch]
|
||||
obj: Union[cq.Workplane, List[cq.Workplane], cq.Shape, List[cq.Shape], cq.Sketch],
|
||||
):
|
||||
|
||||
vals = []
|
||||
@@ -213,7 +213,7 @@ def reload_cq():
|
||||
reload(cq.sketch)
|
||||
reload(cq.occ_impl.exporters.svg)
|
||||
reload(cq.cq)
|
||||
reload(cq.occ_impl.exporters.utils)
|
||||
# reload(cq.occ_impl.exporters.utils)
|
||||
reload(cq.occ_impl.exporters.dxf)
|
||||
reload(cq.occ_impl.exporters.amf)
|
||||
reload(cq.occ_impl.exporters.json)
|
||||
|
||||
@@ -5,7 +5,7 @@ channels:
|
||||
dependencies:
|
||||
- pyqt=5
|
||||
- pyqtgraph
|
||||
- python=3.11
|
||||
- python=3.12
|
||||
- spyder=5
|
||||
- path
|
||||
- logbook
|
||||
|
||||
@@ -3,4 +3,4 @@ channels:
|
||||
- conda-forge
|
||||
- defaults
|
||||
dependencies:
|
||||
- python=3.11
|
||||
- python=3.12
|
||||
|
||||
@@ -10,17 +10,18 @@ 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'
|
||||
b123d_path = Path(site.getsitepackages()[-1]) / 'build123d'
|
||||
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-311-x86_64-linux-gnu.so'), '.')]
|
||||
ocp_path = [(os.path.join(HOMEPATH, 'OCP', 'OCP.cpython-312-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-311-darwin.so'), '.')]
|
||||
ocp_path = [(os.path.join(HOMEPATH, 'OCP', 'OCP.cpython-312-darwin.so'), '.')]
|
||||
elif sys.platform == 'win32':
|
||||
occt_dir = os.path.join(Path(sys.prefix), 'Library', 'share', 'opencascade')
|
||||
ocp_path = [(os.path.join(HOMEPATH, 'OCP.cp311-win_amd64.pyd'), '.')]
|
||||
ocp_path = [(os.path.join(HOMEPATH, 'OCP', 'OCP.cp312-win_amd64.pyd'), '.')]
|
||||
|
||||
datas1, binaries1, hiddenimports1 = collect_all('debugpy')
|
||||
hiddenimports2 = collect_submodules('xmlrpc')
|
||||
@@ -31,6 +32,7 @@ a = Analysis(['run.py'],
|
||||
datas=[(spyder_data, 'spyder'),
|
||||
(cqw_path, 'cq_warehouse'),
|
||||
(bdw_path, 'bd_warehouse'),
|
||||
(b123d_path, 'build123d'),
|
||||
(cq_path, 'cadquery')] +
|
||||
[(p, 'parso/python') for p in parso_grammar] + datas1,
|
||||
hiddenimports=['ipykernel.datapub', 'debugpy', 'vtkmodules', 'vtkmodules.all',
|
||||
|
||||
10
setup.py
10
setup.py
@@ -3,19 +3,22 @@ import os.path
|
||||
|
||||
from setuptools import setup, find_packages
|
||||
|
||||
|
||||
def read(rel_path):
|
||||
here = os.path.abspath(os.path.dirname(__file__))
|
||||
with codecs.open(os.path.join(here, rel_path), 'r') as fp:
|
||||
with codecs.open(os.path.join(here, rel_path), "r") as fp:
|
||||
return fp.read()
|
||||
|
||||
|
||||
def get_version(rel_path):
|
||||
for line in read(rel_path).splitlines():
|
||||
if line.startswith('__version__'):
|
||||
if line.startswith("__version__"):
|
||||
delim = '"' if '"' in line else "'"
|
||||
return line.split(delim)[1]
|
||||
else:
|
||||
raise RuntimeError("Unable to find version string.")
|
||||
|
||||
|
||||
setup(
|
||||
name="CQ-editor",
|
||||
version=get_version("cq_editor/_version.py"),
|
||||
@@ -26,7 +29,7 @@ setup(
|
||||
"CQ-editor = cq_editor.__main__:main",
|
||||
]
|
||||
},
|
||||
python_requires=">=3.10,<3.13",
|
||||
python_requires=">=3.10,<3.14",
|
||||
install_requires=[
|
||||
"logbook>=1",
|
||||
"ipython",
|
||||
@@ -36,5 +39,6 @@ setup(
|
||||
"spyder>=5,<6",
|
||||
"pyqtgraph",
|
||||
"numpy >= 2, <3",
|
||||
"scipy==1.14.1", # workaround for renamed stuff in scipy optimize
|
||||
],
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user