Skip to content

Commit 32e9da2

Browse files
Adds publishing to pypi (#7)
* Adds publishing to pypi Signed-off-by: Elena Kolevska <[email protected]> * Updates header Signed-off-by: Elena Kolevska <[email protected]> * copy paste leftovers Signed-off-by: Elena Kolevska <[email protected]> --------- Signed-off-by: Elena Kolevska <[email protected]>
1 parent af1ca1a commit 32e9da2

File tree

4 files changed

+102
-63
lines changed

4 files changed

+102
-63
lines changed

.github/workflows/release.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
#
2+
# Copyright 2025 The Dapr Authors
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
# http://www.apache.org/licenses/LICENSE-2.0
7+
# Unless required by applicable law or agreed to in writing, software
8+
# distributed under the License is distributed on an "AS IS" BASIS,
9+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implieh.
10+
# See the License for the specific language governing permissions and
11+
# limitations under the License.
12+
#
13+
14+
name: Build Validation
15+
16+
on:
17+
push:
18+
tags: ["v*"]
19+
20+
jobs:
21+
build-and-publish:
22+
name: Publish to PyPI
23+
runs-on: ubuntu-latest
24+
env:
25+
TWINE_USERNAME: "__token__"
26+
steps:
27+
- uses: actions/checkout@v4
28+
with:
29+
fetch-depth: 0
30+
- name: Set up Python 3.11
31+
uses: actions/setup-python@v5
32+
with:
33+
python-version: 3.11
34+
- name: Install dependencies
35+
run: |
36+
python -m pip install --upgrade pip
37+
pip install setuptools wheel twine build
38+
- name: Build and publish Dapr Agents
39+
env:
40+
TWINE_PASSWORD: ${{ secrets.PYPI_UPLOAD_PASS }}
41+
run: |
42+
python -m build
43+
twine upload dist/*

pyproject.toml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
[build-system]
2+
requires = ["setuptools>=61.0.0", "setuptools_scm"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "dapr-agents"
7+
dynamic = ["version"]
8+
description = "Agentic Workflows Made Simple"
9+
keywords = ["dapr", "agents", "workflows"]
10+
readme = "README.md"
11+
requires-python = ">=3.10"
12+
license = {file = "LICENSE"}
13+
authors = [
14+
{name = "Dapr Authors", email = "[email protected]"}
15+
]
16+
classifiers = [
17+
"Development Status :: 2 - Pre-Alpha",
18+
"Intended Audience :: Developers",
19+
"License :: OSI Approved :: Apache Software License",
20+
"Operating System :: OS Independent",
21+
"Programming Language :: Python",
22+
"Programming Language :: Python :: 3.10",
23+
"Programming Language :: Python :: 3.11",
24+
"Programming Language :: Python :: 3.12",
25+
"Programming Language :: Python :: 3.13",
26+
]
27+
28+
dependencies = [
29+
"dapr-dev >= 1.13.0rc1.dev",
30+
"durabletask-dapr >= 0.2.0a4",
31+
"pydantic == 2.10.5",
32+
"openai == 1.59.6",
33+
"openapi-pydantic == 0.5.1",
34+
"openapi-schema-pydantic==1.2.4",
35+
"regex >= 2023.12.25",
36+
"Jinja2 == 3.1.5",
37+
"azure-identity == 1.19.0",
38+
"dapr == 1.14.0",
39+
"dapr-ext-fastapi == 1.14.0",
40+
"dapr-ext-workflow == 0.5.0",
41+
"colorama == 0.4.6",
42+
"cloudevents == 1.11.0",
43+
"pyyaml == 6.0.2",
44+
"rich == 13.9.4",
45+
"huggingface_hub == 0.27.1",
46+
"numpy == 2.2.2",
47+
]
48+
49+
[project.urls]
50+
Documentation = "https://github.com/dapr/docs"
51+
Source = "https://github.com/dapr/python-sdk"
52+
53+
[tool.setuptools.packages.find]
54+
include = ["dapr_agents"]
55+
exclude = ["tests"]
56+
57+
[tool.setuptools_scm]
58+
version_scheme = "guess-next-dev"
59+
local_scheme = "no-local-version"

setup.cfg

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

setup.py

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

0 commit comments

Comments
 (0)