diff --git a/.build-constraints.txt b/.build-constraints.txt index 68b1167..ca77717 100644 --- a/.build-constraints.txt +++ b/.build-constraints.txt @@ -13,7 +13,7 @@ pluggy==1.6.0 \ --hash=sha256:7dcc130b76258d33b90f61b658791dede3486c3e6bfb003ee5c9bfb396dd22f3 \ --hash=sha256:e920276dd6813095e9377c0bc5566d94c932c33b27a3e3945d8389c374dd4746 # via hatchling -trove-classifiers==2026.4.28.13 \ - --hash=sha256:8f4b1eb4e16296b57d612965444f87a83861cc989a0451ac97fe4265ddef03b8 \ - --hash=sha256:c85bb8a53c3de7330d1699b844ed9fb809a602a09ac15dc79ad6d1a509be0676 +trove-classifiers==2026.5.7.17 \ + --hash=sha256:5ec0800de5e2ddbd7c663cb4c0c15328f132dc168813897c18866c5c7b93db33 \ + --hash=sha256:a04a48f8f0a787cb996514d3969ac7608aa3c60cb15d073c1e02801e60533e80 # via hatchling diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml deleted file mode 100644 index 824c3ec..0000000 --- a/.github/workflows/publish.yaml +++ /dev/null @@ -1,438 +0,0 @@ -name: publish - -on: - push: - branches: [ main, preview ] - workflow_dispatch: - -permissions: - contents: read - pages: write - id-token: write - -concurrency: - group: "pages" - cancel-in-progress: false - -jobs: - publish: - runs-on: html_publisher - environment: - name: ${{ github.ref_name == 'main' && 'github-pages' || 'preview' }} - url: ${{ steps.deployment.outputs.page_url }} - steps: - - - name: Checkout project - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd - - - name: Set up Python - uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 - with: - python-version: "3.12" - - - name: Install dependencies - run: | - pip install --upgrade pip - pip install nbconvert jupyter-book sphinx markdown beautifulsoup4 - - - name: Convert notebooks and create single-page app - run: | - mkdir -p site - - # Convert .ipynb notebooks to HTML fragments (body content only) - for notebook in */*.ipynb; do - if [ -f "$notebook" ]; then - jupyter nbconvert "$notebook" --to html \ - --template classic --HTMLExporter.theme=light \ - --no-prompt --stdout > "temp_$(basename "$notebook" .ipynb).html" - fi - done - - # Convert .py Databricks notebooks to HTML fragments - chmod +x .github/scripts/convert_notebooks.py - python3 .github/scripts/convert_notebooks.py - - # Create single-page application with embedded content - python3 << 'EOF' - import os - import json - import markdown - import re - import glob - from bs4 import BeautifulSoup - - # Read README.md - readme_content = "" - if os.path.exists('README.md'): - with open('README.md', 'r') as f: - readme_content = markdown.markdown(f.read()) - - # Get repository name and format title - repo_name = os.environ.get('GITHUB_REPOSITORY', '').split('/')[-1] - title = ' '.join(word.capitalize() for word in repo_name.split('-')) + ' Accelerator' - - # Collect all notebook content - notebooks = {} - - # Read .py notebook fragments - if os.path.exists('notebook_fragments.json'): - with open('notebook_fragments.json', 'r') as f: - py_notebooks = json.load(f) - notebooks.update(py_notebooks) - - # Read .ipynb notebook content (extract body from temp files) - for temp_file in glob.glob('temp_*.html'): - if 'fragment' not in temp_file: # These are the nbconvert outputs - name = temp_file.replace('temp_', '').replace('.html', '') - with open(temp_file, 'r') as f: - content = f.read() - # Extract body content - soup = BeautifulSoup(content, 'html.parser') - body = soup.find('body') - if body: - # Find the notebook container - container = body.find('div', class_='container') - if container: - notebooks[name] = str(container) - else: - notebooks[name] = str(body) - - # Create single-page application - html = f''' - -
-+ Provided by{' '} + + Databricks Industry Solutions + +
++ A collection of custom PySpark data source connectors for formats and protocols + that don't have a built-in Spark reader. +
+ +{source.description}
+{capability.description}
++ Follow the installation guide to add Python Data Sources to your PySpark project. +
+ +