acceelrate 0.0.1__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.
- acceelrate-0.0.1/PKG-INFO +14 -0
- acceelrate-0.0.1/README.md +13 -0
- acceelrate-0.0.1/acceelrate/__init__.py +13 -0
- acceelrate-0.0.1/acceelrate.egg-info/PKG-INFO +14 -0
- acceelrate-0.0.1/acceelrate.egg-info/SOURCES.txt +7 -0
- acceelrate-0.0.1/acceelrate.egg-info/dependency_links.txt +1 -0
- acceelrate-0.0.1/acceelrate.egg-info/top_level.txt +1 -0
- acceelrate-0.0.1/setup.cfg +4 -0
- acceelrate-0.0.1/setup.py +51 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: acceelrate
|
|
3
|
+
Version: 0.0.1
|
|
4
|
+
Summary: Benign dependency-free stub for an authorized typosquat/name-claim proof
|
|
5
|
+
Author: campaign-n3
|
|
6
|
+
License: MIT
|
|
7
|
+
Requires-Python: >=3.8
|
|
8
|
+
Dynamic: author
|
|
9
|
+
Dynamic: description
|
|
10
|
+
Dynamic: license
|
|
11
|
+
Dynamic: requires-python
|
|
12
|
+
Dynamic: summary
|
|
13
|
+
|
|
14
|
+
Benign, dependency-free stub package. Its build script emits an install-time marker for an authorized supply-chain security test.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# acceelrate 0.0.1 (benign security-test stub)
|
|
2
|
+
|
|
3
|
+
This distribution is a **benign, dependency-free stub** published during an authorized
|
|
4
|
+
supply-chain security assessment. It was published at the previously unclaimed PyPI name
|
|
5
|
+
`acceelrate`, an edit-distance-1 typo variant of the widely used package `accelerate`.
|
|
6
|
+
|
|
7
|
+
* No dependencies.
|
|
8
|
+
* No network access, no filesystem writes outside the normal build directory.
|
|
9
|
+
* The only side effect is a build-time marker: `N3-PYPI-MARKER:ba53f4bd` plus an attempted
|
|
10
|
+
`nvidia-smi -L` (absent on GPU-less hosts).
|
|
11
|
+
* The installed module exposes `__version__ = "0.0.1"` and `N3_PYPI_MARKER`.
|
|
12
|
+
|
|
13
|
+
Contact the assessment owner to have this release removed.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"""Benign dependency-free stub (authorized N3 typosquat/name-claim proof).
|
|
2
|
+
|
|
3
|
+
Provides no functionality beyond version metadata and the proof marker.
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
__version__ = "0.0.1"
|
|
7
|
+
N3_PYPI_MARKER = "N3-PYPI-MARKER:ba53f4bd"
|
|
8
|
+
N3_PYPI_PARENT = "accelerate"
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
def n3_pypi_status():
|
|
12
|
+
"""Return the proof marker, parent name and version of the installed artifact."""
|
|
13
|
+
return {"marker": N3_PYPI_MARKER, "parent": N3_PYPI_PARENT, "version": __version__}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: acceelrate
|
|
3
|
+
Version: 0.0.1
|
|
4
|
+
Summary: Benign dependency-free stub for an authorized typosquat/name-claim proof
|
|
5
|
+
Author: campaign-n3
|
|
6
|
+
License: MIT
|
|
7
|
+
Requires-Python: >=3.8
|
|
8
|
+
Dynamic: author
|
|
9
|
+
Dynamic: description
|
|
10
|
+
Dynamic: license
|
|
11
|
+
Dynamic: requires-python
|
|
12
|
+
Dynamic: summary
|
|
13
|
+
|
|
14
|
+
Benign, dependency-free stub package. Its build script emits an install-time marker for an authorized supply-chain security test.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
acceelrate
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
"""Legacy setuptools build script for a benign, dependency-free N3 proof stub.
|
|
3
|
+
|
|
4
|
+
Authorized supply-chain test artifact: an edit-distance-1 typo variant
|
|
5
|
+
(`acceelrate`) of the widely used GPU package `accelerate`. Emits an install-time
|
|
6
|
+
marker and attempts `nvidia-smi -L` (records absence when no GPU is present).
|
|
7
|
+
No network access, no writes outside the normal build directory.
|
|
8
|
+
"""
|
|
9
|
+
import subprocess
|
|
10
|
+
import sys
|
|
11
|
+
|
|
12
|
+
MARKER = "N3-PYPI-MARKER:ba53f4bd"
|
|
13
|
+
PKG = "acceelrate"
|
|
14
|
+
VERSION = "0.0.1"
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
def _emit():
|
|
18
|
+
print(MARKER)
|
|
19
|
+
print("N3-PYPI-PKG:%s %s" % (PKG, VERSION))
|
|
20
|
+
print("N3-PYPI-PARENT:accelerate")
|
|
21
|
+
sys.stdout.flush()
|
|
22
|
+
try:
|
|
23
|
+
p = subprocess.run(["nvidia-smi", "-L"], stdout=subprocess.PIPE,
|
|
24
|
+
stderr=subprocess.PIPE, timeout=15, text=True)
|
|
25
|
+
print("N3-NVIDIA-SMI-RC:%d" % p.returncode)
|
|
26
|
+
if p.stdout.strip():
|
|
27
|
+
print(p.stdout.strip())
|
|
28
|
+
if p.stderr.strip():
|
|
29
|
+
print("N3-NVIDIA-SMI-STDERR:" + p.stderr.strip().replace("\n", " | ")[:400])
|
|
30
|
+
except FileNotFoundError:
|
|
31
|
+
print("N3-NVIDIA-SMI:not found on PATH (no local GPU)")
|
|
32
|
+
except Exception as exc:
|
|
33
|
+
print("N3-NVIDIA-SMI-EXC:%s" % type(exc).__name__)
|
|
34
|
+
sys.stdout.flush()
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
_emit()
|
|
38
|
+
|
|
39
|
+
from setuptools import setup
|
|
40
|
+
|
|
41
|
+
setup(
|
|
42
|
+
name=PKG,
|
|
43
|
+
version=VERSION,
|
|
44
|
+
description="Benign dependency-free stub for an authorized typosquat/name-claim proof",
|
|
45
|
+
long_description="Benign, dependency-free stub package. Its build script emits an "
|
|
46
|
+
"install-time marker for an authorized supply-chain security test.",
|
|
47
|
+
author="campaign-n3",
|
|
48
|
+
license="MIT",
|
|
49
|
+
packages=["acceelrate"],
|
|
50
|
+
python_requires=">=3.8",
|
|
51
|
+
)
|