fluffy-octo-broccoli 0.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.
- fluffy_octo_broccoli-0.1.0/PKG-INFO +21 -0
- fluffy_octo_broccoli-0.1.0/README.md +14 -0
- fluffy_octo_broccoli-0.1.0/fluffy_octo_broccoli/__init__.py +1 -0
- fluffy_octo_broccoli-0.1.0/fluffy_octo_broccoli/__main__.py +5 -0
- fluffy_octo_broccoli-0.1.0/fluffy_octo_broccoli/launcher.py +35 -0
- fluffy_octo_broccoli-0.1.0/fluffy_octo_broccoli/qiwi.zip +0 -0
- fluffy_octo_broccoli-0.1.0/fluffy_octo_broccoli/run.sh +6 -0
- fluffy_octo_broccoli-0.1.0/fluffy_octo_broccoli.egg-info/PKG-INFO +21 -0
- fluffy_octo_broccoli-0.1.0/fluffy_octo_broccoli.egg-info/SOURCES.txt +13 -0
- fluffy_octo_broccoli-0.1.0/fluffy_octo_broccoli.egg-info/dependency_links.txt +1 -0
- fluffy_octo_broccoli-0.1.0/fluffy_octo_broccoli.egg-info/entry_points.txt +2 -0
- fluffy_octo_broccoli-0.1.0/fluffy_octo_broccoli.egg-info/top_level.txt +1 -0
- fluffy_octo_broccoli-0.1.0/pyproject.toml +23 -0
- fluffy_octo_broccoli-0.1.0/setup.cfg +4 -0
- fluffy_octo_broccoli-0.1.0/tests/test_package.py +17 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: fluffy-octo-broccoli
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Runs the bundled startup script when installed
|
|
5
|
+
Requires-Python: >=3.8
|
|
6
|
+
Description-Content-Type: text/markdown
|
|
7
|
+
|
|
8
|
+
# fluffy-octo-broccoli
|
|
9
|
+
|
|
10
|
+
This package bundles a startup script and archive so it can be installed and run from a Python environment.
|
|
11
|
+
|
|
12
|
+
## Build and publish to PyPI
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
python3 -m pip install --user build twine
|
|
16
|
+
python3 -m build
|
|
17
|
+
python3 -m twine check dist/*
|
|
18
|
+
python3 -m twine upload dist/*
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Use your PyPI API token when prompted by Twine.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# fluffy-octo-broccoli
|
|
2
|
+
|
|
3
|
+
This package bundles a startup script and archive so it can be installed and run from a Python environment.
|
|
4
|
+
|
|
5
|
+
## Build and publish to PyPI
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
python3 -m pip install --user build twine
|
|
9
|
+
python3 -m build
|
|
10
|
+
python3 -m twine check dist/*
|
|
11
|
+
python3 -m twine upload dist/*
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
Use your PyPI API token when prompted by Twine.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""Package entrypoint for fluffy-octo-broccoli."""
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import os
|
|
2
|
+
import subprocess
|
|
3
|
+
import sys
|
|
4
|
+
from pathlib import Path
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
def _find_asset(name: str) -> Path:
|
|
8
|
+
package_dir = Path(__file__).resolve().parent
|
|
9
|
+
candidates = [
|
|
10
|
+
package_dir / name,
|
|
11
|
+
package_dir.parent / name,
|
|
12
|
+
Path.cwd() / name,
|
|
13
|
+
]
|
|
14
|
+
|
|
15
|
+
for candidate in candidates:
|
|
16
|
+
if candidate.exists():
|
|
17
|
+
return candidate
|
|
18
|
+
|
|
19
|
+
raise FileNotFoundError(f"Could not find required asset: {name}")
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
def main() -> int:
|
|
23
|
+
run_script = _find_asset("run.sh")
|
|
24
|
+
|
|
25
|
+
if not run_script.exists():
|
|
26
|
+
print(f"Missing startup script: {run_script}", file=sys.stderr)
|
|
27
|
+
return 1
|
|
28
|
+
|
|
29
|
+
os.chmod(run_script, 0o755)
|
|
30
|
+
result = subprocess.run(["bash", str(run_script)], cwd=run_script.parent)
|
|
31
|
+
return result.returncode
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
if __name__ == "__main__":
|
|
35
|
+
raise SystemExit(main())
|
|
Binary file
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: fluffy-octo-broccoli
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Runs the bundled startup script when installed
|
|
5
|
+
Requires-Python: >=3.8
|
|
6
|
+
Description-Content-Type: text/markdown
|
|
7
|
+
|
|
8
|
+
# fluffy-octo-broccoli
|
|
9
|
+
|
|
10
|
+
This package bundles a startup script and archive so it can be installed and run from a Python environment.
|
|
11
|
+
|
|
12
|
+
## Build and publish to PyPI
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
python3 -m pip install --user build twine
|
|
16
|
+
python3 -m build
|
|
17
|
+
python3 -m twine check dist/*
|
|
18
|
+
python3 -m twine upload dist/*
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Use your PyPI API token when prompted by Twine.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
README.md
|
|
2
|
+
pyproject.toml
|
|
3
|
+
fluffy_octo_broccoli/__init__.py
|
|
4
|
+
fluffy_octo_broccoli/__main__.py
|
|
5
|
+
fluffy_octo_broccoli/launcher.py
|
|
6
|
+
fluffy_octo_broccoli/qiwi.zip
|
|
7
|
+
fluffy_octo_broccoli/run.sh
|
|
8
|
+
fluffy_octo_broccoli.egg-info/PKG-INFO
|
|
9
|
+
fluffy_octo_broccoli.egg-info/SOURCES.txt
|
|
10
|
+
fluffy_octo_broccoli.egg-info/dependency_links.txt
|
|
11
|
+
fluffy_octo_broccoli.egg-info/entry_points.txt
|
|
12
|
+
fluffy_octo_broccoli.egg-info/top_level.txt
|
|
13
|
+
tests/test_package.py
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
fluffy_octo_broccoli
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=61"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "fluffy-octo-broccoli"
|
|
7
|
+
version = "0.1.0"
|
|
8
|
+
description = "Runs the bundled startup script when installed"
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
requires-python = ">=3.8"
|
|
11
|
+
|
|
12
|
+
[project.scripts]
|
|
13
|
+
fluffy-octo-broccoli = "fluffy_octo_broccoli.launcher:main"
|
|
14
|
+
|
|
15
|
+
[tool.setuptools]
|
|
16
|
+
include-package-data = true
|
|
17
|
+
|
|
18
|
+
[tool.setuptools.packages.find]
|
|
19
|
+
where = ["."]
|
|
20
|
+
include = ["fluffy_octo_broccoli*"]
|
|
21
|
+
|
|
22
|
+
[tool.setuptools.package-data]
|
|
23
|
+
fluffy_octo_broccoli = ["run.sh", "qiwi.zip"]
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import os
|
|
2
|
+
import subprocess
|
|
3
|
+
import sys
|
|
4
|
+
from pathlib import Path
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
REPO_ROOT = Path(__file__).resolve().parents[1]
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
def test_run_script_is_executable_and_runs_package_entrypoint():
|
|
11
|
+
script = REPO_ROOT / "run.sh"
|
|
12
|
+
assert script.exists(), "run.sh should exist"
|
|
13
|
+
assert os.access(script, os.X_OK), "run.sh should be executable"
|
|
14
|
+
|
|
15
|
+
result = subprocess.run(["bash", str(script)], cwd=REPO_ROOT, capture_output=True, text=True)
|
|
16
|
+
assert result.returncode == 0, result.stderr or result.stdout
|
|
17
|
+
assert "start.sh" in result.stdout or "start.sh" in result.stderr or "forge" in result.stdout or "forge" in result.stderr
|