another-meet 1.0.3__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,19 @@
1
+ Metadata-Version: 2.4
2
+ Name: another-meet
3
+ Version: 1.0.3
4
+ Summary: Manage Google Meet meetings from your terminal
5
+ Home-page: https://github.com/parjanyaacoder/another-meet
6
+ Author: parjanyaacoder
7
+ Description-Content-Type: text/markdown
8
+ Dynamic: author
9
+ Dynamic: description
10
+ Dynamic: description-content-type
11
+ Dynamic: home-page
12
+ Dynamic: summary
13
+
14
+ # another-meet
15
+
16
+ This is a PyPI wrapper for the `another-meet` Go binary.
17
+ Installing this package will automatically download the pre-compiled binary for your operating system and place it in your Python scripts path, making it globally available.
18
+
19
+ Please see the [main repository](https://github.com/parjanyaacoder/another-meet) for documentation.
@@ -0,0 +1,6 @@
1
+ # another-meet
2
+
3
+ This is a PyPI wrapper for the `another-meet` Go binary.
4
+ Installing this package will automatically download the pre-compiled binary for your operating system and place it in your Python scripts path, making it globally available.
5
+
6
+ Please see the [main repository](https://github.com/parjanyaacoder/another-meet) for documentation.
@@ -0,0 +1,19 @@
1
+ Metadata-Version: 2.4
2
+ Name: another-meet
3
+ Version: 1.0.3
4
+ Summary: Manage Google Meet meetings from your terminal
5
+ Home-page: https://github.com/parjanyaacoder/another-meet
6
+ Author: parjanyaacoder
7
+ Description-Content-Type: text/markdown
8
+ Dynamic: author
9
+ Dynamic: description
10
+ Dynamic: description-content-type
11
+ Dynamic: home-page
12
+ Dynamic: summary
13
+
14
+ # another-meet
15
+
16
+ This is a PyPI wrapper for the `another-meet` Go binary.
17
+ Installing this package will automatically download the pre-compiled binary for your operating system and place it in your Python scripts path, making it globally available.
18
+
19
+ Please see the [main repository](https://github.com/parjanyaacoder/another-meet) for documentation.
@@ -0,0 +1,6 @@
1
+ README.md
2
+ setup.py
3
+ another_meet.egg-info/PKG-INFO
4
+ another_meet.egg-info/SOURCES.txt
5
+ another_meet.egg-info/dependency_links.txt
6
+ another_meet.egg-info/top_level.txt
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,87 @@
1
+ import os
2
+ import platform
3
+ import urllib.request
4
+ import tarfile
5
+ import zipfile
6
+ import shutil
7
+ import stat
8
+ import tempfile
9
+ from setuptools import setup
10
+ from setuptools.command.install import install
11
+
12
+ VERSION = "1.0.3"
13
+ REPO = "parjanyaacoder/another-meet"
14
+
15
+ class CustomInstall(install):
16
+ def run(self):
17
+ install.run(self)
18
+
19
+ system = platform.system().lower()
20
+ machine = platform.machine().lower()
21
+
22
+ if system == "darwin":
23
+ os_name = "darwin"
24
+ elif system == "linux":
25
+ os_name = "linux"
26
+ elif system == "windows":
27
+ os_name = "windows"
28
+ else:
29
+ raise Exception(f"Unsupported OS: {system}")
30
+
31
+ if machine in ["x86_64", "amd64"]:
32
+ arch_name = "amd64"
33
+ elif machine in ["arm64", "aarch64"]:
34
+ arch_name = "arm64"
35
+ else:
36
+ raise Exception(f"Unsupported architecture: {machine}")
37
+
38
+ ext = "zip" if os_name == "windows" else "tar.gz"
39
+ filename = f"another-meet_{VERSION}_{os_name}_{arch_name}.{ext}"
40
+ url = f"https://github.com/{REPO}/releases/download/v{VERSION}/{filename}"
41
+
42
+ print(f"Downloading {url}...")
43
+
44
+ with tempfile.TemporaryDirectory() as tmpdirname:
45
+ tmp_file = os.path.join(tmpdirname, filename)
46
+ urllib.request.urlretrieve(url, tmp_file)
47
+
48
+ bin_dir = self.install_scripts
49
+ os.makedirs(bin_dir, exist_ok=True)
50
+
51
+ extract_dir = os.path.join(tmpdirname, "extract")
52
+ os.makedirs(extract_dir, exist_ok=True)
53
+
54
+ if ext == "zip":
55
+ with zipfile.ZipFile(tmp_file, 'r') as zip_ref:
56
+ zip_ref.extractall(extract_dir)
57
+ else:
58
+ with tarfile.open(tmp_file, "r:gz") as tar:
59
+ tar.extractall(path=extract_dir)
60
+
61
+ bin_name = "another-meet.exe" if os_name == "windows" else "another-meet"
62
+ src_bin = os.path.join(extract_dir, bin_name)
63
+ dst_bin = os.path.join(bin_dir, bin_name)
64
+
65
+ shutil.copy(src_bin, dst_bin)
66
+
67
+ if os_name != "windows":
68
+ st = os.stat(dst_bin)
69
+ os.chmod(dst_bin, st.st_mode | stat.S_IEXEC)
70
+
71
+ print("Installation complete!")
72
+
73
+ with open("README.md", "r", encoding="utf-8") as fh:
74
+ long_description = fh.read()
75
+
76
+ setup(
77
+ name="another-meet",
78
+ version=VERSION,
79
+ description="Manage Google Meet meetings from your terminal",
80
+ long_description=long_description,
81
+ long_description_content_type="text/markdown",
82
+ author="parjanyaacoder",
83
+ url="https://github.com/parjanyaacoder/another-meet",
84
+ cmdclass={
85
+ 'install': CustomInstall,
86
+ },
87
+ )