public-ai-python 0.0.86__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.
- public_ai_python-0.0.86/PKG-INFO +9 -0
- public_ai_python-0.0.86/public_ai_install.py +40 -0
- public_ai_python-0.0.86/public_ai_python.egg-info/PKG-INFO +9 -0
- public_ai_python-0.0.86/public_ai_python.egg-info/SOURCES.txt +7 -0
- public_ai_python-0.0.86/public_ai_python.egg-info/dependency_links.txt +1 -0
- public_ai_python-0.0.86/public_ai_python.egg-info/entry_points.txt +2 -0
- public_ai_python-0.0.86/public_ai_python.egg-info/top_level.txt +1 -0
- public_ai_python-0.0.86/pyproject.toml +21 -0
- public_ai_python-0.0.86/setup.cfg +4 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: public-ai-python
|
|
3
|
+
Version: 0.0.86
|
|
4
|
+
Summary: Download the public AI pack
|
|
5
|
+
Author: CodyTVWeber
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/CodyTVWeber/Public-AI
|
|
8
|
+
Project-URL: Repository, https://github.com/CodyTVWeber/Public-AI
|
|
9
|
+
Requires-Python: >=3.9
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import os
|
|
2
|
+
import sys
|
|
3
|
+
|
|
4
|
+
REL = os.path.join("packages", "public-ai-sync", "bin", "install-public-ai.sh")
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
def main():
|
|
8
|
+
launcher = found_launcher()
|
|
9
|
+
if launcher is None:
|
|
10
|
+
sys.stderr.write(
|
|
11
|
+
"public-ai-install: set PUBLIC_AI_DIR to a checkout of this pack\n"
|
|
12
|
+
)
|
|
13
|
+
sys.exit(1)
|
|
14
|
+
consumer = sys.argv[1] if len(sys.argv) > 1 else os.getcwd()
|
|
15
|
+
os.execvp("bash", ["bash", launcher, consumer])
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
def found_launcher():
|
|
19
|
+
env_dir = os.environ.get("PUBLIC_AI_DIR")
|
|
20
|
+
if env_dir:
|
|
21
|
+
hit = os.path.join(env_dir, REL)
|
|
22
|
+
if os.path.isfile(hit):
|
|
23
|
+
return hit
|
|
24
|
+
return walk_from(os.path.dirname(os.path.abspath(__file__)))
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
def walk_from(start):
|
|
28
|
+
cur = start
|
|
29
|
+
while True:
|
|
30
|
+
hit = os.path.join(cur, REL)
|
|
31
|
+
if os.path.isfile(hit):
|
|
32
|
+
return hit
|
|
33
|
+
parent = os.path.dirname(cur)
|
|
34
|
+
if parent == cur:
|
|
35
|
+
return None
|
|
36
|
+
cur = parent
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
if __name__ == "__main__":
|
|
40
|
+
main()
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: public-ai-python
|
|
3
|
+
Version: 0.0.86
|
|
4
|
+
Summary: Download the public AI pack
|
|
5
|
+
Author: CodyTVWeber
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/CodyTVWeber/Public-AI
|
|
8
|
+
Project-URL: Repository, https://github.com/CodyTVWeber/Public-AI
|
|
9
|
+
Requires-Python: >=3.9
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
public_ai_install
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "public-ai-python"
|
|
7
|
+
version = "0.0.86"
|
|
8
|
+
description = "Download the public AI pack"
|
|
9
|
+
license = "MIT"
|
|
10
|
+
authors = [{ name = "CodyTVWeber" }]
|
|
11
|
+
requires-python = ">=3.9"
|
|
12
|
+
|
|
13
|
+
[project.urls]
|
|
14
|
+
Homepage = "https://github.com/CodyTVWeber/Public-AI"
|
|
15
|
+
Repository = "https://github.com/CodyTVWeber/Public-AI"
|
|
16
|
+
|
|
17
|
+
[project.scripts]
|
|
18
|
+
public-ai-install = "public_ai_install:main"
|
|
19
|
+
|
|
20
|
+
[tool.setuptools]
|
|
21
|
+
py-modules = ["public_ai_install"]
|