Skip to content

Commit 29692f3

Browse files
Refactor recipe.yaml with context variables and tests
Updated recipe.yaml to use context variables for versioning and source URL. Added tests for package validation and updated requirements.
1 parent 5355433 commit 29692f3

1 file changed

Lines changed: 27 additions & 44 deletions

File tree

recipe.yaml

Lines changed: 27 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,44 @@
11
# recipe.yaml
2+
# yaml-language-server: $schema=https://raw.githubusercontent.com/prefix-dev/recipe-format/main/schema.json
23
schema_version: 1
34

4-
# this sets up "context variables" (in this case name and version) that
5-
# can later be used in Jinja expressions
65
context:
7-
version: 1.0.4
6+
version: "1.0.4"
87
name: kececinumbers
8+
python_min: "3.11"
99

10-
# top level package information (name and version)
1110
package:
12-
name: kececinumbers
13-
version: 1.0.4
11+
name: ${{ name }}
12+
version: ${{ version }}
1413

15-
# location to get the source from
16-
#`source` are `url`, `sha256`, `md5`, `patches`, `file_name` and `target_directory`
1714
source:
18-
url:
19-
sha256:
15+
url: https://pypi.org/packages/source/${{ name[0] }}/${{ name }}/${{ name }}-${{ version }}.tar.gz
16+
sha256: 865857e05bb6af86f44da046df1b7e3baaeed6e7af4dc55a9f38a5b36c1bb6fa
2017

21-
# build number (should be incremented if a new build is made, but version is not incrementing)
2218
build:
23-
number: 1
24-
script: python -m pip install --no-deps --ignore-installed .
2519
noarch: python
20+
number: 0
21+
script: ${{ PYTHON }} -m pip install . -vv --no-deps --no-build-isolation
2622

27-
# the requirements at build and runtime
2823
requirements:
2924
host:
30-
- python
25+
- python ${{ python_min }}.*
3126
- pip
32-
- setuptools
33-
- wheel
34-
- requests
27+
- hatchling >=1.28.0
3528
run:
36-
- python >=3.11 # hypercomplex uyumlu versiyon
37-
- numpy # kececinumbers numpy kullanıyor
38-
- pip
39-
- requests
40-
41-
# tests to validate that the package works as expected
42-
#tests:
43-
# requires: [] # veya boş liste
44-
# - python:
45-
# imports:
46-
# - kececinumbers
47-
48-
# information about the package
49-
about:
50-
homepage: https://github.com/WhiteSymmetry/kececinumbers/
51-
license: GPL-3.0-or-later
52-
summary: 'kececinumbers'
53-
description: |
54-
kececinumbers
55-
repository: https://github.com/WhiteSymmetry/kececinumbers/
56-
documentation: https://github.com/WhiteSymmetry/kececinumbers/
57-
58-
# the below is conda-forge specific!
59-
extra:
60-
recipe-maintainers:
61-
- bilgi
29+
- python >=${{ python_min }}
30+
- numpy >=1.24.0
31+
- requests >=2.32.0
32+
- matplotlib >=3.7.0
33+
- scipy >=1.11.0
34+
- scikit-learn >=1.3.0
35+
- sympy >=1.12.0
36+
37+
tests:
38+
- python:
39+
imports:
40+
- kececinumbers
41+
pip_check: true
42+
- script:
43+
- python -c "import kececinumbers; print(kececinumbers.__version__)"
44+
- python -c "import numpy, requests, matplotlib, scipy, sklearn, sympy"

0 commit comments

Comments
 (0)