airtrain 0.1.0__tar.gz → 0.1.2__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. {airtrain-0.1.0 → airtrain-0.1.2}/PKG-INFO +2 -2
  2. {airtrain-0.1.0 → airtrain-0.1.2}/README.md +1 -1
  3. airtrain-0.1.2/airtrain/__init__.py +3 -0
  4. {airtrain-0.1.0 → airtrain-0.1.2}/airtrain.egg-info/PKG-INFO +2 -2
  5. {airtrain-0.1.0 → airtrain-0.1.2}/airtrain.egg-info/SOURCES.txt +2 -0
  6. airtrain-0.1.2/airtrain.egg-info/top_level.txt +1 -0
  7. airtrain-0.1.2/scripts/bump_version.py +55 -0
  8. {airtrain-0.1.0 → airtrain-0.1.2}/setup.py +16 -2
  9. airtrain-0.1.0/airtrain.egg-info/top_level.txt +0 -1
  10. {airtrain-0.1.0 → airtrain-0.1.2}/.flake8 +0 -0
  11. {airtrain-0.1.0 → airtrain-0.1.2}/.github/workflows/publish.yml +0 -0
  12. {airtrain-0.1.0 → airtrain-0.1.2}/.mypy.ini +0 -0
  13. {airtrain-0.1.0 → airtrain-0.1.2}/.pre-commit-config.yaml +0 -0
  14. {airtrain-0.1.0 → airtrain-0.1.2}/.vscode/extensions.json +0 -0
  15. {airtrain-0.1.0 → airtrain-0.1.2}/.vscode/launch.json +0 -0
  16. {airtrain-0.1.0 → airtrain-0.1.2}/.vscode/settings.json +0 -0
  17. {airtrain-0.1.0 → airtrain-0.1.2}/EXPERIMENTS/schema_exps/pydantic_schemas.py +0 -0
  18. {airtrain-0.1.0 → airtrain-0.1.2}/airtrain/core/__pycache__/credentials.cpython-310.pyc +0 -0
  19. {airtrain-0.1.0 → airtrain-0.1.2}/airtrain/core/__pycache__/schemas.cpython-310.pyc +0 -0
  20. {airtrain-0.1.0 → airtrain-0.1.2}/airtrain/core/__pycache__/skills.cpython-310.pyc +0 -0
  21. {airtrain-0.1.0 → airtrain-0.1.2}/airtrain/core/credentials.py +0 -0
  22. {airtrain-0.1.0 → airtrain-0.1.2}/airtrain/core/schemas.py +0 -0
  23. {airtrain-0.1.0 → airtrain-0.1.2}/airtrain/core/skills.py +0 -0
  24. {airtrain-0.1.0 → airtrain-0.1.2}/airtrain.egg-info/dependency_links.txt +0 -0
  25. {airtrain-0.1.0 → airtrain-0.1.2}/airtrain.egg-info/requires.txt +0 -0
  26. {airtrain-0.1.0 → airtrain-0.1.2}/examples/creating-skills/image1.jpg +0 -0
  27. {airtrain-0.1.0 → airtrain-0.1.2}/examples/creating-skills/image2.jpg +0 -0
  28. {airtrain-0.1.0 → airtrain-0.1.2}/examples/creating-skills/openai_skills.py +0 -0
  29. {airtrain-0.1.0 → airtrain-0.1.2}/examples/creating-skills/openai_structured_skills.py +0 -0
  30. {airtrain-0.1.0 → airtrain-0.1.2}/examples/credentials_usage.py +0 -0
  31. {airtrain-0.1.0 → airtrain-0.1.2}/examples/schema_usage.py +0 -0
  32. {airtrain-0.1.0 → airtrain-0.1.2}/examples/skill_usage.py +0 -0
  33. {airtrain-0.1.0 → airtrain-0.1.2}/pyproject.toml +0 -0
  34. {airtrain-0.1.0 → airtrain-0.1.2}/scripts/build.sh +0 -0
  35. {airtrain-0.1.0 → airtrain-0.1.2}/scripts/publish.sh +0 -0
  36. {airtrain-0.1.0 → airtrain-0.1.2}/services/firebase_service.py +0 -0
  37. {airtrain-0.1.0 → airtrain-0.1.2}/services/openai_service.py +0 -0
  38. {airtrain-0.1.0 → airtrain-0.1.2}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: airtrain
3
- Version: 0.1.0
3
+ Version: 0.1.2
4
4
  Summary: A platform for building and deploying AI agents with structured skills
5
5
  Home-page: https://github.com/rosaboyle/airtrain.dev
6
6
  Author: Dheeraj Pai
@@ -95,7 +95,7 @@ creds.load_to_env()
95
95
 
96
96
  ## Documentation
97
97
 
98
- For detailed documentation, visit [our documentation site](https://airtrain.readthedocs.io/).
98
+ For detailed documentation, visit [our documentation site](https://docs.airtrain.dev/).
99
99
 
100
100
  ## Contributing
101
101
 
@@ -62,7 +62,7 @@ creds.load_to_env()
62
62
 
63
63
  ## Documentation
64
64
 
65
- For detailed documentation, visit [our documentation site](https://airtrain.readthedocs.io/).
65
+ For detailed documentation, visit [our documentation site](https://docs.airtrain.dev/).
66
66
 
67
67
  ## Contributing
68
68
 
@@ -0,0 +1,3 @@
1
+ """Airtrain - A platform for building and deploying AI agents with structured skills"""
2
+
3
+ __version__ = "0.1.2"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: airtrain
3
- Version: 0.1.0
3
+ Version: 0.1.2
4
4
  Summary: A platform for building and deploying AI agents with structured skills
5
5
  Home-page: https://github.com/rosaboyle/airtrain.dev
6
6
  Author: Dheeraj Pai
@@ -95,7 +95,7 @@ creds.load_to_env()
95
95
 
96
96
  ## Documentation
97
97
 
98
- For detailed documentation, visit [our documentation site](https://airtrain.readthedocs.io/).
98
+ For detailed documentation, visit [our documentation site](https://docs.airtrain.dev/).
99
99
 
100
100
  ## Contributing
101
101
 
@@ -9,6 +9,7 @@ setup.py
9
9
  .vscode/launch.json
10
10
  .vscode/settings.json
11
11
  EXPERIMENTS/schema_exps/pydantic_schemas.py
12
+ airtrain/__init__.py
12
13
  airtrain.egg-info/PKG-INFO
13
14
  airtrain.egg-info/SOURCES.txt
14
15
  airtrain.egg-info/dependency_links.txt
@@ -28,6 +29,7 @@ examples/creating-skills/image2.jpg
28
29
  examples/creating-skills/openai_skills.py
29
30
  examples/creating-skills/openai_structured_skills.py
30
31
  scripts/build.sh
32
+ scripts/bump_version.py
31
33
  scripts/publish.sh
32
34
  services/firebase_service.py
33
35
  services/openai_service.py
@@ -0,0 +1 @@
1
+ airtrain
@@ -0,0 +1,55 @@
1
+ import os
2
+ import re
3
+
4
+
5
+ def read_version():
6
+ """Read current version from __init__.py"""
7
+ init_path = os.path.join(
8
+ os.path.dirname(os.path.dirname(__file__)), "airtrain", "__init__.py"
9
+ )
10
+ with open(init_path, "r", encoding="utf-8") as f:
11
+ version_file = f.read()
12
+ version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", version_file, re.M)
13
+ if version_match:
14
+ return version_match.group(1)
15
+ raise RuntimeError("Unable to find version string.")
16
+
17
+
18
+ def bump_patch_version(version_str):
19
+ """Increment the patch version"""
20
+ major, minor, patch = map(int, version_str.split("."))
21
+ return f"{major}.{minor}.{patch + 1}"
22
+
23
+
24
+ def update_version(new_version):
25
+ """Update version in __init__.py"""
26
+ init_path = os.path.join(
27
+ os.path.dirname(os.path.dirname(__file__)), "airtrain", "__init__.py"
28
+ )
29
+ with open(init_path, "r", encoding="utf-8") as f:
30
+ content = f.read()
31
+
32
+ new_content = re.sub(
33
+ r"^__version__ = ['\"]([^'\"]*)['\"]",
34
+ f'__version__ = "{new_version}"',
35
+ content,
36
+ flags=re.M,
37
+ )
38
+
39
+ with open(init_path, "w", encoding="utf-8") as f:
40
+ f.write(new_content)
41
+
42
+
43
+ def main():
44
+ try:
45
+ current_version = read_version()
46
+ new_version = bump_patch_version(current_version)
47
+ update_version(new_version)
48
+ print(f"Version bumped from {current_version} to {new_version}")
49
+ except Exception as e:
50
+ print(f"Error updating version: {str(e)}")
51
+ exit(1)
52
+
53
+
54
+ if __name__ == "__main__":
55
+ main()
@@ -1,11 +1,25 @@
1
- from setuptools import setup, find_packages
1
+ from setuptools import setup, find_packages # type: ignore
2
+ import os
3
+ import re
4
+
5
+
6
+ # Read version from __init__.py
7
+ def get_version():
8
+ init_path = os.path.join(os.path.dirname(__file__), "airtrain", "__init__.py")
9
+ with open(init_path, "r", encoding="utf-8") as f:
10
+ version_file = f.read()
11
+ version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", version_file, re.M)
12
+ if version_match:
13
+ return version_match.group(1)
14
+ raise RuntimeError("Unable to find version string.")
15
+
2
16
 
3
17
  with open("README.md", "r", encoding="utf-8") as fh:
4
18
  long_description = fh.read()
5
19
 
6
20
  setup(
7
21
  name="airtrain",
8
- version="0.1.0",
22
+ version=get_version(),
9
23
  author="Dheeraj Pai",
10
24
  author_email="helloworldcmu@gmail.com",
11
25
  description="A platform for building and deploying AI agents with structured skills",
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes