Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/scripts/update_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright © 2023 Roblox Corporation
# Copyright © 2025 Roblox Corporation

# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
# associated documentation files (the “Software”), to deal in the Software without restriction,
Expand All @@ -20,7 +20,7 @@


"""
Used in Github Actions workflow to automatically update the version number of the plugin to match the tag version
Used in Github Actions workflow to automatically update the version number of the plugin to match the tag version
"""

import re
Expand Down
26 changes: 13 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright © 2023 Roblox Corporation
# Copyright © 2025 Roblox Corporation

# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
# associated documentation files (the “Software”), to deal in the Software without restriction,
Expand All @@ -21,19 +21,19 @@
name: CI

on:
push:
branches:
- "main"
pull_request:
push:
branches:
- "main"
pull_request:

jobs:
format:
runs-on: ubuntu-latest
format:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
steps:
- uses: actions/checkout@v3

- name: Black Formatting Check
run: |
python -m pip install black
black --check --diff --color .
- name: Black Formatting Check
run: |
python -m pip install black
black --check --diff --color .
88 changes: 44 additions & 44 deletions .github/workflows/create_release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright © 2023 Roblox Corporation
# Copyright © 2025 Roblox Corporation

# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
# associated documentation files (the “Software”), to deal in the Software without restriction,
Expand All @@ -21,55 +21,55 @@
name: Create release

on:
push:
tags: ["v[0-9]+.[0-9]+.[0-9]+"]
push:
tags: ["v[0-9]+.[0-9]+.[0-9]+"]

jobs:
create-release:
name: Create release
runs-on: ubuntu-latest
create-release:
name: Create release
runs-on: ubuntu-latest

outputs:
upload_url: ${{ steps.create_release.outputs.upload_url }}
outputs:
upload_url: ${{ steps.create_release.outputs.upload_url }}

steps:
- name: Create release
id: create_release
uses: actions/create-release@v1.1.4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref_name }}
release_name: Release ${{ github.ref_name }}
draft: false
prerelease: false
steps:
- name: Create release
id: create_release
uses: actions/create-release@v1.1.4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref_name }}
release_name: Release ${{ github.ref_name }}
draft: false
prerelease: false

upload-release:
needs: ["create-release"]
name: Upload release
runs-on: ubuntu-latest
upload-release:
needs: ["create-release"]
name: Upload release
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3.0.2
steps:
- name: Checkout code
uses: actions/checkout@v3.0.2

- name: Update plugin version
run: python ./.github/scripts/update_version.py ${GITHUB_REF_NAME} ./__init__.py
- name: Update plugin version
run: python ./.github/scripts/update_version.py ${GITHUB_REF_NAME} ./__init__.py

