Skip to content

Commit

Permalink
Merge pull request #27391 from ndevenish/ocpsvg
Browse files Browse the repository at this point in the history
Add ocpsvg
  • Loading branch information
hmaarrfk authored Aug 28, 2024
2 parents 43e9c0c + c0f32ac commit ac7bb60
Showing 1 changed file with 63 additions and 0 deletions.
63 changes: 63 additions & 0 deletions recipes/ocpsvg/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
{% 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
# The libgl dependency for the test section can likely be removed when
# the following https://github.com/conda-forge/ocp-feedstock/pull/50
# gets merged in the ocp feedstock
# this helps avoid a yum dependency
# either with the yum dependency or with this, the end user is assumed
# to have X11 system dependencies installed
# this helps the user avoid to have a direct dependency on libgl
# from this package (it will be transitive from OCP once the PR gets merged)
- libgl # [linux]

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

0 comments on commit ac7bb60

Please sign in to comment.