libpython-linkcheck-autoenable 1.0.0rc1__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.
@@ -0,0 +1,3 @@
1
+ # Build outputs of `python -m build autoenable` (hatchling also ships this file in the sdist).
2
+ /dist/
3
+ /build/
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Itamar Oren
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,57 @@
1
+ Metadata-Version: 2.5
2
+ Name: libpython-linkcheck-autoenable
3
+ Version: 1.0.0rc1
4
+ Summary: Enable libpython-linkcheck automatically at interpreter startup
5
+ Project-URL: Homepage, https://github.com/itamaro/libpython-linkcheck
6
+ Project-URL: Source, https://github.com/itamaro/libpython-linkcheck/tree/main/autoenable
7
+ Project-URL: Issues, https://github.com/itamaro/libpython-linkcheck/issues
8
+ Author: Itamar Oren
9
+ License-Expression: MIT
10
+ License-File: LICENSE
11
+ Keywords: audit-hook,dt_needed,elf,extension,libpython,linker
12
+ Classifier: Development Status :: 4 - Beta
13
+ Classifier: Intended Audience :: Developers
14
+ Classifier: Operating System :: POSIX :: Linux
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Programming Language :: Python :: 3 :: Only
17
+ Classifier: Programming Language :: Python :: Implementation :: CPython
18
+ Classifier: Topic :: Software Development :: Build Tools
19
+ Classifier: Topic :: Software Development :: Quality Assurance
20
+ Requires-Python: >=3.12
21
+ Requires-Dist: libpython-linkcheck==1.0.0rc1
22
+ Description-Content-Type: text/markdown
23
+
24
+ # libpython-linkcheck-autoenable
25
+
26
+ Opt-in companion of
27
+ [libpython-linkcheck](https://pypi.org/project/libpython-linkcheck/), which
28
+ warns when an imported Python extension module links directly to libpython.
29
+ Installing it enables the check in every interpreter that processes the
30
+ `site-packages` directory it is installed in: at startup,
31
+ `libpython_linkcheck.enable()` runs before `sitecustomize` and any user code.
32
+
33
+ ```sh
34
+ pip install libpython-linkcheck-autoenable
35
+ ```
36
+
37
+ It depends on the exact matching version of `libpython-linkcheck`, released
38
+ together with it, so pip installs that too. Installing `libpython-linkcheck`
39
+ alone never activates anything; to stop activating it, uninstall only this
40
+ companion (`pip uninstall libpython-linkcheck-autoenable`).
41
+
42
+ It installs two files at the root of `site-packages`:
43
+
44
+ - `libpython_linkcheck_autoenable.pth`, whose `import` line runs
45
+ `libpython_linkcheck._autoenable()` on Python 3.12–3.14;
46
+ - `libpython_linkcheck_autoenable.start`, a [PEP 829](https://peps.python.org/pep-0829/)
47
+ entry point (`libpython_linkcheck:_autoenable`) for Python 3.15 and later.
48
+ Its presence disables the `.pth` file's import line, so it runs once.
49
+
50
+ `_autoenable()` is `enable()`, except that a dropped
51
+ `-W error::libpython_linkcheck.LibpythonLinkWarning` keeps the precedence of
52
+ its position among the `-W` options (see "Controlling the warning" in the
53
+ main README), as long as no `.pth` or `.start` file processed before it
54
+ changed the warning filters.
55
+
56
+ It does nothing under `-S` (no `site`), and it cannot inspect extension
57
+ modules imported by `.pth` files that are processed before it.
@@ -0,0 +1,34 @@
1
+ # libpython-linkcheck-autoenable
2
+
3
+ Opt-in companion of
4
+ [libpython-linkcheck](https://pypi.org/project/libpython-linkcheck/), which
5
+ warns when an imported Python extension module links directly to libpython.
6
+ Installing it enables the check in every interpreter that processes the
7
+ `site-packages` directory it is installed in: at startup,
8
+ `libpython_linkcheck.enable()` runs before `sitecustomize` and any user code.
9
+
10
+ ```sh
11
+ pip install libpython-linkcheck-autoenable
12
+ ```
13
+
14
+ It depends on the exact matching version of `libpython-linkcheck`, released
15
+ together with it, so pip installs that too. Installing `libpython-linkcheck`
16
+ alone never activates anything; to stop activating it, uninstall only this
17
+ companion (`pip uninstall libpython-linkcheck-autoenable`).
18
+
19
+ It installs two files at the root of `site-packages`:
20
+
21
+ - `libpython_linkcheck_autoenable.pth`, whose `import` line runs
22
+ `libpython_linkcheck._autoenable()` on Python 3.12–3.14;
23
+ - `libpython_linkcheck_autoenable.start`, a [PEP 829](https://peps.python.org/pep-0829/)
24
+ entry point (`libpython_linkcheck:_autoenable`) for Python 3.15 and later.
25
+ Its presence disables the `.pth` file's import line, so it runs once.
26
+
27
+ `_autoenable()` is `enable()`, except that a dropped
28
+ `-W error::libpython_linkcheck.LibpythonLinkWarning` keeps the precedence of
29
+ its position among the `-W` options (see "Controlling the warning" in the
30
+ main README), as long as no `.pth` or `.start` file processed before it
31
+ changed the warning filters.
32
+
33
+ It does nothing under `-S` (no `site`), and it cannot inspect extension
34
+ modules imported by `.pth` files that are processed before it.
@@ -0,0 +1 @@
1
+ import libpython_linkcheck; libpython_linkcheck._autoenable()
@@ -0,0 +1,4 @@
1
+ # PEP 829 (Python 3.15+): run at interpreter startup, after every .pth path
2
+ # entry is on sys.path. Its presence also disables the import line of the
3
+ # matching libpython_linkcheck_autoenable.pth, which serves Python 3.12-3.14.
4
+ libpython_linkcheck:_autoenable
@@ -0,0 +1,55 @@
1
+ # Opt-in automatic activation for libpython-linkcheck.
2
+ #
3
+ # Installing this distribution makes every interpreter that processes its
4
+ # site-packages directory (venvs included; not -S) call
5
+ # libpython_linkcheck._autoenable() (enable(), see README.md) at startup. It
6
+ # contains only two startup files at the root of site-packages; installing
7
+ # libpython-linkcheck by itself never activates anything.
8
+ #
9
+ # Its version, and its exact dependency on libpython-linkcheck, must equal
10
+ # libpython-linkcheck's __version__ (checked by ci/check_autoenable.py).
11
+ [build-system]
12
+ requires = ["hatchling==1.33.0"]
13
+ build-backend = "hatchling.build"
14
+
15
+ [project]
16
+ name = "libpython-linkcheck-autoenable"
17
+ version = "1.0.0rc1"
18
+ description = "Enable libpython-linkcheck automatically at interpreter startup"
19
+ readme = "README.md"
20
+ license = "MIT"
21
+ license-files = ["LICENSE"]
22
+ requires-python = ">=3.12"
23
+ authors = [{ name = "Itamar Oren" }]
24
+ keywords = ["libpython", "elf", "dt_needed", "extension", "audit-hook", "linker"]
25
+ classifiers = [
26
+ "Development Status :: 4 - Beta",
27
+ "Intended Audience :: Developers",
28
+ "Operating System :: POSIX :: Linux",
29
+ "Programming Language :: Python :: 3",
30
+ "Programming Language :: Python :: 3 :: Only",
31
+ "Programming Language :: Python :: Implementation :: CPython",
32
+ "Topic :: Software Development :: Build Tools",
33
+ "Topic :: Software Development :: Quality Assurance",
34
+ ]
35
+ dependencies = ["libpython-linkcheck==1.0.0rc1"]
36
+
37
+ [project.urls]
38
+ Homepage = "https://github.com/itamaro/libpython-linkcheck"
39
+ Source = "https://github.com/itamaro/libpython-linkcheck/tree/main/autoenable"
40
+ Issues = "https://github.com/itamaro/libpython-linkcheck/issues"
41
+
42
+ [tool.hatch.build.targets.sdist]
43
+ only-include = [
44
+ "libpython_linkcheck_autoenable.pth",
45
+ "libpython_linkcheck_autoenable.start",
46
+ "README.md",
47
+ "LICENSE",
48
+ ]
49
+
50
+ [tool.hatch.build.targets.wheel]
51
+ bypass-selection = true
52
+
53
+ [tool.hatch.build.targets.wheel.force-include]
54
+ "libpython_linkcheck_autoenable.pth" = "libpython_linkcheck_autoenable.pth"
55
+ "libpython_linkcheck_autoenable.start" = "libpython_linkcheck_autoenable.start"