This is an automated email from the ASF dual-hosted git repository. michaelsmolina pushed a commit to branch pep-625-updates in repository https://gitbox.apache.org/repos/asf/superset.git
commit f02798c61da2a151d70b52c2b98d1afa6918f93b Author: Michael S. Molina <[email protected]> AuthorDate: Wed Mar 26 14:52:41 2025 -0300 Change other references --- docs/docs/configuration/databases.mdx | 2 +- docs/docs/configuration/networking-settings.mdx | 2 +- docs/docs/contributing/contributing.mdx | 2 +- superset/config.py | 6 +++--- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/docs/configuration/databases.mdx b/docs/docs/configuration/databases.mdx index d30d4c2e39..e74c1e535a 100644 --- a/docs/docs/configuration/databases.mdx +++ b/docs/docs/configuration/databases.mdx @@ -72,7 +72,7 @@ are compatible with Superset. | [PostgreSQL](/docs/configuration/databases#postgres) | `pip install psycopg2` | `postgresql://<UserName>:<DBPassword>@<Database Host>/<Database Name>` | | [Presto](/docs/configuration/databases#presto) | `pip install pyhive` | `presto://{username}:{password}@{hostname}:{port}/{database}` | | [Rockset](/docs/configuration/databases#rockset) | `pip install rockset-sqlalchemy` | `rockset://<api_key>:@<api_server>` | -| [SAP Hana](/docs/configuration/databases#hana) | `pip install hdbcli sqlalchemy-hana` or `pip install apache-superset[hana]` | `hana://{username}:{password}@{host}:{port}` | +| [SAP Hana](/docs/configuration/databases#hana) | `pip install hdbcli sqlalchemy-hana` or `pip install apache_superset[hana]` | `hana://{username}:{password}@{host}:{port}` | | [StarRocks](/docs/configuration/databases#starrocks) | `pip install starrocks` | `starrocks://<User>:<Password>@<Host>:<Port>/<Catalog>.<Database>` | | [Snowflake](/docs/configuration/databases#snowflake) | `pip install snowflake-sqlalchemy` | `snowflake://{user}:{password}@{account}.{region}/{database}?role={role}&warehouse={warehouse}` | | SQLite | No additional library needed | `sqlite://path/to/file.db?check_same_thread=false` | diff --git a/docs/docs/configuration/networking-settings.mdx b/docs/docs/configuration/networking-settings.mdx index 03b2b981fe..4921a277d4 100644 --- a/docs/docs/configuration/networking-settings.mdx +++ b/docs/docs/configuration/networking-settings.mdx @@ -11,7 +11,7 @@ version: 1 To configure CORS, or cross-origin resource sharing, the following dependency must be installed: ```python -pip install apache-superset[cors] +pip install apache_superset[cors] ``` The following keys in `superset_config.py` can be specified to configure CORS: diff --git a/docs/docs/contributing/contributing.mdx b/docs/docs/contributing/contributing.mdx index b11d80fa69..109a3692df 100644 --- a/docs/docs/contributing/contributing.mdx +++ b/docs/docs/contributing/contributing.mdx @@ -26,7 +26,7 @@ More references: Here's a list of repositories that contain Superset-related packages: - [apache/superset](https://github.com/apache/superset) - is the main repository containing the `apache-superset` Python package + is the main repository containing the `apache_superset` Python package distributed on [pypi](https://pypi.org/project/apache_superset/). This repository also includes Superset's main TypeScript/JavaScript bundles and react apps under diff --git a/superset/config.py b/superset/config.py index 7d667ed699..5a6c685c74 100644 --- a/superset/config.py +++ b/superset/config.py @@ -818,7 +818,7 @@ STORE_CACHE_KEYS_IN_METADATA_DB = False # CORS Options # NOTE: enabling this requires installing the cors-related python dependencies -# `pip install .[cors]` or `pip install apache-superset[cors]`, depending +# `pip install .[cors]` or `pip install apache_superset[cors]`, depending ENABLE_CORS = False CORS_OPTIONS: dict[Any, Any] = {} @@ -1142,8 +1142,8 @@ SQLLAB_CTAS_NO_LIMIT = False # else: # return f'tmp_{schema}' # Function accepts database object, user object, schema name and sql that will be run. -SQLLAB_CTAS_SCHEMA_NAME_FUNC: ( - None | (Callable[[Database, models.User, str, str], str]) +SQLLAB_CTAS_SCHEMA_NAME_FUNC: None | ( + Callable[[Database, models.User, str, str], str] ) = None # If enabled, it can be used to store the results of long-running queries
