Attempt cython for non-win, using github archive and running tests
{% set name = "upolygon" %}
{% set version = "0.1.6" %}
-
package:
name: {{ name|lower }}
version: {{ version }}
source:
- url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/upolygon-{{ version }}.tar.gz
- sha256: de148c107daf068b169c95491b4bd1b80137e53cb0eb965a539ba85097c39e97
+ url: https://github.com/v7labs/upolygon/archive/v{{ version }}.tar.gz
+ sha256: dbd670e99ed81eae0bd67ebb51705be297c9c2ced4425829a8e22afcb0a60a3a
build:
number: 0
skip: true # [py2k]
- script: {{ PYTHON }} -m pip install . -vv
+ script: {{ PYTHON }} -m pip install . -vv # [win]
+ script: USE_CYTHON=true {{ PYTHON }} -m pip install . -vv # [not win]
requirements:
build:
- {{ compiler('c') }}
host:
+ - cython # [not win]
- pip
- python
- setuptools
@@ -31,8 +32,11 @@ test:
- upolygon
commands:
- pip check
+ - pytest
requires:
- pip
+ - pytest
+ - numpy
about:
home: https://github.com/v7labs/upolygon
