processtitle 0.2__tar.gz → 1.0__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 (41) hide show
  1. {processtitle-0.2/processtitle.egg-info → processtitle-1.0}/PKG-INFO +11 -6
  2. {processtitle-0.2 → processtitle-1.0}/README.md +9 -4
  3. {processtitle-0.2 → processtitle-1.0/processtitle.egg-info}/PKG-INFO +11 -6
  4. {processtitle-0.2 → processtitle-1.0}/pyproject.toml +1 -1
  5. {processtitle-0.2 → processtitle-1.0}/src/cpp/common.h +4 -0
  6. {processtitle-0.2 → processtitle-1.0}/src/processtitle/__init__.py +1 -1
  7. {processtitle-0.2 → processtitle-1.0}/Acknowledgments.md +0 -0
  8. {processtitle-0.2 → processtitle-1.0}/LICENSE +0 -0
  9. {processtitle-0.2 → processtitle-1.0}/MANIFEST.in +0 -0
  10. {processtitle-0.2 → processtitle-1.0}/processtitle.egg-info/SOURCES.txt +0 -0
  11. {processtitle-0.2 → processtitle-1.0}/processtitle.egg-info/dependency_links.txt +0 -0
  12. {processtitle-0.2 → processtitle-1.0}/processtitle.egg-info/top_level.txt +0 -0
  13. {processtitle-0.2 → processtitle-1.0}/setup.cfg +0 -0
  14. {processtitle-0.2 → processtitle-1.0}/setup.py +0 -0
  15. {processtitle-0.2 → processtitle-1.0}/src/cpp/bsd.h +0 -0
  16. {processtitle-0.2 → processtitle-1.0}/src/cpp/clobber.cpp +0 -0
  17. {processtitle-0.2 → processtitle-1.0}/src/cpp/clobber.h +0 -0
  18. {processtitle-0.2 → processtitle-1.0}/src/cpp/darwin.cpp +0 -0
  19. {processtitle-0.2 → processtitle-1.0}/src/cpp/darwin.h +0 -0
  20. {processtitle-0.2 → processtitle-1.0}/src/cpp/external/intrusive_shared_ptr/apple_cf_ptr.h +0 -0
  21. {processtitle-0.2 → processtitle-1.0}/src/cpp/external/intrusive_shared_ptr/common.h +0 -0
  22. {processtitle-0.2 → processtitle-1.0}/src/cpp/external/intrusive_shared_ptr/intrusive_shared_ptr.h +0 -0
  23. {processtitle-0.2 → processtitle-1.0}/src/cpp/external/intrusive_shared_ptr/python_ptr.h +0 -0
  24. {processtitle-0.2 → processtitle-1.0}/src/cpp/external/pylib/arguments.h +0 -0
  25. {processtitle-0.2 → processtitle-1.0}/src/cpp/external/pylib/errors.h +0 -0
  26. {processtitle-0.2 → processtitle-1.0}/src/cpp/external/pylib/locking.h +0 -0
  27. {processtitle-0.2 → processtitle-1.0}/src/cpp/external/pylib/marshalling.h +0 -0
  28. {processtitle-0.2 → processtitle-1.0}/src/cpp/external/pylib/method.h +0 -0
  29. {processtitle-0.2 → processtitle-1.0}/src/cpp/external/pylib/util.h +0 -0
  30. {processtitle-0.2 → processtitle-1.0}/src/cpp/linux.cpp +0 -0
  31. {processtitle-0.2 → processtitle-1.0}/src/cpp/linux.h +0 -0
  32. {processtitle-0.2 → processtitle-1.0}/src/cpp/logger.h +0 -0
  33. {processtitle-0.2 → processtitle-1.0}/src/cpp/main.cpp +0 -0
  34. {processtitle-0.2 → processtitle-1.0}/src/cpp/pch.h +0 -0
  35. {processtitle-0.2 → processtitle-1.0}/src/cpp/solaris.cpp +0 -0
  36. {processtitle-0.2 → processtitle-1.0}/src/cpp/solaris.h +0 -0
  37. {processtitle-0.2 → processtitle-1.0}/src/cpp/win.cpp +0 -0
  38. {processtitle-0.2 → processtitle-1.0}/src/cpp/win.h +0 -0
  39. {processtitle-0.2 → processtitle-1.0}/src/extension.cpp +0 -0
  40. {processtitle-0.2 → processtitle-1.0}/src/processtitle/_processtitle.pyi +0 -0
  41. {processtitle-0.2 → processtitle-1.0}/src/processtitle/py.typed +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: processtitle
3
- Version: 0.2
3
+ Version: 1.0
4
4
  Summary: Customize process "title" as reported by ps and similar tools
5
5
  Author-email: Eugene Gershnik <gershnik@hotmail.com>
6
6
  License-Expression: BSD-3-Clause
@@ -9,7 +9,7 @@ Project-URL: Documentation, https://github.com/gershnik/processtitle
9
9
  Project-URL: Issues, https://github.com/gershnik/processtitle/issues
