ultralytics-actions 0.0.84__py3-none-any.whl → 0.0.85__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
actions/__init__.py CHANGED
@@ -22,4 +22,4 @@
22
22
  # ├── test_summarize_pr.py
23
23
  # └── ...
24
24
 
25
- __version__ = "0.0.84"
25
+ __version__ = "0.0.85"
@@ -3,6 +3,7 @@
3
3
  import json
4
4
  import os
5
5
  from pathlib import Path
6
+ from typing import Union
6
7
 
7
8
  import requests
8
9
 
@@ -95,7 +96,7 @@ class Action:
95
96
  """Checks if the repository is public using event data or GitHub API if needed."""
96
97
  return self.event_data.get("repository", {}).get("private")
97
98
 
98
- def get_username(self) -> str | None:
99
+ def get_username(self) -> Union[str, None]:
99
100
  """Gets username associated with the GitHub token."""
100
101
  response = self.post(GITHUB_GRAPHQL_URL, json={"query": "query { viewer { login } }"})
101
102
  if response.status_code == 200:
@@ -7,7 +7,6 @@ import re
7
7
  from pathlib import Path
8
8
 
9
9
  import requests
10
- import tomllib
11
10
 
12
11
 
13
12
  def should_publish(local_version, remote_version):
@@ -26,6 +25,8 @@ def should_publish(local_version, remote_version):
26
25
 
27
26
  def check_pypi_version(pyproject_toml="pyproject.toml"):
28
27
  """Compare local and PyPI package versions to determine if a new version should be published."""
28
+ import tomllib # scope for Python 3.11+
29
+
29
30
  with open(pyproject_toml, "rb") as f:
30
31
  pyproject = tomllib.load(f)
31
32
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ultralytics-actions
3
- Version: 0.0.84
3
+ Version: 0.0.85
4
4
  Summary: Ultralytics Actions for GitHub automation and PR management.
5
5
  Author-email: Glenn Jocher <glenn.jocher@ultralytics.com>
6
6
  Maintainer-email: Ultralytics <hello@ultralytics.com>
@@ -1,4 +1,4 @@
1
- actions/__init__.py,sha256=Z5WUMTbBJ3h5WEoPBA-lyplNH4NIRfOdyqwegOy3Yi0,742
1
+ actions/__init__.py,sha256=jess3LsfC_cceuNA1dxiALao54P5xKwz6AykB6ryao0,742
2
2
  actions/dispatch_actions.py,sha256=vbA4w_B8vMXMen__ck2WoDsUFCELjXOQbpLzZCmqTXg,4240
3
3
  actions/first_interaction.py,sha256=whphdBrWkcWRt6RgOeK2dUoGq3aBTqttQdokxVjkye4,16309
4
4
  actions/summarize_pr.py,sha256=NCaDSbw4PVoRbPJzji_Ua2HadI2pn7QOE_dy3VK9_cc,10463
@@ -7,12 +7,12 @@ actions/update_file_headers.py,sha256=dAu8RWOn-CkuFZHa5LT1-BvNxYX4FRQe2B1UDAjvG3
7
7
  actions/update_markdown_code_blocks.py,sha256=9PL7YIQfApRNAa0que2hYHv7umGZTZoHlblesB0xFj4,8587
8
8
  actions/utils/__init__.py,sha256=7k4cmFX0Td99Uzgsd8Mm-E0xq5kQ5ZJoPM_oGCVD4CU,804
9
9
  actions/utils/common_utils.py,sha256=2eNwGJFigl9bBXcyWzdr8mr97Lrx7zFKWIFYugZcUJw,11736
10
- actions/utils/github_utils.py,sha256=JQivk6IW2UBeHGx7adIuWjId7D03AWziF6fOfG-Ad6A,8171
10
+ actions/utils/github_utils.py,sha256=wjivM9FPZwaItXpQiYbGbnGdK6v4ayLEFvQT2xhRLq4,8202
11
11
  actions/utils/openai_utils.py,sha256=09kW4K2LOc6KsWz5tijf2Piinhu3PIKPDVkRC3KyIxU,2943
12
- actions/utils/version_utils.py,sha256=oCFPrdzzzkORaT02JAfb9GcPFOIncTU1v_AXAfR8W6I,3157
13
- ultralytics_actions-0.0.84.dist-info/licenses/LICENSE,sha256=hIahDEOTzuHCU5J2nd07LWwkLW7Hko4UFO__ffsvB-8,34523
14
- ultralytics_actions-0.0.84.dist-info/METADATA,sha256=3ifMiF4wPn5FGY2OpOdnucXZdE8PUFGZhA2AfXkZZSo,11638
15
- ultralytics_actions-0.0.84.dist-info/WHEEL,sha256=zaaOINJESkSfm_4HQVc5ssNzHCPXhJm0kEUakpsEHaU,91
16
- ultralytics_actions-0.0.84.dist-info/entry_points.txt,sha256=rvqr6Juj7lCJL1DQLwMmOrA8R2Q8tyR_dvCe0mYuJ8s,441
17
- ultralytics_actions-0.0.84.dist-info/top_level.txt,sha256=5apM5x80QlJcGbACn1v3fkmIuL1-XQCKcItJre7w7Tw,8
18
- ultralytics_actions-0.0.84.dist-info/RECORD,,
12
+ actions/utils/version_utils.py,sha256=lKY2lLtYdxejKvqD9hFJiARMrYMHnP_KC_zmcLUmD20,3188
13
+ ultralytics_actions-0.0.85.dist-info/licenses/LICENSE,sha256=hIahDEOTzuHCU5J2nd07LWwkLW7Hko4UFO__ffsvB-8,34523
14
+ ultralytics_actions-0.0.85.dist-info/METADATA,sha256=YJYd3XUlMmFZ74rUBtBzLI5Z6Jy9EPp4UbweMpMs2J4,11638
15
+ ultralytics_actions-0.0.85.dist-info/WHEEL,sha256=zaaOINJESkSfm_4HQVc5ssNzHCPXhJm0kEUakpsEHaU,91
16
+ ultralytics_actions-0.0.85.dist-info/entry_points.txt,sha256=rvqr6Juj7lCJL1DQLwMmOrA8R2Q8tyR_dvCe0mYuJ8s,441
17
+ ultralytics_actions-0.0.85.dist-info/top_level.txt,sha256=5apM5x80QlJcGbACn1v3fkmIuL1-XQCKcItJre7w7Tw,8
18
+ ultralytics_actions-0.0.85.dist-info/RECORD,,