villebro opened a new pull request, #38360:
URL: https://github.com/apache/superset/pull/38360

   ### SUMMARY
   
   Simplifies extension development by establishing 
**convention-over-configuration** for entry points. Eliminates the need to 
configure `entryPoints` arrays by requiring standard file locations instead.
   
   **Before:**
   ```json
   {
     "backend": {
       "entryPoints": ["my_extension.entrypoint"],
       "files": ["backend/src/**/*.py"]
     }
   }
   ```
   
   **After:** 
   - Backend entry point: 
`backend/src/superset_extensions/{publisher}/{name}/entrypoint.py`
   - Frontend entry point: `frontend/src/index.tsx`
   - Build config: `backend/pyproject.toml`
   
   ## Breaking Changes
   
   ⚠️ **Extensions must migrate** to use conventional entry points:
   
   1. **Remove `backend` section** from `extension.json`
   2. **Move entry point** to: 
`backend/src/superset_extensions/{publisher_snake}/{name_snake}/entrypoint.py`  
   3. **Add build config** to `backend/pyproject.toml`:
      ```toml
      [tool.apache_superset_extensions.build]
      include = ["src/superset_extensions/{publisher}/{name}/**/*.py"]
      exclude = []
      ```
   
   ## Key Changes
   
   - **Schema**: Removed `entryPoints` field from `ExtensionConfigBackend` and 
`ManifestBackend`
   - **CLI**: Updated validation, build logic, and templates for 
convention-based approach
   - **Templates**: Backend config moved from `extension.json` to 
`pyproject.toml`
   - **Tests**: Updated all tests to work with new approach
   - **Docs**: Updated developer documentation
   
   ## Benefits
   
   ✅ **Simpler development** - No configuration needed, predictable file 
locations  
   ✅ **Python standards** - Uses `pyproject.toml` following PEP 518/621  
   ✅ **Future-ready** - Foundation for automatic contribution discovery  
   ### ADDITIONAL INFORMATION
   <!--- Check any relevant boxes with "x" -->
   <!--- HINT: Include "Fixes #nnn" if you are fixing an existing issue -->
   - [ ] Has associated issue:
   - [ ] Required feature flags:
   - [ ] Changes UI
   - [ ] Includes DB Migration (follow approval process in 
[SIP-59](https://github.com/apache/superset/issues/13351))
     - [ ] Migration is atomic, supports rollback & is backwards-compatible
     - [ ] Confirm DB migration upgrade and downgrade tested
     - [ ] Runtime estimates and downtime expectations provided
   - [ ] Introduces new feature or API
   - [ ] Removes existing feature or API
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to