-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #27391 from ndevenish/ocpsvg
Add ocpsvg
- Loading branch information
Showing
1 changed file
with
63 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |