Skip to content

Commit

Permalink
MNT: Use noarch python {{ python_min }} variable (#1)
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 hepdata-validator's python_min of 3.6.
* Add setuptools as build system as a 'host' requirement.
* Use 'pypi.org'.
* 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.17.06.32.00

---------

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 18, 2024
1 parent 68c7014 commit a7bfc93
Show file tree
Hide file tree
Showing 6 changed files with 65 additions and 18 deletions.
10 changes: 9 additions & 1 deletion .ci_support/linux_64_.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
cdt_name:
- cos6
- conda
channel_sources:
- conda-forge
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'
4 changes: 2 additions & 2 deletions .gitattributes

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 13 additions & 5 deletions .scripts/build_steps.sh

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 27 additions & 2 deletions azure-pipelines.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 6 additions & 3 deletions build-locally.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 8 additions & 5 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,28 +1,30 @@
{% set name = "hepdata-validator" %}
{% set version = "0.3.5" %}
{% set python_min = "3.6" %}

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

source:
url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/hepdata_validator-{{ version }}.tar.gz
url: https://pypi.org/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
script: {{ PYTHON }} -m pip install . -vv
number: 1

requirements:
host:
- python >=3.6
- python {{ python_min }}
- setuptools
- pytest
- pip
run:
- python >=3.6
- python >={{ python_min }}
- click
- jsonschema
- packaging
Expand All @@ -36,6 +38,7 @@ test:
- pip check
- hepdata-validate --help
requires:
- python {{ python_min }}
- pip

about:
Expand Down

0 comments on commit a7bfc93

Please sign in to comment.