Skip to content

Commit

Permalink
2.4.3
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCommCraft committed Apr 19, 2024
1 parent 5d31b4c commit 1e051ca
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 2 additions & 0 deletions scratchcommunication/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
Module for communicating with scratch projects.
"""

__version_number__ = '2.4.3'

from .session import *
from .cloud import *
from .cloudrequests import RequestHandler
Expand Down
3 changes: 2 additions & 1 deletion scratchcommunication/cloud.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from typing import Literal, Union, Any, Protocol
from collections.abc import Callable
from .exceptions import QuickAccessDisabledError, NotSupported, ErrorInEventHandler, StopException, EventExpiredError
import scratchcommunication
import json, time, requests, warnings, traceback, secrets, sys
from websocket import WebSocket
from func_timeout import StoppableThread
Expand Down Expand Up @@ -477,7 +478,7 @@ def __init__(
self.supports_cloud_logs = False
self.contact_info = contact_info or ((f"@{session.username} on scratch" if session else "Anonymous") if username == "player1000" else f"@{username} on scratch")
assert self.contact_info != "Anonymous", "You need to specify your contact_info for the turbowarp cloud."
self.user_agent = f"scratchcommunication - {self.contact_info}"
self.user_agent = f"scratchcommunication/{scratchcommunication.__version_number__} - {self.contact_info}"
self.cloud_host = cloud_host
self.accept_strs = accept_strs
self._connect()
Expand Down
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@

with open("README.md", encoding="utf-8") as f:
long_description = f.read()

VERSION = '2.4.3'

setup(
name='scratchcommunication',
version='2.4.2',
version=VERSION,
author='Simon Gilde',
author_email='simon.c.gilde@gmail.com',
description='A python module for communicating with scratch projects',
Expand Down

0 comments on commit 1e051ca

Please sign in to comment.