Incorporate suggestions
* building only on other conda R packages, making the build section
obsolete
* running real tests as part of the build
{% set name = "epysurv" %}
-{% set version = "0.0.1" %}
+{% set version = "0.0.2" %}
package:
name: {{ name|lower }}
version: {{ version }}
source:
- # If getting the source from GitHub remove the line above
- # uncomment the line below and modify as needed
url: https://github.com/jarnorfb/{{ name }}/archive/{{ version }}.tar.gz
sha256: 56383ce024e2ad76c1ac300065efe555cc57fcbc8d7ab00052b310195470e80c
build:
- # noarch: python
number: 0
merge_build_host: True # [win]
- skip: true # [win]
script: "{{ PYTHON }} -m pip install . --ignore-installed --no-deps -vv"
- # This is required to make R link correctly on Linux.
rpaths:
- lib/R/lib/
- lib/
requirements:
- build:
- # if your project compiles code (such as a C extension) then add the required compilers as separate entries here.
- # compilers are named 'c', 'cxx' and 'fortran'.
- - {{ compiler('cxx') }}
host:
- - python=3.7
+ - python >=3.7
- pip
- - r-base=3.5
- - rpy2
- - numpy=1.16
- - r-essentials
run:
- - python=3.7
- - libgfortran=3
- - r-essentials
+ - python >=3.7
- rpy2
- - numpy
+ - r-base >=3.2
+ - r-gamlss
+ - r-gridbase
+ - r-mglm
+ - r-msm
+ - r-surveillance
+ - {{ pin_compatible('numpy', min_pin='x.x.x', max_pin='x', lower_bound='1.14', upper_bound='2') }}
- matplotlib
- pandas
- scipy
@@ -54,14 +45,20 @@ test:
- epysurv.visualization
- epysurv.simulation
- epysurv.metrics
+ requires:
+ - pytest
+ - pytest-datadir
+ source_files:
+ - tests/
+ commands:
+ - pytest
about:
- home: http://github.com/simplejson/simplejson
-
+ home: https://github.com/JarnoRFB/epysurv
license: MIT
license_family: MIT
license_file: LICENSE
- summary: 'Simple, fast, extensible JSON encoder/decoder for Python'
+ summary: 'Epidemiological surveillance in Python'
description: |
epysurv provides access to epidemiological surveillance in Python by
