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

Add ocpsvg #27391

Merged
merged 9 commits into from
Aug 28, 2024
Merged
Changes from 8 commits
Commits
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
54 changes: 54 additions & 0 deletions recipes/ocpsvg/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{% set name = "ocpsvg" %}
{% set version = "0.2.1" %}

package:
name: {{ name|lower }}
version: {{ version }}

source:
url: https://pypi.org/packages/source/{{ name[0] }}/{{ name }}/ocpsvg-{{ version }}.tar.gz
sha256: 8a089249b52b0bff99cca9698af3d74ef678ced2359316f8c2a04aee9baafb46

build:
noarch: python
script: {{ PYTHON }} -m pip install . -vv --no-deps --no-build-isolation
number: 0

requirements:
host:
- python >=3.9
- setuptools >=45
- wheel
- setuptools-scm >=6.2
- pip
run:
- python >=3.9
- cadquery
- ocp >=7.7.0
- svgpathtools >=1.5.1,<2
- svgelements >=1.9.1,<2

test:
source_files:
- tests
imports:
- ocpsvg
commands:
- pytest -v tests/
requires:
- pytest
ndevenish marked this conversation as resolved.
Show resolved Hide resolved

about:
license: Apache-2.0
license_file: LICENSE
home: https://github.com/snoyer/ocpsvg
summary: |
Add SVG functionality (import and export) to higher level cadquery API
- works at the OCP level
- uses svgpathtools to convert SVG path strings to and from TopoDS_Edge, TopoDS_Wire, and TopoDS_Face objects
- uses svgelements to import TopoDS_Wire and TopoDS_Face objects from an SVG document


extra:
recipe-maintainers:
- ndevenish
Loading