diff --git a/.github/scripts/update_version.py b/.github/scripts/update_version.py index dd60c01..f693e05 100644 --- a/.github/scripts/update_version.py +++ b/.github/scripts/update_version.py @@ -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, @@ -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 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2fe138d..9091cfe 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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, @@ -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 . diff --git a/.github/workflows/create_release.yml b/.github/workflows/create_release.yml index 8d97d0f..45e28f8 100644 --- a/.github/workflows/create_release.yml +++ b/.github/workflows/create_release.yml @@ -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, @@ -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 diff --git a/LICENSE.md b/LICENSE.md index 5b57422..5a98a49 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -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, diff --git a/__init__.py b/__init__.py index e145e85..35b2afc 100644 --- a/__init__.py +++ b/__init__.py @@ -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, diff --git a/dependencies_private/assets_upload_client.py b/dependencies_private/assets_upload_client.py index 8f063d0..f103579 100644 --- a/dependencies_private/assets_upload_client.py +++ b/dependencies_private/assets_upload_client.py @@ -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, @@ -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:] @@ -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( diff --git a/lib/auth_callback_request_handler.py b/lib/auth_callback_request_handler.py index 4a800dd..d6fdc45 100644 --- a/lib/auth_callback_request_handler.py +++ b/lib/auth_callback_request_handler.py @@ -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, diff --git a/lib/constants.py b/lib/constants.py index 223884c..ba9d57c 100644 --- a/lib/constants.py +++ b/lib/constants.py @@ -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, diff --git a/lib/create_http_client.py b/lib/create_http_client.py index 2033bc3..b3e58b8 100644 --- a/lib/create_http_client.py +++ b/lib/create_http_client.py @@ -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, diff --git a/lib/creator_details.py b/lib/creator_details.py index 2d8fd6e..760c518 100644 --- a/lib/creator_details.py +++ b/lib/creator_details.py @@ -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, diff --git a/lib/event_loop.py b/lib/event_loop.py index 4b81f5d..c683a8b 100644 --- a/lib/event_loop.py +++ b/lib/event_loop.py @@ -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, diff --git a/lib/export.py b/lib/export.py index c347458..e8ed385 100644 --- a/lib/export.py +++ b/lib/export.py @@ -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, diff --git a/lib/extract_exception_message.py b/lib/extract_exception_message.py index d96da7b..2113223 100644 --- a/lib/extract_exception_message.py +++ b/lib/extract_exception_message.py @@ -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, diff --git a/lib/get_add_on_preferences.py b/lib/get_add_on_preferences.py index a9485d2..d12f968 100644 --- a/lib/get_add_on_preferences.py +++ b/lib/get_add_on_preferences.py @@ -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, diff --git a/lib/get_selected_objects.py b/lib/get_selected_objects.py index 88f5521..d688f6e 100644 --- a/lib/get_selected_objects.py +++ b/lib/get_selected_objects.py @@ -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, diff --git a/lib/install_dependencies.py b/lib/install_dependencies.py index e619bc2..7535491 100644 --- a/lib/install_dependencies.py +++ b/lib/install_dependencies.py @@ -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, diff --git a/lib/jwt_http_client.py b/lib/jwt_http_client.py index 5b59049..ebe803b 100644 --- a/lib/jwt_http_client.py +++ b/lib/jwt_http_client.py @@ -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, diff --git a/lib/oauth2_client.py b/lib/oauth2_client.py index 119341f..7153e67 100644 --- a/lib/oauth2_client.py +++ b/lib/oauth2_client.py @@ -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, diff --git a/lib/oauth2_login_operators.py b/lib/oauth2_login_operators.py index 303f7d0..6b0dcad 100644 --- a/lib/oauth2_login_operators.py +++ b/lib/oauth2_login_operators.py @@ -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, diff --git a/lib/request_login_details.py b/lib/request_login_details.py index 90bcf23..99386d8 100644 --- a/lib/request_login_details.py +++ b/lib/request_login_details.py @@ -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, diff --git a/lib/roblox_properties.py b/lib/roblox_properties.py index 2334da2..1ee637e 100644 --- a/lib/roblox_properties.py +++ b/lib/roblox_properties.py @@ -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, diff --git a/lib/status_indicators.py b/lib/status_indicators.py index ff12e22..759b1df 100644 --- a/lib/status_indicators.py +++ b/lib/status_indicators.py @@ -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, diff --git a/lib/str_to_int.py b/lib/str_to_int.py index 80a710c..ead7c19 100644 --- a/lib/str_to_int.py +++ b/lib/str_to_int.py @@ -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, diff --git a/lib/upload_blocking_issues.py b/lib/upload_blocking_issues.py index 4f1125c..fe93ae8 100644 --- a/lib/upload_blocking_issues.py +++ b/lib/upload_blocking_issues.py @@ -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, diff --git a/lib/upload_operator.py b/lib/upload_operator.py index 4cfb324..544d2bc 100644 --- a/lib/upload_operator.py +++ b/lib/upload_operator.py @@ -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,