Skip to content

Commit

Permalink
Bump version to 'v0.9.0b12'.
Browse files Browse the repository at this point in the history
  • Loading branch information
Aermoss committed Jan 12, 2025
1 parent e55e505 commit 533b7a6
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions sdl3/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""A pure Python wrapper for SDL3."""

__version__ = "0.9.0b11"
__version__ = "0.9.0b12"

import sys, os, requests, ctypes, platform, keyword, inspect, \
asyncio, aiohttp, re, typing, array, atexit, packaging.version
Expand Down Expand Up @@ -243,16 +243,17 @@ def SDL_GET_NAME(i):
return f"{result}\n{definitions}"

def SDL_GET_OR_GENERATE_DOCS():
for release in requests.get(f"https://api.github.com/repos/Aermoss/PySDL3/releases").json():
if release["tag_name"] != __version__:
continue
try:
for release in requests.get(f"https://api.github.com/repos/Aermoss/PySDL3/releases").json():
if release["tag_name"] != __version__:
continue

for asset in release["assets"]:
if asset["name"] != f"{SDL_SYSTEM.lower()}-docs.py": continue
print(asset)
return requests.get(asset["browser_download_url"]).text
for asset in release["assets"]:
if asset["name"] != f"{SDL_SYSTEM.lower()}-docs.py": continue
return requests.get(asset["browser_download_url"]).text

return SDL_GENERATE_DOCS()
finally:
return SDL_GENERATE_DOCS()

from .SDL import *

Expand Down

0 comments on commit 533b7a6

Please sign in to comment.