Tamizhi 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.
tamizhi-0.1/PKG-INFO ADDED
@@ -0,0 +1,10 @@
1
+ Metadata-Version: 2.4
2
+ Name: Tamizhi
3
+ Version: 0.1
4
+ Summary: A Linux-native programming language built with C and LLVM.
5
+ Author-email: Prabakaran <admin@developerlabs.online>
6
+ Classifier: Programming Language :: Python :: 3
7
+ Classifier: Programming Language :: C
8
+ Classifier: Operating System :: POSIX :: Linux
9
+ Requires-Python: >=3.7
10
+ Description-Content-Type: text/markdown
@@ -0,0 +1,10 @@
1
+ Metadata-Version: 2.4
2
+ Name: Tamizhi
3
+ Version: 0.1
4
+ Summary: A Linux-native programming language built with C and LLVM.
5
+ Author-email: Prabakaran <admin@developerlabs.online>
6
+ Classifier: Programming Language :: Python :: 3
7
+ Classifier: Programming Language :: C
8
+ Classifier: Operating System :: POSIX :: Linux
9
+ Requires-Python: >=3.7
10
+ Description-Content-Type: text/markdown
@@ -0,0 +1,9 @@
1
+ pyproject.toml
2
+ setup.py
3
+ Tamizhi.egg-info/PKG-INFO
4
+ Tamizhi.egg-info/SOURCES.txt
5
+ Tamizhi.egg-info/dependency_links.txt
6
+ Tamizhi.egg-info/entry_points.txt
7
+ Tamizhi.egg-info/top_level.txt
8
+ tamizhi/__init__.py
9
+ tamizhi/cli.py
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ tamizhi = tamizhi_pkg.cli:main
@@ -0,0 +1 @@
1
+ tamizhi
@@ -0,0 +1,21 @@
1
+ [build-system]
2
+ requires = ["setuptools>=61.0"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "Tamizhi"
7
+ version = "0.1"
8
+ description = "A Linux-native programming language built with C and LLVM."
9
+ readme = "README.md"
10
+ authors = [
11
+ { name="Prabakaran", email="admin@developerlabs.online" }
12
+ ]
13
+ classifiers = [
14
+ "Programming Language :: Python :: 3",
15
+ "Programming Language :: C",
16
+ "Operating System :: POSIX :: Linux",
17
+ ]
18
+ requires-python = ">=3.7"
19
+
20
+ [project.scripts]
21
+ tamizhi = "tamizhi_pkg.cli:main"
tamizhi-0.1/setup.cfg ADDED
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
tamizhi-0.1/setup.py ADDED
@@ -0,0 +1,13 @@
1
+ from setuptools import setup, find_packages
2
+
3
+ setup(
4
+ name="tamizhi",
5
+ version="v0.1.0",
6
+ packages=find_packages(),
7
+ include_package_data=True,
8
+ entry_points={
9
+ "console_scripts": [
10
+ "tamizhi=tamizhi.cli:main",
11
+ ],
12
+ },
13
+ )
@@ -0,0 +1 @@
1
+ .
@@ -0,0 +1,57 @@
1
+ import subprocess
2
+ import sys
3
+ import os
4
+ import urllib.request
5
+ import tarfile
6
+ import shutil
7
+ from pathlib import Path
8
+
9
+ BINARY_PATH = Path.home() / ".tamizhi" / "bin" / "tamizhi"
10
+
11
+ RELEASE_URL = (
12
+ "https://github.com/BackendDeveloperHub/Tamizhi/"
13
+ "releases/latest/download/tamizhi-v0.1.0-linux.tar.gz"
14
+ )
15
+
16
+ def ensure_binary():
17
+
18
+ if BINARY_PATH.exists():
19
+ return
20
+
21
+ BINARY_PATH.parent.mkdir(parents=True, exist_ok=True)
22
+
23
+ archive_path = "/tmp/tamizhi.tar.gz"
24
+ extract_path = "/tmp/tamizhi-extract"
25
+
26
+ print("⬇ Downloading Tamizhi compiler...")
27
+
28
+ urllib.request.urlretrieve(RELEASE_URL, archive_path)
29
+
30
+ if os.path.exists(extract_path):
31
+ shutil.rmtree(extract_path)
32
+
33
+ os.makedirs(extract_path, exist_ok=True)
34
+
35
+ with tarfile.open(archive_path) as tar:
36
+ tar.extractall(extract_path)
37
+
38
+ for root, dirs, files in os.walk(extract_path):
39
+ if "tamizhi" in files:
40
+ binary_src = os.path.join(root, "tamizhi")
41
+ shutil.copy(binary_src, BINARY_PATH)
42
+ break
43
+
44
+ os.chmod(BINARY_PATH, 0o755)
45
+
46
+ print("✅ Tamizhi installed successfully!")
47
+
48
+ def main():
49
+
50
+ ensure_binary()
51
+
52
+ subprocess.run(
53
+ [str(BINARY_PATH)] + sys.argv[1:]
54
+ )
55
+
56
+ if __name__ == "__main__":
57
+ main()