- name: Create asset
run: |
ASSET_NAME=upload-to-roblox-${GITHUB_REF_NAME//./-}
echo "asset_name=$ASSET_NAME" >> $GITHUB_ENV
DIRECTORY=${PWD##*/}
cd ..
zip -r $ASSET_NAME.zip $DIRECTORY -i *.py *.dist-info/ $DIRECTORY/requirements.txt -x $DIRECTORY/.github/scripts/*
- name: Create asset
run: |
ASSET_NAME=upload-to-roblox-${GITHUB_REF_NAME//./-}
echo "asset_name=$ASSET_NAME" >> $GITHUB_ENV
DIRECTORY=${PWD##*/}
cd ..
zip -r $ASSET_NAME.zip $DIRECTORY -i *.py *.dist-info/ $DIRECTORY/requirements.txt -x $DIRECTORY/.github/scripts/*

- name: Upload asset
uses: actions/upload-release-asset@v1.0.2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.create-release.outputs.upload_url }}
asset_path: ../${{ env.asset_name }}.zip
asset_name: ${{ env.asset_name }}.zip
asset_content_type: application/zip
- name: Upload asset
uses: actions/upload-release-asset@v1.0.2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.create-release.outputs.upload_url }}
asset_path: ../${{ env.asset_name }}.zip
asset_name: ${{ env.asset_name }}.zip
asset_content_type: application/zip
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright © 2023 Roblox Corporation
Copyright © 2025 Roblox Corporation

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
associated documentation files (the “Software”), to deal in the Software without restriction,
Expand Down
2 changes: 1 addition & 1 deletion __init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright © 2023 Roblox Corporation
# Copyright © 2025 Roblox Corporation

# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
# associated documentation files (the "Software"), to deal in the Software without restriction,
Expand Down
26 changes: 16 additions & 10 deletions dependencies_private/assets_upload_client.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright © 2023 Roblox Corporation
# Copyright © 2025 Roblox Corporation

# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
# associated documentation files (the “Software”), to deal in the Software without restriction,
Expand Down Expand Up @@ -128,17 +128,21 @@ async def upload_asset_async(
asset_id=asset_id,
request=create_request,
file_content=file_path,
_request_timeout=request_timeout_seconds
if request_timeout_seconds > 0
else AssetsUploadClient.UPLOAD_ASSET_TIMEOUT_SECONDS,
_request_timeout=(
request_timeout_seconds
if request_timeout_seconds > 0
else AssetsUploadClient.UPLOAD_ASSET_TIMEOUT_SECONDS
),
)
else:
operation = await self.asset_client.asset_create(
request=create_request,
file_content=file_path,
_request_timeout=request_timeout_seconds
if request_timeout_seconds > 0
else AssetsUploadClient.UPLOAD_ASSET_TIMEOUT_SECONDS,
_request_timeout=(
request_timeout_seconds
if request_timeout_seconds > 0
else AssetsUploadClient.UPLOAD_ASSET_TIMEOUT_SECONDS
),
)

operation_id = operation.path[11:]
Expand All @@ -157,9 +161,11 @@ async def poll_asset_upload_status_async(

return await self.upload_status_client.upload_status_get_operation_status(
operation_id=operation_id,
_request_timeout=request_timeout_seconds
if request_timeout_seconds > 0
else AssetsUploadClient.GET_ASSET_UPLOAD_STATUS_TIMEOUT_SECONDS,
_request_timeout=(
request_timeout_seconds
if request_timeout_seconds > 0
else AssetsUploadClient.GET_ASSET_UPLOAD_STATUS_TIMEOUT_SECONDS
),
)

async def poll_asset_upload_status_repeated_async(
Expand Down
2 changes: 1 addition & 1 deletion lib/auth_callback_request_handler.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright © 2023 Roblox Corporation
# Copyright © 2025 Roblox Corporation

# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
# associated documentation files (the “Software”), to deal in the Software without restriction,
Expand Down
2 changes: 1 addition & 1 deletion lib/constants.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright © 2023 Roblox Corporation
# Copyright © 2025 Roblox Corporation

# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
# associated documentation files (the “Software”), to deal in the Software without restriction,
Expand Down
2 changes: 1 addition & 1 deletion lib/create_http_client.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright © 2023 Roblox Corporation
# Copyright © 2025 Roblox Corporation

# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
# associated documentation files (the “Software”), to deal in the Software without restriction,
Expand Down
2 changes: 1 addition & 1 deletion lib/creator_details.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright © 2023 Roblox Corporation
# Copyright © 2025 Roblox Corporation

# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
# associated documentation files (the “Software”), to deal in the Software without restriction,
Expand Down
2 changes: 1 addition & 1 deletion lib/event_loop.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright © 2023 Roblox Corporation
# Copyright © 2025 Roblox Corporation

# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
# associated documentation files (the “Software”), to deal in the Software without restriction,
Expand Down
2 changes: 1 addition & 1 deletion lib/export.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright © 2023 Roblox Corporation
# Copyright © 2025 Roblox Corporation

# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
# associated documentation files (the “Software”), to deal in the Software without restriction,
Expand Down
2 changes: 1 addition & 1 deletion lib/extract_exception_message.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright © 2023 Roblox Corporation
# Copyright © 2025 Roblox Corporation

# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
# associated documentation files (the “Software”), to deal in the Software without restriction,
Expand Down
2 changes: 1 addition & 1 deletion lib/get_add_on_preferences.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright © 2023 Roblox Corporation
# Copyright © 2025 Roblox Corporation

# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
# associated documentation files (the “Software”), to deal in the Software without restriction,
Expand Down
2 changes: 1 addition & 1 deletion lib/get_selected_objects.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright © 2023 Roblox Corporation
# Copyright © 2025 Roblox Corporation

# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
# associated documentation files (the “Software”), to deal in the Software without restriction,
Expand Down
2 changes: 1 addition & 1 deletion lib/install_dependencies.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright © 2023 Roblox Corporation
# Copyright © 2025 Roblox Corporation

# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
# associated documentation files (the “Software”), to deal in the Software without restriction,
Expand Down
2 changes: 1 addition & 1 deletion lib/jwt_http_client.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright © 2023 Roblox Corporation
# Copyright © 2025 Roblox Corporation

# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
# associated documentation files (the “Software”), to deal in the Software without restriction,
Expand Down
2 changes: 1 addition & 1 deletion lib/oauth2_client.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright © 2023 Roblox Corporation
# Copyright © 2025 Roblox Corporation

# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
# associated documentation files (the “Software”), to deal in the Software without restriction,
Expand Down
2 changes: 1 addition & 1 deletion lib/oauth2_login_operators.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright © 2023 Roblox Corporation
# Copyright © 2025 Roblox Corporation

# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
# associated documentation files (the “Software”), to deal in the Software without restriction,
Expand Down
2 changes: 1 addition & 1 deletion lib/request_login_details.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright © 2023 Roblox Corporation
# Copyright © 2025 Roblox Corporation

# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
# associated documentation files (the “Software”), to deal in the Software without restriction,
Expand Down
2 changes: 1 addition & 1 deletion lib/roblox_properties.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright © 2023 Roblox Corporation
# Copyright © 2025 Roblox Corporation

# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
# associated documentation files (the “Software”), to deal in the Software without restriction,
Expand Down
2 changes: 1 addition & 1 deletion lib/status_indicators.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright © 2023 Roblox Corporation
# Copyright © 2025 Roblox Corporation

# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
# associated documentation files (the “Software”), to deal in the Software without restriction,
Expand Down
2 changes: 1 addition & 1 deletion lib/str_to_int.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright © 2023 Roblox Corporation
# Copyright © 2025 Roblox Corporation

# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
# associated documentation files (the “Software”), to deal in the Software without restriction,
Expand Down
2 changes: 1 addition & 1 deletion lib/upload_blocking_issues.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright © 2023 Roblox Corporation
# Copyright © 2025 Roblox Corporation

# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
# associated documentation files (the “Software”), to deal in the Software without restriction,
Expand Down
2 changes: 1 addition & 1 deletion lib/upload_operator.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright © 2023 Roblox Corporation
# Copyright © 2025 Roblox Corporation

# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
# associated documentation files (the “Software”), to deal in the Software without restriction,
Expand Down