setproctitle 1.3.3__tar.gz → 1.3.5__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. {setproctitle-1.3.3 → setproctitle-1.3.5}/HISTORY.rst +21 -0
  2. setproctitle-1.3.5/PKG-INFO +373 -0
  3. {setproctitle-1.3.3 → setproctitle-1.3.5}/pkg/setproctitle/__init__.py +1 -1
  4. setproctitle-1.3.5/setproctitle.egg-info/PKG-INFO +373 -0
  5. {setproctitle-1.3.3 → setproctitle-1.3.5}/setup.py +2 -2
  6. {setproctitle-1.3.3 → setproctitle-1.3.5}/src/c.h +2 -13
  7. {setproctitle-1.3.3 → setproctitle-1.3.5}/src/darwin_set_process_name.c +16 -1
  8. setproctitle-1.3.3/PKG-INFO +0 -352
  9. setproctitle-1.3.3/setproctitle.egg-info/PKG-INFO +0 -352
  10. {setproctitle-1.3.3 → setproctitle-1.3.5}/COPYRIGHT +0 -0
  11. {setproctitle-1.3.3 → setproctitle-1.3.5}/MANIFEST.in +0 -0
  12. {setproctitle-1.3.3 → setproctitle-1.3.5}/README.rst +0 -0
  13. {setproctitle-1.3.3 → setproctitle-1.3.5}/pkg/setproctitle/py.typed +0 -0
  14. {setproctitle-1.3.3 → setproctitle-1.3.5}/pyproject.toml +0 -0
  15. {setproctitle-1.3.3 → setproctitle-1.3.5}/setproctitle.egg-info/SOURCES.txt +0 -0
  16. {setproctitle-1.3.3 → setproctitle-1.3.5}/setproctitle.egg-info/dependency_links.txt +0 -0
  17. {setproctitle-1.3.3 → setproctitle-1.3.5}/setproctitle.egg-info/not-zip-safe +0 -0
  18. {setproctitle-1.3.3 → setproctitle-1.3.5}/setproctitle.egg-info/requires.txt +0 -0
  19. {setproctitle-1.3.3 → setproctitle-1.3.5}/setproctitle.egg-info/top_level.txt +0 -0
  20. {setproctitle-1.3.3 → setproctitle-1.3.5}/setup.cfg +0 -0
  21. {setproctitle-1.3.3 → setproctitle-1.3.5}/src/darwin_set_process_name.h +0 -0
  22. {setproctitle-1.3.3 → setproctitle-1.3.5}/src/setproctitle.c +0 -0
  23. {setproctitle-1.3.3 → setproctitle-1.3.5}/src/spt.h +0 -0
  24. {setproctitle-1.3.3 → setproctitle-1.3.5}/src/spt_config.h +0 -0
  25. {setproctitle-1.3.3 → setproctitle-1.3.5}/src/spt_debug.c +0 -0
  26. {setproctitle-1.3.3 → setproctitle-1.3.5}/src/spt_python.h +0 -0
  27. {setproctitle-1.3.3 → setproctitle-1.3.5}/src/spt_setup.c +0 -0
  28. {setproctitle-1.3.3 → setproctitle-1.3.5}/src/spt_setup.h +0 -0
  29. {setproctitle-1.3.3 → setproctitle-1.3.5}/src/spt_status.c +0 -0
  30. {setproctitle-1.3.3 → setproctitle-1.3.5}/src/spt_status.h +0 -0
  31. {setproctitle-1.3.3 → setproctitle-1.3.5}/src/spt_strlcpy.c +0 -0
  32. {setproctitle-1.3.3 → setproctitle-1.3.5}/tests/__init__.py +0 -0
  33. {setproctitle-1.3.3 → setproctitle-1.3.5}/tests/conftest.py +0 -0
  34. {setproctitle-1.3.3 → setproctitle-1.3.5}/tests/module_test.py +0 -0
  35. {setproctitle-1.3.3 → setproctitle-1.3.5}/tests/pyrun.c +0 -0
  36. {setproctitle-1.3.3 → setproctitle-1.3.5}/tests/setproctitle_test.py +0 -0
  37. {setproctitle-1.3.3 → setproctitle-1.3.5}/tests/setthreadtitle_test.py +0 -0
  38. {setproctitle-1.3.3 → setproctitle-1.3.5}/tests/test_win32.py +0 -0
