Skip to content

Commit f34993c

Browse files
authored
Merge pull request #493 from roboflow/develop
`supervision-0.16.0` release
2 parents 1bddf26 + f44a937 commit f34993c

37 files changed

+1766
-844
lines changed

.github/requirements-dev.txt

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
contourpy==1.1.0 ; python_version >= "3.8" and python_full_version < "3.12.0"
2+
cycler==0.11.0 ; python_version >= "3.8" and python_full_version < "3.12.0"
3+
fonttools==4.41.1 ; python_version >= "3.8" and python_full_version < "3.12.0"
4+
importlib-resources==6.0.0 ; python_version >= "3.8" and python_version < "3.10"
5+
kiwisolver==1.4.4 ; python_version >= "3.8" and python_full_version < "3.12.0"
6+
matplotlib==3.7.2 ; python_version >= "3.8" and python_full_version < "3.12.0"
7+
numpy==1.24.4 ; python_version >= "3.8" and python_version < "3.12"
8+
opencv-python-headless==4.8.0.74 ; python_version >= "3.8" and python_full_version < "3.12.0"
9+
packaging==23.1 ; python_version >= "3.8" and python_full_version < "3.12.0"
10+
pillow==10.0.1 ; python_version >= "3.8" and python_full_version < "3.12.0"
11+
pyparsing==3.0.9 ; python_version >= "3.8" and python_full_version < "3.12.0"
12+
python-dateutil==2.8.2 ; python_version >= "3.8" and python_full_version < "3.12.0"
13+
pyyaml==6.0.1 ; python_version >= "3.8" and python_full_version < "3.12.0"
14+
scipy==1.10.1 ; python_version >= "3.8" and python_version < "3.12"
15+
six==1.16.0 ; python_version >= "3.8" and python_full_version < "3.12.0"
16+
zipp==3.16.2 ; python_version >= "3.8" and python_version < "3.10"
17+
pytest==7.4.0 ; python_version >= "3.8" and python_full_version < "3.12.0"

.github/workflows/clear-cache.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
2+
name: Clear cache
3+
4+
on:
5+
schedule:
6+
- cron: '0 0 1 * *'
7+
workflow_dispatch:
8+
9+
permissions:
10+
actions: write
11+
12+
jobs:
13+
clear-cache:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Clear cache
17+
uses: actions/github-script@v6
18+
with:
19+
script: |
20+
console.log("About to clear")
21+
const caches = await github.rest.actions.getActionsCacheList({
22+
owner: context.repo.owner,
23+
repo: context.repo.repo,
24+
})
25+
for (const cache of caches.data.actions_caches) {
26+
console.log(cache)
27+
github.rest.actions.deleteActionsCacheById({
28+
owner: context.repo.owner,
29+
repo: context.repo.repo,
30+
cache_id: cache.id,
31+
})
32+
}
33+
console.log("Clear completed")

.github/workflows/test.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,18 @@ jobs:
1515
uses: actions/checkout@v3
1616
- name: 🐍 Set up Python ${{ matrix.python-version }}
1717
uses: actions/setup-python@v4
18+
# id based on python version
19+
id: python-setup
1820
with:
1921
python-version: ${{ matrix.python-version }}
20-
- name: 🦾 Install dependencies
22+
check-latest: true
23+
cache: 'pip'
24+
cache-dependency-path: '**/requirements-dev.txt'
25+
26+
- name: 📦 Install dependencies
2127
run: |
2228
python -m pip install --upgrade pip
23-
pip install -e .
24-
pip install pytest
29+
pip install -r .github/requirements-dev.txt
30+
2531
- name: 🧪 Test
2632
run: "python -m pytest ./test"

.pre-commit-config.yaml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ci:
77

88
repos:
99
- repo: https://github.com/pre-commit/pre-commit-hooks
10-
rev: v4.4.0
10+
rev: v4.5.0
1111
hooks:
1212
- id: end-of-file-fixer
1313
- id: trailing-whitespace
@@ -22,6 +22,7 @@ repos:
2222
- id: detect-private-key
2323
- id: forbid-new-submodules
2424
- id: pretty-format-json
25+
exclude: demo.ipynb
2526
args: ['--autofix', '--no-sort-keys', '--indent=4']
2627
- id: end-of-file-fixer
2728
- id: mixed-line-ending
@@ -33,11 +34,6 @@ repos:
3334
# name: Upgrade code
3435
# args: [--py38-plus]
3536

36-
- repo: https://github.com/PyCQA/isort
37-
rev: 5.12.0
38-
hooks:
39-
- id: isort
40-
name: Sort imports
4137

4238
- repo: https://github.com/PyCQA/flake8
4339
rev: 6.1.0

Makefile

Lines changed: 0 additions & 22 deletions
This file was deleted.

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,15 @@
1919
[![license](https://img.shields.io/pypi/l/supervision)](https://github.com/roboflow/supervision/blob/main/LICENSE.md)
2020
[![python-version](https://img.shields.io/pypi/pyversions/supervision)](https://badge.fury.io/py/supervision)
2121
[![Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/roboflow/supervision/blob/main/demo.ipynb)
22+
[![Gradio](https://img.shields.io/badge/%F0%9F%A4%97%20Hugging%20Face-Spaces-blue)](https://huggingface.co/spaces/Roboflow/Annotators)
23+
[![Discord](https://img.shields.io/discord/1159501506232451173)](https://discord.gg/GbfgXGJ8Bk)
2224

2325
</div>
2426

27+
<a href="https://github.com/roboflow/supervision/issues?q=is%3Aissue+label%3Ahacktoberfest+">
28+
<img width="100%" src="https://media.roboflow.com/open-source/supervision/hacktoberfest-banner-3.png">
29+
</a>
30+
2531
## 👋 hello
2632

2733
**We write your reusable computer vision tools.** Whether you need to load your dataset from your hard drive, draw detections on an image or video, or count how many detections are in a zone. You can count on us! 🤝
@@ -305,6 +311,12 @@ Visit our [documentation](https://roboflow.github.io/supervision) page to learn
305311

306312
We love your input! Please see our [contributing guide](https://github.com/roboflow/supervision/blob/main/CONTRIBUTING.md) to get started. Thank you 🙏 to all our contributors!
307313

314+
<p align="center">
315+
<a href="https://github.com/roboflow/supervision/graphs/contributors">
316+
<img src="https://contrib.rocks/image?repo=roboflow/supervision" />
317+
</a>
318+
</p>
319+
308320
<br>
309321

310322
<div align="center">
@@ -352,5 +364,4 @@ We love your input! Please see our [contributing guide](https://github.com/robof
352364
</a>
353365
</a>
354366
</div>
355-
356367
</div>

0 commit comments

Comments
 (0)