From 50085d40062afb81d29cbc1bb343373bca33a876 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Ma=C5=9Blanka?= <pmaslanka@smok.co> Date: Fri, 24 Sep 2021 15:13:48 +0200 Subject: [PATCH] replaced python-prctl with setproctitle, v1.2.15 --- CHANGELOG.md | 3 +++ coolamqp/__init__.py | 2 +- coolamqp/utils.py | 2 +- docs/tutorial.rst | 4 ++-- setup.py | 2 +- 5 files changed, 8 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 82ce6eb..4ac6044 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,3 +3,6 @@ on GitHub. This file serves to only note what changes have been made so far, between releases. # v1.2.15 + +* replaced `python-prctl` with `setproctitle` thanks to the latter + having less fascist license (BSD vs GNU GPL v3) diff --git a/coolamqp/__init__.py b/coolamqp/__init__.py index a66f470..7311807 100644 --- a/coolamqp/__init__.py +++ b/coolamqp/__init__.py @@ -1 +1 @@ -__version__ = '1.2.15a1' +__version__ = '1.2.15' diff --git a/coolamqp/utils.py b/coolamqp/utils.py index 976207a..9e71dae 100644 --- a/coolamqp/utils.py +++ b/coolamqp/utils.py @@ -10,7 +10,7 @@ except IMPORT_ERRORS: from monotonic import monotonic try: - from prctl import set_name as prctl_set_name + from setproctitle import setproctitle as prctl_set_name except IMPORT_ERRORS: def prctl_set_name(name): pass diff --git a/docs/tutorial.rst b/docs/tutorial.rst index 7ca13d8..b3226f8 100644 --- a/docs/tutorial.rst +++ b/docs/tutorial.rst @@ -31,10 +31,10 @@ accepts a list of nodes: *wait=True* will block until connection is completed. After this, you can use other methods. -*name* is optional. If you specify it, and have prctl_ installed, the thread will +*name* is optional. If you specify it, and have setproctitle_ installed, the thread will receive a provided label, postfixed by **AMQP listener thread**. -.. _prctl: https://pypi.org/project/python-prctl/ +.. _setproctitle: https://pypi.org/project/setproctitle/ .. autoclass:: coolamqp.clustering.Cluster :members: diff --git a/setup.py b/setup.py index 0e99fad..7557db2 100644 --- a/setup.py +++ b/setup.py @@ -14,7 +14,7 @@ setup(keywords=['amqp', 'rabbitmq', 'client', 'network', 'ha', 'high availabilit python_requires='!=2.7.*,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*', extras_require={ ':python_version == "2.7"': ['futures', 'typing', 'monotonic'], - 'prctl': ['prctl'], + 'setproctitle': ['setproctitle'], 'opentracing': ['opentracing'], 'gevent': ['gevent'] } -- GitLab