Skip to content

Commit

Permalink
MNT: Use noarch python {{ python_min }} variable
Browse files Browse the repository at this point in the history
* Use 'python {{ python_min }}' syntax for the python requirements for noarch
  python recipes.
   - c.f. https://conda-forge.org/docs/maintainer/knowledge_base/#noarch-python
* Use a Jinja2 set statement for the python_min to allow all the build
  metadata to be contained in the recipe/meta.yaml and override the global
  python_min with mplhep's python_min of 3.8.
* Use 'pypi.org'.
* Bump build number.
  • Loading branch information
matthewfeickert committed Nov 13, 2024
1 parent 170a79d commit db86b12
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,42 +1,49 @@
{% set name = "mplhep" %}
{% set version = "0.3.55" %}
{% set min_python = "3.8" %}

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

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

build:
number: 0
number: 1
noarch: python
script: {{ PYTHON }} -m pip install . -vv --no-deps --no-build-isolation

requirements:
host:
- pip
- python >=3.8
- python {{ python_min }}
- hatchling
- hatch-vcs
run:
- matplotlib-base >=3.4
- numpy >=1.16.0
- packaging
- python >=3.7
- mplhep_data
- python >={{ python_min }}
- mplhep_data >=0.0.4
- uhi >=0.2.0

test:
requires:
- python {{ python_min }}
- pip
imports:
- mplhep
commands:
- pip check

about:
home: https://github.com/scikit-hep/mplhep
license: MIT
license_file: LICENSE
summary: Matplotlib styles for HEP
doc_url: https://mplhep.readthedocs.io/
dev_url: https://github.com/scikit-hep/mplhep

extra:
Expand Down

0 comments on commit db86b12

Please sign in to comment.