From d7bbfa42eff06fa3084ea8c1663c3a7f5f3c0a20 Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Fri, 24 May 2024 18:16:34 +0200 Subject: [PATCH] `ultralytics 8.2.21` package all `tests/*.py` files to PyPI (#13080) Signed-off-by: Glenn Jocher Co-authored-by: Burhan <62214284+Burhan-Q@users.noreply.github.com> --- .github/workflows/publish.yml | 2 +- docs/mkdocs_github_authors.yaml | 1 + pyproject.toml | 2 +- ultralytics/__init__.py | 2 +- ultralytics/engine/exporter.py | 4 ++-- 5 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 1dd3748a..81274311 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -19,7 +19,7 @@ jobs: publish: if: github.repository == 'ultralytics/ultralytics' && github.actor == 'glenn-jocher' name: Publish - runs-on: ubuntu-latest + runs-on: macos-14 steps: - name: Checkout code uses: actions/checkout@v4 diff --git a/docs/mkdocs_github_authors.yaml b/docs/mkdocs_github_authors.yaml index 36f86a3e..7132c72d 100644 --- a/docs/mkdocs_github_authors.yaml +++ b/docs/mkdocs_github_authors.yaml @@ -28,3 +28,4 @@ priytosh.revolution@live.com: priytosh-tripathi shuizhuyuanluo@126.com: null stormsson@users.noreply.github.com: stormsson xinwang614@gmail.com: GreatV +andrei.kochin@intel: andrei-kochin diff --git a/pyproject.toml b/pyproject.toml index 23fd72c7..a18fe9ac 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -139,7 +139,7 @@ ultralytics = "ultralytics.cfg:entrypoint" # Tools settings ------------------------------------------------------------------------------------------------------- [tool.setuptools] # configuration specific to the `setuptools` build backend. packages = { find = { where = ["."], include = ["ultralytics", "ultralytics.*"] } } -package-data = { "ultralytics" = ["**/*.yaml"], "ultralytics.assets" = ["*.jpg"] } +package-data = { "ultralytics" = ["**/*.yaml", "../tests/*.py"], "ultralytics.assets" = ["*.jpg"] } [tool.setuptools.dynamic] version = { attr = "ultralytics.__version__" } diff --git a/ultralytics/__init__.py b/ultralytics/__init__.py index a05dcc22..c55705a9 100644 --- a/ultralytics/__init__.py +++ b/ultralytics/__init__.py @@ -1,6 +1,6 @@ # Ultralytics YOLO 🚀, AGPL-3.0 license -__version__ = "8.2.20" +__version__ = "8.2.21" from ultralytics.data.explorer.explorer import Explorer from ultralytics.models import RTDETR, SAM, YOLO, YOLOWorld diff --git a/ultralytics/engine/exporter.py b/ultralytics/engine/exporter.py index 20eb87d2..822a012d 100644 --- a/ultralytics/engine/exporter.py +++ b/ultralytics/engine/exporter.py @@ -829,8 +829,8 @@ class Exporter: "flatbuffers>=23.5.26,<100", # update old 'flatbuffers' included inside tensorflow package "onnxruntime-gpu" if cuda else "onnxruntime", ), - cmds="--extra-index-url https://pypi.ngc.nvidia.com", - ) # onnx_graphsurgeon only on NVIDIA + cmds="--extra-index-url https://pypi.ngc.nvidia.com", # onnx_graphsurgeon only on NVIDIA + ) LOGGER.info(f"\n{prefix} starting export with tensorflow {tf.__version__}...") check_version(