Skip to content
Draft
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
41 changes: 26 additions & 15 deletions .asf.yaml
Original file line number Diff line number Diff line change
@@ -1,34 +1,45 @@
notifications:
commits: [email protected]
issues: [email protected]
pullrequests: [email protected]
jira_options: link label link label
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

notifications:
commits: [email protected]
issues: [email protected]
pullrequests: [email protected]
jira_options: link label

github:
homepage: https://dubbo.apache.org/
description: "The python Implementation For Apache Dubbo."
description: Python-native microservice RPC framework for Apache Dubbo.
features:
# Enable wiki for documentation
wiki: false
# Enable issue management
issues: false
# Enable projects for project management boards
projects: false
collaborators:
- cnzakii
enabled_merge_buttons:
# enable squash button:
squash: true
# enable merge button:
merge: false
# disable rebase button:
rebase: false
labels:
- dubbo
- python
- rpc
- framework
- microservices
- grpc
- http2
- h2
- grpc
- asyncio
- distributed-systems
33 changes: 33 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

version: 2
updates:
- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly
groups:
actions:
patterns: ["*"]
- package-ecosystem: uv
directory: /
schedule:
interval: weekly
groups:
python:
patterns: ["*"]
145 changes: 145 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,145 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

name: CI

on:
pull_request:
push:
branches: [main]
workflow_dispatch:

permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

jobs:
lint:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: astral-sh/setup-uv@68559e99cc807c1eb7e9238fd43a15bba460eec2 # v10.3.3
- run: uv lock --check
- run: uv sync --locked --all-extras
- run: uv run --no-sync ruff check
- run: uv run --no-sync ruff format --check
- run: uv run --no-sync ty check

license:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: apache/skywalking-eyes/header@a196742f472feaffafea537ce5a2a4c3c53a8de4 # v0.9.0
with:
mode: check

test:
name: test (${{ matrix.os }}, Python ${{ matrix.python }})
runs-on: ${{ matrix.os }}
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python: ["3.11", "3.12", "3.13", "3.14"]
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: astral-sh/setup-uv@68559e99cc807c1eb7e9238fd43a15bba460eec2 # v10.3.3
with:
python-version: ${{ matrix.python }}
# The type group brings ty, which a test of the extension types runs.
- run: uv sync --locked --all-extras --no-dev --group test --group type
- run: uv run --no-sync pytest tests/unit tests/integration -m "not zookeeper and not nacos and not samples"

install:
name: default install
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: astral-sh/setup-uv@68559e99cc807c1eb7e9238fd43a15bba460eec2 # v10.3.3
with:
python-version: "3.14"
- run: uv sync --locked --no-dev --no-default-groups
- run: uv run --no-sync python scripts/check_install.py

integration:
name: integration (Python ${{ matrix.python }}, ZooKeeper ${{ matrix.zookeeper }}, Nacos ${{ matrix.nacos }})
runs-on: ubuntu-latest
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
# Each pair takes the oldest or the newest of the supported releases, so two jobs cover both ends.
include:
- { python: "3.11", zookeeper: 3.8.8, nacos: v2.4.3 }
- { python: "3.14", zookeeper: 3.9.7, nacos: v2.5.5 }
env:
ZOOKEEPER_TAG: ${{ matrix.zookeeper }}
NACOS_TAG: ${{ matrix.nacos }}
DUBBO_TEST_ZOOKEEPER: 127.0.0.1:2181
DUBBO_TEST_NACOS: 127.0.0.1:8848
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: astral-sh/setup-uv@68559e99cc807c1eb7e9238fd43a15bba460eec2 # v10.3.3
with:
python-version: ${{ matrix.python }}
- run: docker compose -f tests/integration/compose.yaml up -d --wait
- run: uv sync --locked --all-extras --no-dev --group test
- run: uv run --no-sync pytest tests/integration -m "zookeeper or nacos or samples"
- if: failure()
run: docker compose -f tests/integration/compose.yaml logs --no-color > compose.log
- if: failure()
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: compose-logs-${{ matrix.python }}
path: compose.log

build:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: astral-sh/setup-uv@68559e99cc807c1eb7e9238fd43a15bba460eec2 # v10.3.3
- run: uv build
- name: The wheel and the sdist carry LICENSE and NOTICE
run: |
for artifact in dist/*.whl dist/*.tar.gz; do
listing=$(python3 -c 'import sys, tarfile, zipfile; p = sys.argv[1]; print("\n".join(zipfile.ZipFile(p).namelist() if p.endswith(".whl") else tarfile.open(p).getnames()))' "$artifact")
for name in LICENSE NOTICE; do
grep -q "/$name$" <<< "$listing" || { echo "$artifact has no $name"; exit 1; }
done
done
# shortcut: without --strict, which fails while the project declares no readme; add it with the README.
- run: uvx twine check dist/*
19 changes: 0 additions & 19 deletions .github/workflows/license-check.yaml

This file was deleted.

55 changes: 55 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

# Builds the candidates of a release: the source release that the PMC votes on, and the sdist and wheel built from
# it. The release manager signs them, puts them to the vote, and uploads the sdist and wheel to PyPI after it passes.
name: Release

on:
push:
tags: ["v*"]
workflow_dispatch:

permissions:
contents: read

jobs:
candidates:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: astral-sh/setup-uv@68559e99cc807c1eb7e9238fd43a15bba460eec2 # v10.3.3
- name: Read the version
run: echo "VERSION=$(uv version --short)" >> "$GITHUB_ENV"
- name: The tag names the version
if: github.ref_type == 'tag'
run: test "${GITHUB_REF_NAME#v}" = "$VERSION"
- run: uv build
- name: Build the source release
run: >-
git archive --format=tar.gz --prefix="apache-dubbo-python-$VERSION/"
-o "dist/apache-dubbo-python-$VERSION-src.tar.gz" HEAD
- name: Write the checksums
working-directory: dist
run: for file in *; do sha512sum "$file" > "$file.sha512"; done
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: release-candidates-${{ env.VERSION }}
path: dist/
30 changes: 0 additions & 30 deletions .github/workflows/test-suite.yaml

This file was deleted.

Loading
Loading