add windows sources
{% set name = "mgrs" %}
-{% set version = "1.3.4" %}
+{% set version = "1.3.4" %} # [not win]
+{% set version = "1.3.5" %} # [win]
+
+{% set pyver = "cp{}{}".format(PY_VER[0], PY_VER[2]) %} # [win]
+
+{% set platform = "win_amd64" %} # [win]
+{% set fn = "{}-{}-{}-{}m-{}.whl".format(name, version, pyver, pyver, platform) %} # [win]
package:
name: {{ name|lower }}
version: {{ version }}
source:
- url: https://github.com/hobu/{{ name }}/archive/{{ version }}.tar.gz
- sha256: a44f32b085220cf81c93fed180dc40b701ae98c2f3f30d3370f764dadd9f829a
+ fn: {{ fn }}
+ url: https://github.com/hobu/{{ name }}/archive/{{ version }}.tar.gz # [not win]
+ sha256: a44f32b085220cf81c93fed180dc40b701ae98c2f3f30d3370f764dadd9f829a # [not win]
+ url: https://pypi.io/packages/{{ pyver }}/m/{{ name }}/{{ fn }} # [win]
+ sha256: 113020ae5e6fb974856888f8798ff0da8710bb17b3ff177bfb12ca20c81bce88 # [win and py35]
+ sha256: 5565c150ccba0c01dc36ca7ed419b8cbbe974d5167a11f04d31241082f6d596f # [win and py36]
+ sha256: b97039da9efa7c2e71e59a6063d083627b089496571e3f335580e83da6324c38 # [win and py37]
build:
number: 0
@@ -19,13 +30,11 @@ requirements:
- {{ compiler('cxx') }}
host:
- pip
- - python >=3
+ - python
- setuptools
- wheel
run:
- - python >=3
- - setuptools
- - wheel
+ - python
test:
imports:
