airobo 0.1.5__tar.gz → 0.1.6__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: airobo
3
- Version: 0.1.5
3
+ Version: 0.1.6
4
4
  Summary: A CLI tool for Airobo tasks
5
5
  Author-email: Joshua Morvant <joshua@aiarobo.com>
6
6
  Requires-Python: >=3.7
@@ -0,0 +1,53 @@
1
+ """
2
+ API callbacks!
3
+ """
4
+ import os
5
+ import re
6
+
7
+ # Declarations / modules
8
+ from airobo.modules import publishAndroid
9
+ from airobo.modules import publishIOS
10
+
11
+ # ======================================================================================
12
+
13
+ """
14
+ Simulate publishing something.
15
+ """
16
+ def publish(plat=None):
17
+ if plat != "ios" and plat != "android" and plat != None:
18
+ return "Supply a valid platform type!"
19
+ if plat == "ios":
20
+ publishIOS()
21
+ elif plat == "android":
22
+ publishAndroid()
23
+ else: #default : publish all.
24
+ publishIOS()
25
+ publishAndroid()
26
+
27
+ #----------------------------------------
28
+
29
+ """
30
+ Get version from pyproject.toml
31
+ """
32
+ def version():
33
+ try:
34
+ # Get the directory where this file is located
35
+ current_dir = os.path.dirname(os.path.abspath(__file__))
36
+ # Go up one level to get to the project root
37
+ project_root = os.path.dirname(current_dir)
38
+ toml_path = os.path.join(project_root, 'pyproject.toml')
39
+
40
+ if os.path.exists(toml_path):
41
+ with open(toml_path, 'r') as f:
42
+ content = f.read()
43
+ # Extract version using regex
44
+ version_match = re.search(r'version\s*=\s*"([^"]+)"', content)
45
+ if version_match:
46
+ print(version_match.group(1))
47
+ return
48
+
49
+ # Fallback if file not found or version not found
50
+ print("1337")
51
+ except Exception:
52
+ # Fallback on any error
53
+ print("1337")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: airobo
3
- Version: 0.1.5
3
+ Version: 0.1.6
4
4
  Summary: A CLI tool for Airobo tasks
5
5
  Author-email: Joshua Morvant <joshua@aiarobo.com>
6
6
  Requires-Python: >=3.7
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "airobo"
7
- version = "0.1.5"
7
+ version = "0.1.6"
8
8
  description = "A CLI tool for Airobo tasks"
9
9
  authors = [
10
10
  { name="Joshua Morvant", email="joshua@aiarobo.com" }
@@ -1,31 +0,0 @@
1
- """
2
- API callbacks!
3
- """
4
-
5
- # Declarations / modules
6
- from airobo.modules import publishAndroid
7
- from airobo.modules import publishIOS
8
-
9
- # ======================================================================================
10
-
11
- """
12
- Simulate publishing something.
13
- """
14
- def publish(plat=None):
15
- if plat != "ios" and plat != "android" and plat != None:
16
- return "Supply a valid platform type!"
17
- if plat == "ios":
18
- publishIOS()
19
- elif plat == "android":
20
- publishAndroid()
21
- else: #default : publish all.
22
- publishIOS()
23
- publishAndroid()
24
-
25
- #----------------------------------------
26
-
27
- """
28
- Simulate checking status.
29
- """
30
- def version():
31
- print("2.3")
File without changes
File without changes
File without changes