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

Build CairoSVG 1.0.22, needed for python<3 #24

Closed
Closed
Show file tree
Hide file tree
Changes from all 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
6 changes: 6 additions & 0 deletions .ci_support/linux_.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,9 @@ channel_targets:
- conda-forge main
docker_image:
- condaforge/linux-anvil-comp7
pin_run_as_build:
python:
min_pin: x.x
max_pin: x.x
python:
- '2.7'
31 changes: 21 additions & 10 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,45 +1,56 @@
{% set name = "CairoSVG" %}
{% set version = "2.4.2" %}
{% set version = "1.0.22" %}

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

source:
url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.tar.gz
sha256: 4e668f96653326780036ebb0a9ff2bb59a8443d7bcfc51a14aab77b57a8e67ad
sha256: f66e0f3a2711d2e36952bb370fcd45837bfedce2f7882935c46c45c018a21557

build:
number: 0
noarch: python
entry_points:
- cairosvg = cairosvg.__main__:main
- cairosvg = cairosvg.__init__:main
script: "{{ PYTHON }} -m pip install . -vv"

requirements:
host:
- python >=3.5
- python
- pip
- pytest-runner
run:
- python >=3.5
- python <3 # Without this the tests are run in a py35
# environment and one test fails
# TODO: Find which dependency is the real culprit
- pycairo
- cairocffi
- cssselect2
- pillow
- tinycss2
- defusedxml
- lxml
- cssselect
- tinycss

test:
requires:
- git
imports:
- cairosvg
commands:
- cairosvg --help
- git clone --single-branch --branch {{ version }} https://github.com/Kozea/CairoSVG.git
- cd CairoSVG/test # Needed for SVGs that use relative paths
- find ./svg -maxdepth 1 -type f -name '*.svg' -exec echo {} \; -exec cairosvg -u {} -o {}.png \;
- find ./svg -maxdepth 1 -type f -name '*.svg' -exec test ! -s {}.png \; -exec touch a_test_failed \;
- find ./svg -maxdepth 1 -type f -name '*.svgz' -exec echo {} \; -exec cairosvg -u {} -o {}.png \;
- find ./svg -maxdepth 1 -type f -name '*.svgz' -exec test ! -s {}.png \; -exec touch a_test_failed \;
- test ! -e a_test_failed

about:
home: http://www.cairosvg.org/
license: LGPL-3.0
license_family: LGPL
license_file: LICENSE
license_file: COPYING
summary: 'A Simple SVG Converter based on Cairo'
doc_url: http://www.cairosvg.org/documentation
dev_url: https://github.com/Kozea/CairoSVG
Expand Down