airtrain 0.1.17__tar.gz → 0.1.18__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.
- {airtrain-0.1.17/airtrain.egg-info → airtrain-0.1.18}/PKG-INFO +1 -1
- {airtrain-0.1.17 → airtrain-0.1.18}/airtrain/__init__.py +1 -1
- {airtrain-0.1.17 → airtrain-0.1.18/airtrain.egg-info}/PKG-INFO +1 -1
- {airtrain-0.1.17 → airtrain-0.1.18}/scripts/release.py +28 -3
- {airtrain-0.1.17 → airtrain-0.1.18}/setup.py +17 -19
- {airtrain-0.1.17 → airtrain-0.1.18}/.flake8 +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/.github/workflows/publish.yml +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/.gitignore +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/.mypy.ini +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/.pre-commit-config.yaml +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/.vscode/extensions.json +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/.vscode/launch.json +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/.vscode/settings.json +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/EXPERIMENTS/integrations_examples/anthropic_with_image.py +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/EXPERIMENTS/schema_exps/pydantic_schemas.py +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/README.md +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/airtrain/agents/travel/agents.py +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/airtrain/agents/travel/models.py +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/airtrain/contrib/__init__.py +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/airtrain/contrib/travel/__init__.py +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/airtrain/contrib/travel/agentlib/verification_agent.py +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/airtrain/contrib/travel/agents.py +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/airtrain/contrib/travel/modellib/verification.py +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/airtrain/contrib/travel/models.py +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/airtrain/core/__init__.py +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/airtrain/core/__pycache__/credentials.cpython-310.pyc +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/airtrain/core/__pycache__/schemas.cpython-310.pyc +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/airtrain/core/__pycache__/skills.cpython-310.pyc +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/airtrain/core/credentials.py +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/airtrain/core/schemas.py +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/airtrain/core/skills.py +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/airtrain/integrations/__init__.py +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/airtrain/integrations/anthropic/__init__.py +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/airtrain/integrations/anthropic/credentials.py +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/airtrain/integrations/anthropic/skills.py +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/airtrain/integrations/aws/__init__.py +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/airtrain/integrations/aws/credentials.py +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/airtrain/integrations/aws/skills.py +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/airtrain/integrations/cerebras/__init__.py +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/airtrain/integrations/cerebras/credentials.py +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/airtrain/integrations/cerebras/skills.py +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/airtrain/integrations/fireworks/__init__.py +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/airtrain/integrations/fireworks/conversation_manager.py +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/airtrain/integrations/fireworks/credentials.py +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/airtrain/integrations/fireworks/models.py +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/airtrain/integrations/fireworks/skills.py +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/airtrain/integrations/google/__init__.py +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/airtrain/integrations/google/credentials.py +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/airtrain/integrations/google/gemini/conversation_history_test.py +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/airtrain/integrations/google/gemini/credentials.py +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/airtrain/integrations/google/gemini/skills.py +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/airtrain/integrations/google/skills.py +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/airtrain/integrations/groq/__init__.py +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/airtrain/integrations/groq/credentials.py +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/airtrain/integrations/groq/skills.py +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/airtrain/integrations/ollama/__init__.py +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/airtrain/integrations/ollama/credentials.py +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/airtrain/integrations/ollama/skills.py +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/airtrain/integrations/openai/__init__.py +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/airtrain/integrations/openai/chinese_assistant.py +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/airtrain/integrations/openai/credentials.py +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/airtrain/integrations/openai/models_config.py +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/airtrain/integrations/openai/skills.py +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/airtrain/integrations/sambanova/__init__.py +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/airtrain/integrations/sambanova/credentials.py +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/airtrain/integrations/sambanova/skills.py +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/airtrain/integrations/together/__init__.py +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/airtrain/integrations/together/audio_models_config.py +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/airtrain/integrations/together/credentials.py +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/airtrain/integrations/together/embedding_models_config.py +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/airtrain/integrations/together/image_models_config.py +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/airtrain/integrations/together/image_skill.py +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/airtrain/integrations/together/models.py +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/airtrain/integrations/together/models_config.py +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/airtrain/integrations/together/rerank_models_config.py +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/airtrain/integrations/together/rerank_skill.py +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/airtrain/integrations/together/schemas.py +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/airtrain/integrations/together/skills.py +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/airtrain/integrations/together/vision_models_config.py +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/airtrain.egg-info/SOURCES.txt +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/airtrain.egg-info/dependency_links.txt +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/airtrain.egg-info/requires.txt +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/airtrain.egg-info/top_level.txt +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/examples/creating-skills/anthropic_skills_usage.py +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/examples/creating-skills/chinese_anthropic_assistant.py +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/examples/creating-skills/chinese_anthropic_usage.py +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/examples/creating-skills/chinese_assistant_usage.py +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/examples/creating-skills/fireworks_skills_usage.py +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/examples/creating-skills/icon128.png +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/examples/creating-skills/icon16.png +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/examples/creating-skills/image1.jpg +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/examples/creating-skills/image2.jpg +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/examples/creating-skills/openai_skills.py +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/examples/creating-skills/openai_skills_usage.py +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/examples/creating-skills/openai_structured_skills.py +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/examples/creating-skills/together_rerank_skills.py +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/examples/creating-skills/together_rerank_skills_async.py +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/examples/credentials_usage.py +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/examples/images/quantum-circuit.png +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/examples/integrations/anthropic/chat_example.py +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/examples/integrations/anthropic/chinese_example.py +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/examples/integrations/anthropic/conversation_history_test.py +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/examples/integrations/anthropic/vision_example.py +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/examples/integrations/cerebras/conversation_history_test.py +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/examples/integrations/fireworks/chat_example.py +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/examples/integrations/fireworks/conversation_history_test.py +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/examples/integrations/fireworks/structured_chat_example.py +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/examples/integrations/google/conversation_history_test.py +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/examples/integrations/google/gemini/conversation_history_test.py +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/examples/integrations/groq/conversation_history_test.py +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/examples/integrations/openai/chat_example.py +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/examples/integrations/openai/parser_example.py +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/examples/integrations/openai/vision_example.py +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/examples/integrations/sambanova/conversation_history_test.py +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/examples/integrations/together/chat_example.py +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/examples/integrations/together/conversation_history_test.py +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/examples/integrations/together/image_generation_example.py +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/examples/integrations/together/rerank_example.py +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/examples/schema_usage.py +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/examples/skill_usage.py +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/examples/together/image_generation.py +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/examples/together/image_generation_example.py +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/examples/travel/verification_agent_usage.py +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/pyproject.toml +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/requirements.txt +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/scripts/build.sh +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/scripts/bump_version.py +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/scripts/publish.sh +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/services/firebase_service.py +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/services/openai_service.py +0 -0
- {airtrain-0.1.17 → airtrain-0.1.18}/setup.cfg +0 -0
@@ -1,6 +1,7 @@
|
|
1
1
|
import os
|
2
2
|
import subprocess
|
3
3
|
import sys
|
4
|
+
import shutil
|
4
5
|
from bump_version import main as bump_version
|
5
6
|
|
6
7
|
|
@@ -14,6 +15,27 @@ def run_command(command, error_message):
|
|
14
15
|
sys.exit(1)
|
15
16
|
|
16
17
|
|
18
|
+
def copy_changelog():
|
19
|
+
"""Copy changelog from docs to package directory"""
|
20
|
+
print("\n📋 Copying changelog...")
|
21
|
+
try:
|
22
|
+
# Get the absolute path to the script's directory
|
23
|
+
script_dir = os.path.dirname(os.path.abspath(__file__))
|
24
|
+
|
25
|
+
# Construct paths for source and destination
|
26
|
+
source_path = os.path.abspath(
|
27
|
+
os.path.join(script_dir, "..", "..", "docs", "changelog.md")
|
28
|
+
)
|
29
|
+
dest_path = os.path.abspath(os.path.join(script_dir, "..", "changelog.md"))
|
30
|
+
|
31
|
+
# Copy the file
|
32
|
+
shutil.copy2(source_path, dest_path)
|
33
|
+
print(f"Changelog copied from {source_path} to {dest_path}")
|
34
|
+
except Exception as e:
|
35
|
+
print(f"Error copying changelog: {str(e)}")
|
36
|
+
sys.exit(1)
|
37
|
+
|
38
|
+
|
17
39
|
def clean_builds():
|
18
40
|
"""Clean previous build artifacts"""
|
19
41
|
print("\n🧹 Cleaning previous builds...")
|
@@ -40,13 +62,16 @@ def main():
|
|
40
62
|
print("🔼 Bumping version...")
|
41
63
|
bump_version()
|
42
64
|
|
43
|
-
# 2.
|
65
|
+
# 2. Copy changelog
|
66
|
+
copy_changelog()
|
67
|
+
|
68
|
+
# 3. Clean previous builds
|
44
69
|
clean_builds()
|
45
70
|
|
46
|
-
#
|
71
|
+
# 4. Build package
|
47
72
|
build_package()
|
48
73
|
|
49
|
-
#
|
74
|
+
# 5. Upload to PyPI
|
50
75
|
upload_to_pypi()
|
51
76
|
|
52
77
|
print("\n✨ Release completed successfully!")
|
@@ -15,26 +15,24 @@ def get_version():
|
|
15
15
|
raise RuntimeError("Unable to find version string.")
|
16
16
|
|
17
17
|
|
18
|
-
|
19
|
-
|
20
|
-
#
|
21
|
-
|
22
|
-
|
23
|
-
# os.path.join(setup_dir, "..", "docs", "changelog.md")
|
24
|
-
# )
|
18
|
+
def get_changelog() -> str:
|
19
|
+
"""Read the changelog content from absolute path."""
|
20
|
+
# Get the absolute path to the setup.py directory
|
21
|
+
setup_dir = os.path.dirname(os.path.abspath(__file__))
|
22
|
+
changelog_path = os.path.abspath(os.path.join(setup_dir, "changelog.md"))
|
25
23
|
|
26
|
-
|
27
|
-
#
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
24
|
+
with open(changelog_path, "r", encoding="utf-8") as f:
|
25
|
+
# Skip the frontmatter and title
|
26
|
+
lines = f.readlines()
|
27
|
+
changelog_content = []
|
28
|
+
skip_frontmatter = False
|
29
|
+
for line in lines:
|
30
|
+
if line.strip() == "---":
|
31
|
+
skip_frontmatter = not skip_frontmatter
|
32
|
+
continue
|
33
|
+
if not skip_frontmatter and not line.startswith("# Changelog"):
|
34
|
+
changelog_content.append(line)
|
35
|
+
return "".join(changelog_content)
|
38
36
|
|
39
37
|
|
40
38
|
with open("README.md", "r", encoding="utf-8") as fh:
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{airtrain-0.1.17 → airtrain-0.1.18}/EXPERIMENTS/integrations_examples/anthropic_with_image.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{airtrain-0.1.17 → airtrain-0.1.18}/airtrain/integrations/google/gemini/conversation_history_test.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{airtrain-0.1.17 → airtrain-0.1.18}/airtrain/integrations/together/embedding_models_config.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{airtrain-0.1.17 → airtrain-0.1.18}/examples/creating-skills/together_rerank_skills_async.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{airtrain-0.1.17 → airtrain-0.1.18}/examples/integrations/anthropic/conversation_history_test.py
RENAMED
File without changes
|
File without changes
|
{airtrain-0.1.17 → airtrain-0.1.18}/examples/integrations/cerebras/conversation_history_test.py
RENAMED
File without changes
|
File without changes
|
{airtrain-0.1.17 → airtrain-0.1.18}/examples/integrations/fireworks/conversation_history_test.py
RENAMED
File without changes
|
{airtrain-0.1.17 → airtrain-0.1.18}/examples/integrations/fireworks/structured_chat_example.py
RENAMED
File without changes
|
{airtrain-0.1.17 → airtrain-0.1.18}/examples/integrations/google/conversation_history_test.py
RENAMED
File without changes
|
{airtrain-0.1.17 → airtrain-0.1.18}/examples/integrations/google/gemini/conversation_history_test.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{airtrain-0.1.17 → airtrain-0.1.18}/examples/integrations/sambanova/conversation_history_test.py
RENAMED
File without changes
|
File without changes
|
{airtrain-0.1.17 → airtrain-0.1.18}/examples/integrations/together/conversation_history_test.py
RENAMED
File without changes
|
{airtrain-0.1.17 → airtrain-0.1.18}/examples/integrations/together/image_generation_example.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|