Skip to content

Commit 0d90170

Browse files
committed
Remove development builds
Signed-off-by: Sergio Herrera <627709+seherv@users.noreply.github.com>
1 parent a56c7b1 commit 0d90170

18 files changed

Lines changed: 52 additions & 737 deletions

File tree

.github/workflows/build-push-to-main.yaml

Lines changed: 0 additions & 122 deletions
This file was deleted.

.github/workflows/build.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: dapr-python
33
on:
44
push:
55
branches:
6+
- main
67
- feature/*
78
pull_request:
89
branches:
@@ -36,6 +37,15 @@ jobs:
3637
echo "Source files are not formatted correctly. Run 'uv run ruff check --fix && uv run ruff format'."
3738
exit 1
3839
fi
40+
- name: Verify main is on a .dev version
41+
if: github.ref == 'refs/heads/main' || github.base_ref == 'main'
42+
run: |
43+
uv run python -c "
44+
from dapr.version import __version__
45+
assert __version__.endswith('.dev'), (
46+
f'main __version__ must end in .dev (got {__version__!r}); see RELEASE.md'
47+
)
48+
"
3949
4050
build:
4151
needs: lint

README.md

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,20 +49,24 @@ pip3 install dapr-ext-grpc
4949
pip3 install dapr-ext-fastapi
5050
```
5151

52-
* Development package
52+
* In-development version
53+
54+
Only tagged releases are published to PyPI. To install the in-development
55+
version (the current state of `main`), point pip at the GitHub repository:
5356

5457
```sh
55-
# Install Dapr client sdk
56-
pip3 install dapr
58+
# Install the latest dev build of the Dapr client sdk
59+
pip3 install "dapr @ git+https://github.com/dapr/python-sdk.git@main"
5760

58-
# Install Dapr gRPC AppCallback service extension
59-
pip3 install dapr-ext-grpc-dev
61+
# Install the latest dev build of the gRPC AppCallback service extension
62+
pip3 install "dapr-ext-grpc @ git+https://github.com/dapr/python-sdk.git@main#subdirectory=ext/dapr-ext-grpc"
6063

61-
# Install Dapr Fast Api extension for Actor
62-
pip3 install dapr-ext-fastapi-dev
64+
# Install the latest dev build of the FastAPI extension for Actor
65+
pip3 install "dapr-ext-fastapi @ git+https://github.com/dapr/python-sdk.git@main#subdirectory=ext/dapr-ext-fastapi"
6366
```
6467

65-
> Note: Do not install both packages.
68+
Replace `@main` with a commit SHA or release branch (e.g. `@release-1.17`)
69+
to pin to a specific point in history.
6670

6771
### Try out examples
6872

RELEASE.md

Lines changed: 23 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,19 @@ release-X.Y ●──●────●───●───●───●
3434
3535
first commit on release-X.Y:
3636
- versions (prev).dev → X.Y.0rc0
37-
- dapr deps >=(prev).dev → >=X.Y.0rc0
3837
simultaneously on main:
3938
- versions (prev).dev → X.Y.0.dev
40-
- dapr deps >=(prev).dev → >=X.Y.0.dev
4139
```
4240

41+
Only tag pushes (`v*`) publish to PyPI. Pushes to `main` and release branches
42+
do not publish anything.
43+
44+
Users who need the development builds can install from git
45+
(see the [README](./README.md#install-dapr-python-sdk)).
46+
4347
## Version files
4448

45-
Every package in this repository has one version file and, for extensions, one `setup.cfg`
46-
dependency line that must be kept in sync during a release.
49+
Every package in this repository has one version file.
4750

4851
**Version files** (set `__version__`):
4952
- `dapr/version/version.py`
@@ -54,24 +57,16 @@ dependency line that must be kept in sync during a release.
5457
- `ext/dapr-ext-strands/dapr/ext/strands/version.py`
5558
- `ext/flask_dapr/flask_dapr/version.py`
5659

57-
**Dependency lower bounds** in extension `setup.cfg` files (each has `dapr >= <version>`):
58-
- `ext/dapr-ext-workflow/setup.cfg`
59-
- `ext/dapr-ext-grpc/setup.cfg`
60-
- `ext/dapr-ext-fastapi/setup.cfg`
61-
- `ext/dapr-ext-langgraph/setup.cfg`
62-
- `ext/dapr-ext-strands/setup.cfg`
63-
- `ext/flask_dapr/setup.cfg`
64-
6560
## Version string conventions
6661

67-
| Stage | `__version__` example | dep lower bound example |
68-
|---|---|---|
69-
| Development (always on `main`) | `1.17.0.dev` | `dapr >= 1.17.0.dev` |
70-
| First RC (on `release-X.Y`) | `1.17.0rc0` | `dapr >= 1.17.0rc0` |
71-
| Subsequent RCs (on `release-X.Y`) | `1.17.0rc1`, `1.17.0rc2`, … | `dapr >= 1.17.0rc1` |
72-
| Stable release | `1.17.0` | `dapr >= 1.17.0` |
73-
| Patch release candidate | `1.17.1rc1` | `dapr >= 1.17.1rc1` |
74-
| Stable patch release | `1.17.1` | `dapr >= 1.17.1` |
62+
| Stage | `__version__` example |
63+
| ---------------------------------- | ----------------------------- |
64+
| Development (always on `main`) | `1.18.0.dev` |
65+
| First RC (on `release-X.Y`) | `1.18.0rc0` |
66+
| Subsequent RCs (on `release-X.Y`) | `1.18.0rc1`, `1.18.0rc2`, … |
67+
| Stable release | `1.18.0` |
68+
| Patch release candidate | `1.18.1rc1` |
69+
| Stable patch release | `1.18.1` |
7570

7671
## Remote convention
7772

@@ -94,17 +89,13 @@ git push upstream release-X.Y
9489

9590
### 2. Bump versions on the release branch (first commit)
9691

97-
On the newly created `release-X.Y` branch, open a PR **targeting `release-X.Y`** that does:
98-
99-
- In all seven version files: change `X.Y.0.dev``X.Y.0rc0`
100-
- In all six extension `setup.cfg` files: change `dapr >= X.Y.0.dev``dapr >= X.Y.0rc0`
92+
On the newly created `release-X.Y` branch, open a PR **targeting `release-X.Y`** that
93+
changes `X.Y.0.dev``X.Y.0rc0` in all the version files.
10194

10295
### 3. Bump versions on `main` (second commit)
10396

104-
Open a PR targeting `main` to align it with the new release version:
105-
106-
- In all seven version files: change the previous dev version to `X.Y.0.dev`
107-
- In all six extension `setup.cfg` files: change the previous `dapr >= ...dev` to `dapr >= X.Y.0.dev`
97+
Open a PR targeting `main` that changes the previous dev version to `X.Y.0.dev` in all
98+
the version files.
10899

109100
### 4. Push the tag
110101

@@ -127,10 +118,8 @@ Perform this when you want to publish `X.Y.0rcN` (N ≥ 1) from an existing `rel
127118

128119
### 1. Bump versions on the release branch
129120

130-
Open a PR **targeting `release-X.Y`** that does:
131-
132-
- In all seven version files: change `X.Y.0rc(N-1)``X.Y.0rcN`
133-
- In all six extension `setup.cfg` files: change `dapr >= X.Y.0rc(N-1)``dapr >= X.Y.0rcN`
121+
Open a PR **targeting `release-X.Y`** that changes `X.Y.0rc(N-1)``X.Y.0rcN` in all
122+
the version files.
134123

135124
### 2. Push the tag
136125

@@ -150,10 +139,8 @@ initial `X.Y.0` or a patch release (`X.Y.1`, `X.Y.2`, …).
150139

151140
### 1. Bump versions on the release branch
152141

153-
Open a PR **targeting `release-X.Y`** that does:
154-
155-
- In all seven version files: change `X.Y.ZrcN``X.Y.Z` (drop the `rcN` suffix)
156-
- In all six extension `setup.cfg` files: change `dapr >= X.Y.ZrcN``dapr >= X.Y.Z`
142+
Open a PR **targeting `release-X.Y`** that drops the `rcN` suffix in all the version
143+
files: `X.Y.ZrcN``X.Y.Z`.
157144

158145
### 2. Push the tag
159146

dapr/version/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
limitations under the License.
1414
"""
1515

16-
__version__ = '1.17.0.dev'
16+
__version__ = '1.18.0.dev'

ext/dapr-ext-fastapi/dapr/ext/fastapi/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
limitations under the License.
1414
"""
1515

16-
__version__ = '1.17.0.dev'
16+
__version__ = '1.18.0.dev'

ext/dapr-ext-fastapi/setup.py

Lines changed: 0 additions & 83 deletions
This file was deleted.

ext/dapr-ext-grpc/dapr/ext/grpc/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
limitations under the License.
1414
"""
1515

16-
__version__ = '1.17.0.dev'
16+
__version__ = '1.18.0.dev'

0 commit comments

Comments
 (0)