From 0d6f60895db9f5065f45445147e1e7544e80cfb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Achim=20G=C3=A4dke?= Date: Sat, 21 Dec 2024 22:47:04 +1300 Subject: [PATCH] initial version of cvat-sdk python package --- recipes/cvat-sdk/LICENSE | 22 ++++++++++ recipes/cvat-sdk/meta.yaml | 89 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 111 insertions(+) create mode 100644 recipes/cvat-sdk/LICENSE create mode 100644 recipes/cvat-sdk/meta.yaml diff --git a/recipes/cvat-sdk/LICENSE b/recipes/cvat-sdk/LICENSE new file mode 100644 index 0000000000000..88cc10d5d9a66 --- /dev/null +++ b/recipes/cvat-sdk/LICENSE @@ -0,0 +1,22 @@ +MIT License + +Copyright (c) 2018-2022 Intel Corporation +Copyright (c) 2022-2024 CVAT.ai Corporation + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/recipes/cvat-sdk/meta.yaml b/recipes/cvat-sdk/meta.yaml new file mode 100644 index 0000000000000..d7fbf970245a7 --- /dev/null +++ b/recipes/cvat-sdk/meta.yaml @@ -0,0 +1,89 @@ +{% set name = "cvat-sdk" %} +{% set version = "2.24.0" %} + +package: + name: {{ name|lower }} + version: {{ version }} + +source: + url: https://pypi.org/packages/source/{{ name[0] }}/{{ name }}/cvat_sdk-{{ version }}.tar.gz + sha256: 68b1de058db8f4f378adf1181bdc6ef7cc49d744330b3bc37f87eaea3143567e + +build: + noarch: python + script: {{ PYTHON }} -m pip install . -vv --no-deps --no-build-isolation + number: 0 + +requirements: + host: + - python >=3.9 + - setuptools + - wheel + - pip + run: + - python >=3.9 + - attrs >=21.4.0 + - packaging >=21.3 + - pillow >=10.3.0 + - platformdirs >=2.1.0 + - tqdm >=4.64.0 + - tuspy ==0.2.5 + - typing_extensions >=4.2.0 + - python-dateutil >=2.5.3 + - setuptools >=21.0.0 + - urllib3 >=1.25.3 + +test: + imports: + - cvat_sdk + commands: + - pip check + requires: + - pip + +outputs: + - name: cvat-sdk + - name: cvat-sdk-masks + requirements: + host: &id001 + - python >=3.9 + - setuptools + - wheel + - pip + run: + - python >=3.9 + - python-dateutil >=2.5.3 + - "{{ pin_subpackage('cvat-sdk', exact=True) }}" + - numpy >=2 + test: &id002 + imports: + - cvat_sdk + commands: + - pip check + requires: + - pip + build: + noarch: python + - name: cvat-sdk-pytorch + requirements: + host: *id001 + run: + - python >=3.9 + - python-dateutil >=2.5.3 + - "{{ pin_subpackage('cvat-sdk', exact=True) }}" + - pytorch + - torchvision + - scikit-image >=0.24 + test: *id002 + build: + noarch: python + +about: + home: https://github.com/cvat-ai/cvat + summary: CVAT REST API + license: MIT + license_file: LICENSE + +extra: + recipe-maintainers: + - achimgaedke