Skip to content

Commit ac7bb60

Browse files
authored
Merge pull request #27391 from ndevenish/ocpsvg
Add ocpsvg
2 parents 43e9c0c + c0f32ac commit ac7bb60

File tree

1 file changed

+63
-0
lines changed

1 file changed

+63
-0
lines changed

recipes/ocpsvg/meta.yaml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
{% set name = "ocpsvg" %}
2+
{% set version = "0.2.1" %}
3+
4+
package:
5+
name: {{ name|lower }}
6+
version: {{ version }}
7+
8+
source:
9+
url: https://pypi.org/packages/source/{{ name[0] }}/{{ name }}/ocpsvg-{{ version }}.tar.gz
10+
sha256: 8a089249b52b0bff99cca9698af3d74ef678ced2359316f8c2a04aee9baafb46
11+
12+
build:
13+
noarch: python
14+
script: {{ PYTHON }} -m pip install . -vv --no-deps --no-build-isolation
15+
number: 0
16+
17+
requirements:
18+
host:
19+
- python >=3.9
20+
- setuptools >=45
21+
- wheel
22+
- setuptools-scm >=6.2
23+
- pip
24+
run:
25+
- python >=3.9
26+
- cadquery
27+
- ocp >=7.7.0
28+
- svgpathtools >=1.5.1,<2
29+
- svgelements >=1.9.1,<2
30+
31+
test:
32+
source_files:
33+
- tests
34+
imports:
35+
- ocpsvg
36+
commands:
37+
- pytest -v tests/
38+
requires:
39+
- pytest
40+
# The libgl dependency for the test section can likely be removed when
41+
# the following https://github.com/conda-forge/ocp-feedstock/pull/50
42+
# gets merged in the ocp feedstock
43+
# this helps avoid a yum dependency
44+
# either with the yum dependency or with this, the end user is assumed
45+
# to have X11 system dependencies installed
46+
# this helps the user avoid to have a direct dependency on libgl
47+
# from this package (it will be transitive from OCP once the PR gets merged)
48+
- libgl # [linux]
49+
50+
about:
51+
license: Apache-2.0
52+
license_file: LICENSE
53+
home: https://github.com/snoyer/ocpsvg
54+
summary: |
55+
Add SVG functionality (import and export) to higher level cadquery API
56+
- works at the OCP level
57+
- uses svgpathtools to convert SVG path strings to and from TopoDS_Edge, TopoDS_Wire, and TopoDS_Face objects
58+
- uses svgelements to import TopoDS_Wire and TopoDS_Face objects from an SVG document
59+
60+
61+
extra:
62+
recipe-maintainers:
63+
- ndevenish

0 commit comments

Comments
 (0)