Skip to content

Commit

Permalink
MNT: Use noarch python {{ python_min }} variable (#68)
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 python_min to keep all the build metadata
  contained in the recipe/meta.yaml and override the global python_min
  with scikit-hep-testdata's python_min of 3.9.
* Remove --no-deps --no-build-isolation 'pip install' options in recipes as
  the build tool (e.g. conda-build, rattler-build) will enforce all required
  'pip install' options itself at build time.
* Bump build number.
* MNT: Re-rendered with conda-build 24.9.0, conda-smithy 3.44.6, and conda-forge-pinning 2024.11.19.17.47.15

---------

Co-authored-by: conda-forge-webservices[bot] <91080706+conda-forge-webservices[bot]@users.noreply.github.com>
  • Loading branch information
matthewfeickert and conda-forge-webservices[bot] authored Nov 20, 2024
1 parent d83e2bb commit 79d4513
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
8 changes: 8 additions & 0 deletions .ci_support/linux_64_.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,11 @@ channel_targets:
- conda-forge main
docker_image:
- quay.io/condaforge/linux-anvil-cos7-x86_64
pin_run_as_build:
python:
min_pin: x.x
max_pin: x.x
python:
- 3.12.* *_cpython
python_min:
- '3.9'
10 changes: 6 additions & 4 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{% set name = "scikit-hep-testdata" %}
{% set version = "0.5.0" %}
{% set python_min = "3.9" %}

package:
name: {{ name|lower }}
Expand All @@ -10,18 +11,18 @@ source:
sha256: 50b7d14d558cd14e8dad4021ae02c3068a29a613be39fbc046fd79c15af56819

build:
number: 0
number: 1
noarch: python
script: 'SETUPTOOLS_SCM_PRETEND_VERSION={{ version }} {{ PYTHON }} -m pip install . --no-deps --ignore-installed -vv '
script: SETUPTOOLS_SCM_PRETEND_VERSION={{ version }} {{ PYTHON }} -m pip install . -vv

requirements:
host:
- pip
- python >=3.8
- python {{ python_min }}
- setuptools
- setuptools_scm
run:
- python >=3.8
- python >={{ python_min }}
- pyyaml
- importlib_resources
- requests
Expand All @@ -30,6 +31,7 @@ test:
source_files:
- tests
requires:
- python {{ python_min }}
- pytest
- pip
imports:
Expand Down

0 comments on commit 79d4513

Please sign in to comment.