Skip to content

Commit 331b967

Browse files
Sets up CI for publishing package to pypy (#1)
* Sets up CI for publishing to pypy Signed-off-by: Elena Kolevska <[email protected]> * mention fork in the readme page Signed-off-by: Elena Kolevska <[email protected]> --------- Signed-off-by: Elena Kolevska <[email protected]>
1 parent c17a3e8 commit 331b967

File tree

3 files changed

+27
-4
lines changed

3 files changed

+27
-4
lines changed

.github/workflows/pr-validation.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ name: Build Validation
66
on:
77
push:
88
branches: [ "main" ]
9+
tags: ["v*"]
910
pull_request:
1011
branches: [ "main" ]
1112

@@ -35,3 +36,25 @@ jobs:
3536
- name: Pytest unit tests
3637
run: |
3738
pytest -m "not e2e" --verbose
39+
publish:
40+
needs: build
41+
if: startswith(github.ref, 'refs/tags/v')
42+
runs-on: ubuntu-latest
43+
env:
44+
TWINE_USERNAME: "__token__"
45+
steps:
46+
- uses: actions/checkout@v4
47+
- name: Set up Python 3.11
48+
uses: actions/setup-python@v5
49+
with:
50+
python-version: 3.11
51+
- name: Install dependencies
52+
run: |
53+
python -m pip install --upgrade pip
54+
pip install setuptools wheel twine
55+
- name: Build and publish Dapr Python SDK
56+
env:
57+
TWINE_PASSWORD: ${{ secrets.PYPI_UPLOAD_PASS }}
58+
run: |
59+
python -m build
60+
twine upload dist/*

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Durable Task Client SDK for Python
1+
# Durable Task Client SDK for Python (Dapr fork)
22

33
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)
44
[![Build Validation](https://github.com/microsoft/durabletask-python/actions/workflows/pr-validation.yml/badge.svg)](https://github.com/microsoft/durabletask-python/actions/workflows/pr-validation.yml)

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ requires = ["setuptools", "wheel"]
88
build-backend = "setuptools.build_meta"
99

1010
[project]
11-
name = "durabletask"
11+
name = "durabletask-dapr"
1212
version = "0.1.1-alpha.1"
1313
description = "A Durable Task Client SDK for Python"
1414
keywords = [
@@ -29,8 +29,8 @@ dependencies = [
2929
]
3030

3131
[project.urls]
32-
repository = "https://github.com/microsoft/durabletask-python"
33-
changelog = "https://github.com/microsoft/durabletask-python/blob/main/CHANGELOG.md"
32+
repository = "https://github.com/dapr/durabletask-python"
33+
changelog = "https://github.com/dapr/durabletask-python/blob/main/CHANGELOG.md"
3434

3535
[tool.setuptools.packages.find]
3636
include = ["durabletask", "durabletask.*"]

0 commit comments

Comments
 (0)