Skip to content

various changes#2

Open
borco wants to merge 15 commits intoemboiko:masterfrom
borco:master
Open

various changes#2
borco wants to merge 15 commits intoemboiko:masterfrom
borco:master

Conversation

@borco
Copy link
Copy Markdown

@borco borco commented Apr 27, 2026

  • use uv to manage the package
    • the version is now managed in the pyproject.toml
    • removed the various publishing files (uv publish should work, but I haven't tested it...)
  • changed the folder names to better match python conventions
    • package name changed to socket_singleton (from Socket_Singleton)
    • class name changed to SocketSingleton (from Socket_Singleton)
  • use pytest to drive the tests
    • moved the tests to tests subdir
  • added some typing info
  • added a trace_no_args: bool = False option to SocketSingleton.__init__
    • if False (the default), the class behaves as before
    • if True, the trace callbacks will be called even if the client doesn't send any args
    • I'm using the SocketSingleton with a GUI app - if an app instance is already running, I want to be able to detect if the user tries to launch it again, so that I can bring the existing instance in focus

@borco
Copy link
Copy Markdown
Author

borco commented Apr 27, 2026

If you like the changes, you might want to increase the version to 3.0.0, as the API slightly changes from:

from Socket_Singleton import Socket_Singleton

to

from socket_singleton import SocketSingleton

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant