Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Build and release

on:
release:
types: [published]

jobs:
pypi-publish:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install uv
uses: astral-sh/setup-uv@v6
with:
enable-cache: true

- name: Build package
run: uv build

- name: Publish package to PyPi
run: uv publish --trusted-publishing always
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Connect is a simple, reliable, and interoperable RPC framework that combines the
## Installation

```bash
pip install connect-python
pip install connect-py
```

**⚠️ Dependency Notice**: For gRPC/gRPC-Web support, this package uses forked libraries:
Expand Down Expand Up @@ -266,7 +266,7 @@ This project includes a Protocol Buffer plugin (`protoc-gen-connect-python`) wri

## Contributing

We warmly welcome and greatly value contributions to the connect-python. However, before diving in, we kindly request that you take a moment to review our Contribution Guidelines.
We warmly welcome and greatly value contributions to the connect-py. However, before diving in, we kindly request that you take a moment to review our Contribution Guidelines.

Additionally, please carefully read the Contributor License Agreement (CLA) before submitting your contribution to Gaudiy. By submitting your contribution, you are considered to have accepted and agreed to be bound by the terms and conditions outlined in the CLA, regardless of circumstances.

Expand Down
4 changes: 2 additions & 2 deletions conformance/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ authors = [{ name = "tsubakiky", email = "salovers1205@gmail.com" }]
requires-python = ">=3.13"
dependencies = [
"anyio>=4.8.0",
"connect-python",
"connect-py",
"cryptography>=44.0.2",
"hypercorn",
]

[tool.uv.sources]
connect-python = { path = "../" }
connect-py = { path = "../" }
hypercorn = { git = "https://github.com/tsubakiky/hypercorn" }

[dependency-groups]
Expand Down
6 changes: 3 additions & 3 deletions conformance/uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions examples/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
[project]
name = "connect-python-examples"
name = "connect-py-examples"
description = "The Python implementation of Connect: Protobuf RPC that works."
readme = "README.md"
license = { text = "Apache-2.0" }
authors = [{ name = "tsubakiky", email = "salovers1205@gmail.com" }]
requires-python = ">=3.13"
version = "0.1.0"
dependencies = ["connect-python", "hypercorn"]
dependencies = ["connect-py", "hypercorn"]

[tool.uv]
dev-dependencies = ["mypy>=1.13.0", "pyright>=1.1.390", "ruff>=0.8.2"]

[tool.uv.sources]
connect-python = { path = "../" }
connect-py = { path = "../" }
hypercorn = { git = "https://github.com/tsubakiky/hypercorn" }

[tool.ruff]
Expand Down
8 changes: 4 additions & 4 deletions examples/uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ requires = ["hatchling"]
build-backend = "hatchling.build"

[project]
name = "connect-python"
name = "connect-py"
description = "The Python implementation of Connect: Protobuf RPC that works."
readme = "README.md"
license = { text = "Apache-2.0" }
Expand Down
2 changes: 1 addition & 1 deletion src/connect/protocol_connect/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@
CONNECT_UNARY_CONNECT_QUERY_VALUE = "v" + CONNECT_PROTOCOL_VERSION

_python_version = f"{sys.version_info.major}.{sys.version_info.minor}"
DEFAULT_CONNECT_USER_AGENT = f"connect-python/{__version__} (Python/{_python_version})"
DEFAULT_CONNECT_USER_AGENT = f"connect-py/{__version__} (Python/{_python_version})"
2 changes: 1 addition & 1 deletion src/connect/protocol_grpc/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

GRPC_ALLOWED_METHODS = [HTTPMethod.POST]
_python_version = f"{sys.version_info.major}.{sys.version_info.minor}"
DEFAULT_GRPC_USER_AGENT = f"connect-python/{__version__} (Python/{_python_version})"
DEFAULT_GRPC_USER_AGENT = f"connect-py/{__version__} (Python/{_python_version})"

RE_TIMEOUT = re.compile(r"^(\d{1,8})([HMSmun])$")

Expand Down
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading