Commit 66ef78b2 authored by vertighel's avatar vertighel
Browse files

Modified pyproject to include telnetlib3 dependency for python 3.13

parent 1d811b4a
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -18,7 +18,7 @@ class Cover(BaseResource):
    async def get(self):
        '''Retrieve the petals position.'''
        
        res = await self.run_blocking(lambda: self.dev.cover)
        res = await self.run_blocking(lambda: self.dev.open)
        return self.make_response(res)


+11 −11
Original line number Diff line number Diff line
@@ -65,12 +65,18 @@ outlet = 7
# node = PDU
# outlet = 8

######################################
[cab]
module = siemens
class = Switch
node = SIEMENS_SWITCH
outlet = 0

# [tel]
# module = astelco
# class = Telescope
# node = CABINET
[tel]
module = astelco
class = Telescope
node = CABINET

######################################

# [foc]
# module = astelco
@@ -106,12 +112,6 @@ outlet = 7
# node = ASCOM_REMOTE
# outlet = 3

# [cab]
# module = siemens
# class = Switch
# node = SIEMENS_SWITCH
# outlet = 0

# [ipcam]
# module = ipcam
# class = Webcam
+3 −2
Original line number Diff line number Diff line
@@ -9,7 +9,7 @@ that adhere to the Astelco OpenTSI specification. It includes classes for
the main telescope, focuser, rotator, and sensors.
"""

import telnetlib
from telnetlib3 import Telnet
import time
import threading

@@ -62,6 +62,7 @@ class OpenTSI(BaseDevice):
        int
            A new, unique command ID.
        """
        
        with self._lock:
            self._cmd_id_counter += 1
            return self._cmd_id_counter
@@ -90,7 +91,7 @@ class OpenTSI(BaseDevice):
            connection or authentication fails.
        """
        
        tn = telnetlib.Telnet(self.host, self.port, timeout=self.timeout)
        tn = Telnet(self.host, self.port, timeout=self.timeout)

        auth_cmd = f'auth plain "{self.username}" "{self.password}"\n'
        tn.write(auth_cmd.encode('utf-8'))
+2 −1
Original line number Diff line number Diff line
@@ -12,7 +12,7 @@ authors = [
description = "Nighttime Observatory Control and Telescope Utility Automation. An Instrument Control Software for a 1m class observatory."

readme = "README.md"
requires-python = ">=3.12"
requires-python = ">=3.13"

#license = { file="LICENSE" } # If you have a LICENSE file
classifiers = [
@@ -26,6 +26,7 @@ classifiers = [

dependencies = [

    "telnetlib3",
    "requests",
    "astropy>=7.2.0",
    "numpy>=2.3.5",