Skip to content

Commit

Permalink
initial version of cvat-sdk python package
Browse files Browse the repository at this point in the history
  • Loading branch information
achimgaedke committed Dec 21, 2024
1 parent d09ee2a commit 0d6f608
Show file tree
Hide file tree
Showing 2 changed files with 111 additions and 0 deletions.
22 changes: 22 additions & 0 deletions recipes/cvat-sdk/LICENSE
Original file line number Diff line number Diff line change
@@ -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.
89 changes: 89 additions & 0 deletions recipes/cvat-sdk/meta.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 0d6f608

Please sign in to comment.