Skip to content

Commit

Permalink
fix: proper versions on assets folder
Browse files Browse the repository at this point in the history
  • Loading branch information
RobPasMue committed Nov 17, 2023
1 parent 8271228 commit c63680f
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,15 @@ def get_wheelhouse_assets_dictionary():
assets_context_os = ["Linux", "Windows", "MacOS"]
assets_context_runners = ["ubuntu-latest", "windows-latest", "macos-latest"]
assets_context_python_versions = ["3.9", "3.10", "3.11", "3.12"]
assets_context_version = json.loads(
requests.get("https://api.github.com/repos/ansys/pyansys-geometry/releases/latest").content
)["name"]
if get_version_match(__version__) == "dev":
# Just point to the latest version
assets_context_version = json.loads(
requests.get(
"https://api.github.com/repos/ansys/pyansys-geometry/releases/latest"
).content
)["name"]
else:
assets_context_version = f"v{__version__}"

assets = {}
for assets_os, assets_runner in zip(assets_context_os, assets_context_runners):
Expand Down

0 comments on commit c63680f

Please sign in to comment.