From 52dc1963a7b22247e34df36a3a004eaa30b130f8 Mon Sep 17 00:00:00 2001 From: Matthew Feickert Date: Tue, 7 May 2024 19:37:01 -0500 Subject: [PATCH] feat: Add hepdata-validator * c.f. https://github.com/HEPData/hepdata-validator * Recipe generated with grayskull via 'grayskull pypi hepdata-validator' and then edited to add additional information. --- recipes/hepdata-validator/meta.yaml | 50 +++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 recipes/hepdata-validator/meta.yaml diff --git a/recipes/hepdata-validator/meta.yaml b/recipes/hepdata-validator/meta.yaml new file mode 100644 index 0000000000000..2df3784357c8d --- /dev/null +++ b/recipes/hepdata-validator/meta.yaml @@ -0,0 +1,50 @@ +{% set name = "hepdata-validator" %} +{% set version = "0.3.5" %} + +package: + name: {{ name|lower }} + version: {{ version }} + +source: + url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/hepdata_validator-{{ version }}.tar.gz + sha256: d93a23e4eeb41df03011494482b619ac59088f13054bd389718111d135f2ab10 + +build: + entry_points: + - hepdata-validate=hepdata_validator.cli:validate + noarch: python + script: {{ PYTHON }} -m pip install . -vv --no-deps --no-build-isolation + number: 0 + +requirements: + host: + - python >=3.6 + - pytest + - pip + run: + - python >=3.6 + - click + - jsonschema + - packaging + - pyyaml >=5.4.1 + - requests + +test: + imports: + - hepdata_validator + commands: + - pip check + - hepdata-validate --help + requires: + - pip + +about: + home: https://github.com/hepdata/hepdata-validator + summary: JSON schema and validation code for HEPData submissions + license: GPL-2.0-only + license_file: LICENSE.txt + +extra: + recipe-maintainers: + - GraemeWatt + - matthewfeickert