Skip to content

Commit

Permalink
Set python_min to 3.8 and remove runtime dep on opencv (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
weiji14 authored Nov 25, 2024
1 parent 6d9dcfa commit 0c91939
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .azure-pipelines/azure-pipelines-linux.yml

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

10 changes: 9 additions & 1 deletion .ci_support/linux_64_.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,12 @@ channel_sources:
channel_targets:
- conda-forge main
docker_image:
- quay.io/condaforge/linux-anvil-cos7-x86_64
- quay.io/condaforge/linux-anvil-x86_64:alma9
pin_run_as_build:
python:
min_pin: x.x
max_pin: x.x
python:
- 3.12.* *_cpython
python_min:
- '3.9'
15 changes: 7 additions & 8 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{% set name = "sahi" %}
{% set version = "0.11.19" %}

{% set python_min = "3.8" %}

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

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

build:
number: 0
number: 1
noarch: python
entry_points:
- sahi=sahi.cli:app
Expand All @@ -20,21 +20,19 @@ build:
requirements:
host:
- pip
- python >=3.6
- python {{ python_min }}
- setuptools
run:
- numpy <2.0.0
- opencv <=4.9.0.80
- click
- fire
- pillow >=8.2.0
- pybboxes ==0.1.6
- py-opencv <=4.9.0.80
- python >=3.6
- python >={{ python_min }}
- pytorch
- pyyaml
- requests
- shapely >=1.8.0
- shapely >=2.0.0
- terminaltables
- tqdm >=4.48.2

Expand All @@ -47,6 +45,7 @@ test:
- sahi --help
requires:
- pip
- python {{ python_min }}

about:
home: https://github.com/obss/sahi
Expand Down

0 comments on commit 0c91939

Please sign in to comment.