Skip to content

Commit 0d005ab

Browse files
committed
fix: rename PyPI distribution to google-cloud-managed-spark-connect
Aligns with Google's naming convention for other google-cloud-* client libraries rather than the shorter managed-spark-connect.
1 parent 4cb5380 commit 0d005ab

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ requiring additional steps.
88
## Install
99

1010
```sh
11-
pip install managed_spark_connect
11+
pip install google-cloud-managed-spark-connect
1212
```
1313

1414
## Uninstall
1515

1616
```sh
17-
pip uninstall managed_spark_connect
17+
pip uninstall google-cloud-managed-spark-connect
1818
```
1919

2020
## Setup
@@ -39,7 +39,7 @@ in your code using the builder API:
3939
1. Install the latest version of Managed Spark Connect:
4040

4141
```sh
42-
pip install -U managed-spark-connect
42+
pip install -U google-cloud-managed-spark-connect
4343
```
4444

4545
2. Add the required imports into your PySpark application or notebook and start
@@ -127,7 +127,7 @@ The package supports the [sparksql-magic](https://github.com/cryeo/sparksql-magi
127127

128128
**Installation**: To use magic commands, install the required dependencies manually:
129129
```bash
130-
pip install managed-spark-connect
130+
pip install google-cloud-managed-spark-connect
131131
pip install IPython sparksql-magic
132132
```
133133

@@ -165,12 +165,12 @@ See [sparksql-magic](https://github.com/cryeo/sparksql-magic) for more examples.
165165

166166
**Note**: Magic commands are optional. If you only need basic ManagedSparkSession functionality without Jupyter magic support, install only the base package:
167167
```bash
168-
pip install managed-spark-connect
168+
pip install google-cloud-managed-spark-connect
169169
```
170170

171171
## Migrating from dataproc-spark-connect
172172

173-
The `dataproc-spark-connect` package and the `google.cloud.dataproc_spark_connect` module have been renamed to `managed-spark-connect` / `google.cloud.managed_spark_connect`, and `DataprocSparkSession` has been renamed to `ManagedSparkSession`. The old import path and class name still work but emit a `DeprecationWarning` — update your imports when convenient:
173+
The `dataproc-spark-connect` package and the `google.cloud.dataproc_spark_connect` module have been renamed to `google-cloud-managed-spark-connect` / `google.cloud.managed_spark_connect`, and `DataprocSparkSession` has been renamed to `ManagedSparkSession`. The old import path and class name still work but emit a `DeprecationWarning` — update your imports when convenient:
174174

175175
```python
176176
# Before

google/cloud/managed_spark_connect/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from .session import ManagedSparkSession
1818

1919
old_package_names = ["google-spark-connect", "dataproc-spark-connect"]
20-
current_package_name = "managed-spark-connect"
20+
current_package_name = "google-cloud-managed-spark-connect"
2121
for old_package_name in old_package_names:
2222
try:
2323
importlib.metadata.distribution(old_package_name)

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020

2121
setup(
22-
name="managed-spark-connect",
22+
name="google-cloud-managed-spark-connect",
2323
version="1.1.0",
2424
description="Managed Spark client library for Spark Connect",
2525
long_description=long_description,

0 commit comments

Comments
 (0)