Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥
TypeScript aiai-agentsai-crawlerai-scrapingai-searchcrawlerdata-extractionhtml-to-markdownllmmarkdownscraperscrapingweb-crawlerweb-dataweb-data-extractionweb-scraperweb-scrapingweb-searchwebscraping
feat(ci): re-add python publish
Gergő Móriczaea634ae2223
diff --git a/.github/scripts/check_version_has_incremented.py b/.github/scripts/check_version_has_incremented.pyindex 6dba065f1..251e95527 100644--- a/.github/scripts/check_version_has_incremented.py+++ b/.github/scripts/check_version_has_incremented.py@@ -15,7 +15,6 @@ false"""import json-import tomlimport osimport reimport sys@@ -54,18 +53,18 @@ def get_npm_version(package_name: str) -> str:version = response.json()['version']return version.strip()-def get_rust_version(file_path: str) -> str:- """Extract version string from Cargo.toml."""- cargo_toml = toml.load(file_path)- if 'package' in cargo_toml and 'version' in cargo_toml['package']:- return cargo_toml['package']['version'].strip()- raise RuntimeError("Unable to find version string in Cargo.toml.")--def get_crates_version(package_name: str) -> str:- """Get latest version of Rust package from crates.io."""- response = requests.get(f"https://crates.io/api/v1/crates/{package_name}")- version = response.json()['crate']['newest_version']- return version.strip()+# def get_rust_version(file_path: str) -> str:+# """Extract version string from Cargo.toml."""+# cargo_toml = toml.load(file_path)+# if 'package' in cargo_toml and 'version' in cargo_toml['package']:+# return cargo_toml['package']['version'].strip()+# raise RuntimeError("Unable to find version string in Cargo.toml.")++# def get_crates_version(package_name: str) -> str:+# """Get latest version of Rust package from crates.io."""+# response = requests.get(f"https://crates.io/api/v1/crates/{package_name}")+# version = response.json()['crate']['newest_version']+# return version.strip()def is_version_incremented(local_version: str, published_version: str) -> bool:"""Compare local and published versions."""@@ -88,11 +87,11 @@ if __name__ == "__main__":current_version = get_js_version(os.path.join(package_path, 'package.json'))# Get published version from npmpublished_version = get_npm_version(package_name)- if package_type == "rust":- # Get current version from Cargo.toml- current_version = get_rust_version(os.path.join(package_path, 'Cargo.toml'))- # Get published version from crates.io- published_version = get_crates_version(package_name)+ # if package_type == "rust":+ # # Get current version from Cargo.toml+ # current_version = get_rust_version(os.path.join(package_path, 'Cargo.toml'))+ # # Get published version from crates.io+ # published_version = get_crates_version(package_name)else:raise ValueError("Invalid package type. Use 'python' or 'js'.")diff --git a/.github/archive/publish-python-sdk.yml b/.github/workflows/publish-python-sdk.ymlsimilarity index 94%rename from .github/archive/publish-python-sdk.ymlrename to .github/workflows/publish-python-sdk.ymlindex 6d86f1e0d..d32414ccc 100644--- a/.github/archive/publish-python-sdk.yml+++ b/.github/workflows/publish-python-sdk.yml@@ -1,6 +1,11 @@name: Publish Python SDK-on: []+on:+ push:+ branches:+ - main+ paths:+ - 'apps/python-sdk/**'env:PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}