10
10
  Project-URL: Changelog, https://github.com/gershnik/processtitle/blob/master/CHANGELOG.md
11
11
  Keywords: setproctitle,proctitle,process title,process name
12
- Classifier: Development Status :: 4 - Beta
12
+ Classifier: Development Status :: 5 - Production/Stable
13
13
  Classifier: Operating System :: POSIX :: Linux
14
14
  Classifier: Operating System :: MacOS :: MacOS X
15
15
  Classifier: Operating System :: Microsoft :: Windows
@@ -36,6 +36,12 @@ Dynamic: license-file
36
36
 
37
37
  # processtitle
38
38
 
39
+ [![License](https://img.shields.io/badge/license-BSD-brightgreen.svg)](https://opensource.org/licenses/BSD-3-Clause)
40
+ [![python](https://img.shields.io/badge/python->=3.10-blue.svg)](https://www.python.org/downloads/release/python-3100/)
41
+ [![pypi](https://img.shields.io/pypi/v/processtitle)](https://pypi.org/project/processtitle)
42
+ [![PyPI Downloads](https://static.pepy.tech/badge/processtitle)](https://pepy.tech/projects/processtitle)
43
+
44
+
39
45
  This Python extension module allows you to customize process "title" as reported by `ps`, `top`, Activity Monitor,
40
46
  Task Manager and similar tools.
41
47
 
@@ -77,7 +83,7 @@ on ancient Linux kernels, Windows XP etc. etc. If you are stuck with a very old
77
83
 
78
84
  ## Requirements
79
85
 
80
- * Python >= 3.10 capable of loading native extensions
86
+ * Python >= 3.10 capable of loading native extensions. In particular, CPython, PyPy and GraalPy are all supported.
81
87
  * If your platform doesn't have a binary wheel available, you will need:
82
88
  * A C++ compiler capable of compiling C++20 (GCC 10.2 or above and CLang 13 or above are known to work)
83
89
  * Python development libraries available (like `python3-dev` package in most Linux distributions)
@@ -170,12 +176,11 @@ In addition:
170
176
  ### Linux
171
177
 
172
178
  On Linux you will be able to see the process title in the output of `ps` or `top` commands, as well, as with any other
173
- tool that displays process info. Note that on some Linux variants (e.g. Alpine) the title might be prefixed or suffixed
174
- by the original process executable name. For example: `{python3} your title`.
179
+ tool that displays process info.
175
180
 
176
181
  To change the title, `processtitle` uses the following methods:
177
182
  * [PR_SET_MM](https://www.man7.org/linux/man-pages/man2/PR_SET_MM.2const.html) call.
178
- * [PR_SET_NAME](https://www.man7.org/linux/man-pages/man2/PR_SET_NAME.2const.html)
183
+ * [PR_SET_NAME](https://www.man7.org/linux/man-pages/man2/PR_SET_NAME.2const.html) call.
179
184
 
180
185
  `processtitle.set_to()` returns `True` if at least one of these methods succeeded.
181
186
 
@@ -1,5 +1,11 @@
1
1
  # processtitle
2
2
 
3
+ [![License](https://img.shields.io/badge/license-BSD-brightgreen.svg)](https://opensource.org/licenses/BSD-3-Clause)
4
+ [![python](https://img.shields.io/badge/python->=3.10-blue.svg)](https://www.python.org/downloads/release/python-3100/)
5
+ [![pypi](https://img.shields.io/pypi/v/processtitle)](https://pypi.org/project/processtitle)
6
+ [![PyPI Downloads](https://static.pepy.tech/badge/processtitle)](https://pepy.tech/projects/processtitle)
7
+
8
+
3
9
  This Python extension module allows you to customize process "title" as reported by `ps`, `top`, Activity Monitor,
4
10
  Task Manager and similar tools.
5
11
 
@@ -41,7 +47,7 @@ on ancient Linux kernels, Windows XP etc. etc. If you are stuck with a very old
41
47
 
42
48
  ## Requirements
43
49
 
44
- * Python >= 3.10 capable of loading native extensions
50
+ * Python >= 3.10 capable of loading native extensions. In particular, CPython, PyPy and GraalPy are all supported.
45
51
  * If your platform doesn't have a binary wheel available, you will need:
46
52
  * A C++ compiler capable of compiling C++20 (GCC 10.2 or above and CLang 13 or above are known to work)
47
53
  * Python development libraries available (like `python3-dev` package in most Linux distributions)
@@ -134,12 +140,11 @@ In addition:
134
140
  ### Linux
135
141
 
136
142
  On Linux you will be able to see the process title in the output of `ps` or `top` commands, as well, as with any other
137
- tool that displays process info. Note that on some Linux variants (e.g. Alpine) the title might be prefixed or suffixed
138
- by the original process executable name. For example: `{python3} your title`.
143
+ tool that displays process info.
139
144
 
140
145
  To change the title, `processtitle` uses the following methods:
141
146
  * [PR_SET_MM](https://www.man7.org/linux/man-pages/man2/PR_SET_MM.2const.html) call.
142
- * [PR_SET_NAME](https://www.man7.org/linux/man-pages/man2/PR_SET_NAME.2const.html)
147
+ * [PR_SET_NAME](https://www.man7.org/linux/man-pages/man2/PR_SET_NAME.2const.html) call.
143
148
 
144
149
  `processtitle.set_to()` returns `True` if at least one of these methods succeeded.
145
150
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: processtitle
3
- Version: 0.2
3
+ Version: 1.0
4
4
  Summary: Customize process "title" as reported by ps and similar tools
5
5
  Author-email: Eugene Gershnik <gershnik@hotmail.com>
6
6
  License-Expression: BSD-3-Clause
@@ -9,7 +9,7 @@ Project-URL: Documentation, https://github.com/gershnik/processtitle
9
9
  Project-URL: Issues, https://github.com/gershnik/processtitle/issues
10
10
  Project-URL: Changelog, https://github.com/gershnik/processtitle/blob/master/CHANGELOG.md
11
11
  Keywords: setproctitle,proctitle,process title,process name
12
- Classifier: Development Status :: 4 - Beta
12
+ Classifier: Development Status :: 5 - Production/Stable
13
13
  Classifier: Operating System :: POSIX :: Linux
14
14
  Classifier: Operating System :: MacOS :: MacOS X
15
15
  Classifier: Operating System :: Microsoft :: Windows
@@ -36,6 +36,12 @@ Dynamic: license-file
36
36
 
37
37
  # processtitle
38
38
 
39
+ [![License](https://img.shields.io/badge/license-BSD-brightgreen.svg)](https://opensource.org/licenses/BSD-3-Clause)
40
+ [![python](https://img.shields.io/badge/python->=3.10-blue.svg)](https://www.python.org/downloads/release/python-3100/)
41
+ [![pypi](https://img.shields.io/pypi/v/processtitle)](https://pypi.org/project/processtitle)
42
+ [![PyPI Downloads](https://static.pepy.tech/badge/processtitle)](https://pepy.tech/projects/processtitle)
43
+
44
+
39
45
  This Python extension module allows you to customize process "title" as reported by `ps`, `top`, Activity Monitor,
40
46
  Task Manager and similar tools.
41
47
 
@@ -77,7 +83,7 @@ on ancient Linux kernels, Windows XP etc. etc. If you are stuck with a very old
77
83
 
78
84
  ## Requirements
79
85
 
80
- * Python >= 3.10 capable of loading native extensions
86
+ * Python >= 3.10 capable of loading native extensions. In particular, CPython, PyPy and GraalPy are all supported.
81
87
  * If your platform doesn't have a binary wheel available, you will need:
82
88
  * A C++ compiler capable of compiling C++20 (GCC 10.2 or above and CLang 13 or above are known to work)
83
89
  * Python development libraries available (like `python3-dev` package in most Linux distributions)
@@ -170,12 +176,11 @@ In addition:
170
176
  ### Linux
171
177
 
172
178
  On Linux you will be able to see the process title in the output of `ps` or `top` commands, as well, as with any other
173
- tool that displays process info. Note that on some Linux variants (e.g. Alpine) the title might be prefixed or suffixed
174
- by the original process executable name. For example: `{python3} your title`.
179
+ tool that displays process info.
175
180
 
176
181
  To change the title, `processtitle` uses the following methods:
177
182
  * [PR_SET_MM](https://www.man7.org/linux/man-pages/man2/PR_SET_MM.2const.html) call.
178
- * [PR_SET_NAME](https://www.man7.org/linux/man-pages/man2/PR_SET_NAME.2const.html)
183
+ * [PR_SET_NAME](https://www.man7.org/linux/man-pages/man2/PR_SET_NAME.2const.html) call.
179
184
 
180
185
  `processtitle.set_to()` returns `True` if at least one of these methods succeeded.
181
186
 
@@ -33,7 +33,7 @@ keywords = [
33
33
  'setproctitle', 'proctitle', 'process title', 'process name'
34
34
  ]
35
35
  classifiers = [
36
- "Development Status :: 4 - Beta",
36
+ "Development Status :: 5 - Production/Stable",
37
37
 
38
38
  "Operating System :: POSIX :: Linux",
39
39
  "Operating System :: MacOS :: MacOS X",
@@ -27,6 +27,8 @@ struct Overloads : Ts... { using Ts::operator()...; };
27
27
  template<class T>
28
28
  constexpr bool dependentFalse = false;
29
29
 
30
+ #ifndef _WIN32
31
+
30
32
  class FileDescriptor {
31
33
  public:
32
34
  FileDescriptor() noexcept = default;
@@ -114,3 +116,5 @@ inline auto readFile(const FileDescriptor & desc, void * buf, io_size_t nbyte) -
114
116
  }
115
117
 
116
118
  #endif
119
+
120
+ #endif
@@ -6,7 +6,7 @@
6
6
  import os
7
7
  import logging
8
8
 
9
- __version__ = '0.2'
9
+ __version__ = '1.0'
10
10
 
11
11
  from ._processtitle import (
12
12
  prepare,
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes