mirror of
https://github.com/optim-enterprises-bv/patroni.git
synced 2025-11-01 19:07:58 +00:00
- Simplify setup.py: remove unneeded features and get rid of deprecation warnings - Compatibility with Python 3.10: handle `threading.Event.isSet()` deprecation - Make sure setup.py could run without `six`: move Patroni class and main function to the `__main__.py`. The `__init__.py` will have only a few functions used by the Patroni class and from the setup.py
7 lines
96 B
Python
Executable File
7 lines
96 B
Python
Executable File
#!/usr/bin/env python
|
|
from patroni.__main__ import main
|
|
|
|
|
|
if __name__ == '__main__':
|
|
main()
|