@@ -1,6 +1,27 @@
1
1
  Releases history
2
2
  ----------------
3
3
 
4
+ Version 1.3.5 (unreleased)
5
+ --------------------------
6
+
7
+ - Fix bouncing Dock icon on macOS (issue #143).
8
+ - Fix building on C23 compilers (issue #145).
9
+
10
+
11
+ Version 1.3.4
12
+ -------------
13
+
14
+ - Add support for Python 3.13 (issue #139).
15
+ - Drop support for Python 3.7.
16
+
17
+
18
+ Version 1.3.3
19
+ -------------
20
+
21
+ - Add support for Python 3.12.
22
+ - Fix package metadata to include Python 3.11, 3.12.
23
+
24
+
4
25
  Version 1.3.2
5
26
  -------------
6
27
 
@@ -0,0 +1,373 @@
1
+ Metadata-Version: 2.1
2
+ Name: setproctitle
3
+ Version: 1.3.5
4
+ Summary: A Python module to customize the process title
5
+ Home-page: https://github.com/dvarrazzo/py-setproctitle
6
+ Download-URL: http://pypi.python.org/pypi/setproctitle/
7
+ Author: Daniele Varrazzo
8
+ Author-email: daniele.varrazzo@gmail.com
9
+ License: BSD-3-Clause
10
+ Platform: GNU/Linux
11
+ Platform: BSD
12
+ Platform: MacOS X
13
+ Platform: Windows
14
+ Classifier: Development Status :: 5 - Production/Stable
15
+ Classifier: Intended Audience :: Developers
16
+ Classifier: License :: OSI Approved :: BSD License
17
+ Classifier: Programming Language :: C
18
+ Classifier: Programming Language :: Python :: 3
19
+ Classifier: Programming Language :: Python :: 3.8
20
+ Classifier: Programming Language :: Python :: 3.9
21
+ Classifier: Programming Language :: Python :: 3.10
22
+ Classifier: Programming Language :: Python :: 3.11
23
+ Classifier: Programming Language :: Python :: 3.12
24
+ Classifier: Programming Language :: Python :: 3.13
25
+ Classifier: Operating System :: POSIX :: Linux
26
+ Classifier: Operating System :: POSIX :: BSD
27
+ Classifier: Operating System :: MacOS :: MacOS X
28
+ Classifier: Operating System :: Microsoft :: Windows
29
+ Classifier: Topic :: Software Development
30
+ Requires-Python: >=3.8
31
+ Description-Content-Type: text/x-rst
32
+ Provides-Extra: test
33
+
34
+ A Python module to customize the process title
35
+ ==============================================
36
+
37
+ .. image:: https://github.com/dvarrazzo/py-setproctitle/workflows/Tests/badge.svg
38
+ :target: https://github.com/dvarrazzo/py-setproctitle/actions?query=workflow%3ATests
39
+ :alt: Tests
40
+
41
+ :author: Daniele Varrazzo
42
+
43
+ The ``setproctitle`` module allows a process to change its title (as displayed
44
+ by system tools such as ``ps``, ``top`` or MacOS Activity Monitor).
45
+
46
+ Changing the title is mostly useful in multi-process systems, for example
47
+ when a master process is forked: changing the children's title allows to
48
+ identify the task each process is busy with. The technique is used by
49
+ PostgreSQL_ and the `OpenSSH Server`_ for example.
50
+
51
+ The procedure is hardly portable across different systems. PostgreSQL provides
52
+ a good `multi-platform implementation`__: this package was born as a wrapper
53
+ around PostgreSQL code.
54
+
55
+ - `Homepage <https://github.com/dvarrazzo/py-setproctitle>`__
56
+ - `Download <http://pypi.python.org/pypi/setproctitle/>`__
57
+ - `Bug tracker <https://github.com/dvarrazzo/py-setproctitle/issues>`__
58
+
59
+
60
+ .. _PostgreSQL: http://www.postgresql.org
61
+ .. _OpenSSH Server: http://www.openssh.com/
62
+ .. __: http://doxygen.postgresql.org/ps__status_8c_source.html
63
+
64
+
65
+ Installation
66
+ ------------
67
+
68
+ ``setproctitle`` is a C extension: in order to build it you will need a C
69
+ compiler and the Python development support (the ``python-dev`` or
70
+ ``python3-dev`` package in most Linux distributions). No further external
71
+ dependencies are required.
72
+
73
+ You can use ``pip`` to install the module::
74
+
75
+ pip install setproctitle
76
+
77
+ You can use ``pip -t`` or ``virtualenv`` for local installations, ``sudo pip``
78
+ for a system-wide one... the usual stuff. Read pip_ or virtualenv_ docs for
79
+ all the details.
80
+
81
+ .. _pip: https://pip.readthedocs.org/
82
+ .. _virtualenv: https://virtualenv.readthedocs.org/
83
+
84
+
85
+ Usage
86
+ -----
87
+
88
+ .. note::
89
+ You should import and use the module (even just calling ``getproctitle()``)
90
+ pretty early in your program lifetime: code writing env vars `may
91
+ interfere`__ with the module initialisation.
92
+
93
+ .. __: https://github.com/dvarrazzo/py-setproctitle/issues/42
94
+
95
+
96
+ The ``setproctitle`` module exports the following functions:
97
+
98
+ ``setproctitle(title)``
99
+ Set *title* as the title for the current process.
100
+
101
+ ``getproctitle()``
102
+ Return the current process title.
103
+
104
+ The process title is usually visible in files such as ``/proc/PID/cmdline``,
105
+ ``/proc/PID/status``, ``/proc/PID/comm``, depending on the operating system
106
+ and kernel version. These information are used by user-space tools such as
107
+ ``ps`` and ``top``.
108
+
109
+
110
+ ``setthreadtitle(title)``
111
+ Set *title* as the title for the current thread.
112
+
113
+ ``getthreadtitle()``
114
+ Get the current thread title.
115
+
116
+ The thread title is exposed by some operating systems as the file
117
+ ``/proc/PID/task/TID/comm``, which is used by certain tools such as ``htop``.
118
+
119
+
120
+ Environment variables
121
+ ~~~~~~~~~~~~~~~~~~~~~
122
+
123
+ A few environment variables can be used to customize the module behavior:
124
+
125
+ ``SPT_NOENV``
126
+ Avoid clobbering ``/proc/PID/environ``.
127
+
128
+ On many platforms, setting the process title will clobber the
129
+ ``environ`` memory area. ``os.environ`` will work as expected from within
130
+ the Python process, but the content of the file ``/proc/PID/environ`` will
131
+ be overwritten. If you require this file not to be broken you can set the
132
+ ``SPT_NOENV`` environment variable to any non-empty value: in this case
133
+ the maximum length for the title will be limited to the length of the
134
+ command line.
135
+
136
+ ``SPT_DEBUG``
137
+ Print debug information on ``stderr``.
138
+
139
+ If the module doesn't work as expected you can set this variable to a
140
+ non-empty value to generate information useful for debugging. Note that
141
+ the most useful information is printed when the module is imported, not
142
+ when the functions are called.
143
+
144
+
145
+ Module status
146
+ -------------
147
+
148
+ The module can be currently compiled and effectively used on the following
149
+ platforms:
150
+
151
+ - GNU/Linux
152
+ - BSD
153
+ - MacOS X
154
+ - Windows
155
+
156
+ Note that on Windows there is no way to change the process string:
157
+ what the module does is to create a *Named Object* whose value can be read
158
+ using a tool such as `Process Explorer`_ (contribution of a more useful tool
159
+ to be used together with ``setproctitle`` would be well accepted).
160
+
161
+ The module can probably work on HP-UX, but I haven't found any to test with.
162
+ It is unlikely that it can work on Solaris instead.
163
+
164
+ .. _Process Explorer: http://technet.microsoft.com/en-us/sysinternals/bb896653.aspx
165
+
166
+ Releases history
167
+ ----------------
168
+
169
+ Version 1.3.5 (unreleased)
170
+ --------------------------
171
+
172
+ - Fix bouncing Dock icon on macOS (issue #143).
173
+ - Fix building on C23 compilers (issue #145).
174
+
175
+
176
+ Version 1.3.4
177
+ -------------
178
+
179
+ - Add support for Python 3.13 (issue #139).
180
+ - Drop support for Python 3.7.
181
+
182
+
183
+ Version 1.3.3
184
+ -------------
185
+
186
+ - Add support for Python 3.12.
187
+ - Fix package metadata to include Python 3.11, 3.12.
188
+
189
+
190
+ Version 1.3.2
191
+ -------------
192
+
193
+ - Restore import-time initialization of macOS to avoid crash on thread+fork
194
+ (issue #113).
195
+
196
+
197
+ Version 1.3.1
198
+ -------------
199
+
200
+ - Fixed segfault on macOS 12.5 in forked processes (issue #111).
201
+ Note that, as a workaround, Activity Monitor will show the title of the
202
+ parent.
203
+
204
+
205
+ Version 1.3.0
206
+ -------------
207
+
208
+ - Added fallback no-op implementation if building the extension fails.
209
+ - Added support for displaying title as the process name in MacOS Activity
210
+ Monitor (issue #10).
211
+ - Fixed "Symbol not found: _Py_GetArgcArgv" error when using Xcode provided
212
+ Python (issues #82, #103).
213
+ - Fixed FreeBSD support, broken in 1.2 (issue #94).
214
+ - Added package type annotations (issue #101).
215
+ - Dropped support for Python 3.6.
216
+
217
+
218
+ Version 1.2.3
219
+ -------------
220
+
221
+ - Added Python 3.10 packages (issue #102).
222
+ - Added Wheel packages for macOS (issue #96).
223
+ - Package build moved to cibuildwheel, other wheels provided (issue #47).
224
+
225
+
226
+ Version 1.2.2
227
+ -------------
228
+
229
+ - Fixed Windows build (issues #89, #90).
230
+ - Added wheel packages for Windows (issues #47, #90).
231
+ - Added wheel packages for aarch64 (issue #95).
232
+
233
+
234
+ Version 1.2.1
235
+ -------------
236
+
237
+ - Fixed segfault after ``os.environ.clear()`` (issue #88).
238
+
239
+
240
+ Version 1.2
241
+ ~~~~~~~~~~~
242
+
243
+ - added ``getthreadtitle()`` and ``setthreadtitle()``.
244
+ - Initialisation of the module moved to the first usage: importing the module
245
+ doesn't cause side effects.
246
+ - Manage much longer command lines (issue #52)
247
+ - Improved build on BSD, dropped ancient versions (issue #67).
248
+ - Fixed build for Python 3.8 (issues #66, #72)
249
+ - Added support for Python 3.9
250
+ - Dropped support for Python < 3.6
251
+
252
+
253
+ Version 1.1.10
254
+ ~~~~~~~~~~~~~~
255
+
256
+ - Fixed building with certain ``prctl.h`` implementations (issue #44).
257
+ - Use ``setuptools`` if available (issue #48).
258
+
259
+
260
+ Version 1.1.9
261
+ ~~~~~~~~~~~~~
262
+
263
+ - Fixed build on VC (issues #20, #33).
264
+ - Added ``MANIFEST.in`` to the source distribution to help with RPM building
265
+ (issue #30).
266
+
267
+
268
+ Version 1.1.8
269
+ ~~~~~~~~~~~~~
270
+
271
+ - Added support for Python "diehard" 2.4 (pull request #3).
272
+ - Fixed build on Mac OS X 10.9 Maverick (issue #27).
273
+
274
+
275
+ Version 1.1.7
276
+ ~~~~~~~~~~~~~
277
+
278
+ - Added PyPy support, courtesy of Ozan Turksever - http://www.logsign.net
279
+ (pull request #2).
280
+
281
+
282
+ Version 1.1.6
283
+ ~~~~~~~~~~~~~
284
+
285
+ - The module can be compiled again on Windows (issue #21).
286
+
287
+
288
+ Version 1.1.5
289
+ ~~~~~~~~~~~~~
290
+
291
+ - No module bug, but a packaging issue: files ``README`` and ``HISTORY``
292
+ added back into the distribution.
293
+
294
+
295
+ Version 1.1.4
296
+ ~~~~~~~~~~~~~
297
+
298
+ - The module works correctly in embedded Python.
299
+ - ``setproctitle()`` accepts a keyword argument.
300
+ - Debug output support always compiled in: the variable ``SPT_DEBUG`` can be
301
+ used to emit debug log.
302
+
303
+
304
+ Version 1.1.3
305
+ ~~~~~~~~~~~~~
306
+
307
+ - Don't clobber environ if the variable ``SPT_NOENV`` is set (issue #16).
308
+
309
+
310
+ Version 1.1.2
311
+ ~~~~~~~~~~~~~
312
+
313
+ - Find the setproctitle include file on OpenBSD (issue #11).
314
+ - Skip test with unicode if the file system encoding wouldn't make it pass
315
+ (issue #13).
316
+
317
+
318
+ Version 1.1.1
319
+ ~~~~~~~~~~~~~
320
+
321
+ - Fixed segfault when the module is imported under mod_wsgi (issue #9).
322
+
323
+
324
+ Version 1.1
325
+ ~~~~~~~~~~~
326
+
327
+ - The module works correctly with Python 3.
328
+
329
+
330
+ Version 1.0.1
331
+ ~~~~~~~~~~~~~
332
+
333
+ - ``setproctitle()`` works even when Python messes up with argv, e.g. when run
334
+ with the -m option (issue #8).
335
+
336
+
337
+ Version 1.0
338
+ ~~~~~~~~~~~
339
+
340
+ No major change since the previous version. The module has been heavily used
341
+ in production environment without any problem reported, so it's time to declare
342
+ it stable.
343
+
344
+
345
+ Version 0.4
346
+ ~~~~~~~~~~~
347
+
348
+ - Module works on BSD (tested on FreeBSD 7.2).
349
+
350
+ - Module works on Windows. Many thanks to `Develer`_ for providing a neat `GCC
351
+ package for Windows with Python integration`__ that made the Windows porting
352
+ painless.
353
+
354
+ .. _Develer: http://www.develer.com/
355
+ .. __: http://www.develer.com/oss/GccWinBinaries
356
+
357
+
358
+ Version 0.3
359
+ ~~~~~~~~~~~
360
+
361
+ - Module works on Mac OS X 10.2. Reported working on OS X 10.6 too.
362
+
363
+
364
+ Version 0.2
365
+ ~~~~~~~~~~~
366
+
367
+ - Added ``prctl()`` call on Linux >= 2.6.9 to update ``/proc/self/status``.
368
+
369
+
370
+ Version 0.1
371
+ ~~~~~~~~~~~
372
+
373
+ - Initial public release.
@@ -6,7 +6,7 @@ import logging
6
6
 
7
7
  logger = logging.getLogger("setproctitle")
8
8
 
9
- __version__ = "1.3.3"
9
+ __version__ = "1.3.5"
10
10
 
11
11
  __all__ = [
12
12
  "setproctitle",