Coder Social home page Coder Social logo

Add Python 3.12 support about circuits HOT 5 CLOSED

spaceone avatar spaceone commented on September 25, 2024
Add Python 3.12 support

from circuits.

Comments (5)

spaceone avatar spaceone commented on September 25, 2024 1

I think that ssl.wrap_socket needs to be removed too. Used here as well as other places. See https://docs.python.org/3/whatsnew/3.12.html#ssl

Yes, I have a starting point in #328

from circuits.

spaceone avatar spaceone commented on September 25, 2024

@kathychurch Could you have a look about Python 3.12 support for the STOMP components? I did a starting point - but not yet found a replacement for ssl.match_hostname(). Is it still required?

from circuits.

spaceone avatar spaceone commented on September 25, 2024

→ PR: #328

from circuits.

bobleckelibm avatar bobleckelibm commented on September 25, 2024

I think that ssl.wrap_socket needs to be removed too. Used here as well as other places. See https://docs.python.org/3/whatsnew/3.12.html#ssl

from circuits.

spaceone avatar spaceone commented on September 25, 2024
=============================== warnings summary ===============================
circuits/web/processors.py:2
  /home/runner/work/circuits/circuits/circuits/web/processors.py:2: DeprecationWarning: 'cgi' is deprecated and slated for removal in Python 3.13
    from cgi import parse_header
tests/web/test_servers.py:23
  /home/runner/work/circuits/circuits/tests/web/test_servers.py:23: DeprecationWarning: ssl.PROTOCOL_TLS is deprecated
    SSL_CONTEXT = ssl.SSLContext(ssl.PROTOCOL_SSLv23)
tests/core/test_bridge.py::test
tests/node/test_node.py::test_return_value
  /opt/hostedtoolcache/Python/3.12.2/x64/lib/python3.12/multiprocessing/popen_fork.py:66: DeprecationWarning: This process (pid=2001) is multi-threaded, use of fork() may lead to deadlocks in the child.
    self.pid = os.fork()
tests/web/test_expires.py::test
  /home/runner/work/circuits/circuits/tests/web/test_expires.py:26: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
    diff = mktime(parsedate(expires)) - mktime(datetime.utcnow().timetuple())
tests/web/test_expires.py::test_nocache
  /home/runner/work/circuits/circuits/tests/web/test_expires.py:39: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
    now = datetime.utcnow()
tests/web/test_jsonrpc.py::test
  /home/runner/work/circuits/circuits/tests/web/jsonrpclib.py:370: DeprecationWarning: urllib.parse.splittype() is deprecated as of 3.8, use urllib.parse.urlparse() instead
    utype, uri = splittype(uri)
tests/web/test_jsonrpc.py::test
  /home/runner/work/circuits/circuits/tests/web/jsonrpclib.py:373: DeprecationWarning: urllib.parse.splithost() is deprecated as of 3.8, use urllib.parse.urlparse() instead
    self.__host, self.__handler = splithost(uri)
tests/web/test_jsonrpc.py::test
  /home/runner/work/circuits/circuits/tests/web/jsonrpclib.py:236: DeprecationWarning: urllib.parse.splituser() is deprecated as of 3.8, use urllib.parse.urlparse() instead
    auth, host = splituser(host)

from circuits.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.