Skip to content

Commit 2b42941

Browse files
committed
fix: publish all packages versions
1 parent e5a5b73 commit 2b42941

4 files changed

Lines changed: 2626 additions & 10 deletions

File tree

.github/workflows/publish-dev.yml

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,7 @@ jobs:
7171
Write-Output "Package $PROJECT_NAME version set to $DEV_VERSION"
7272
7373
$dependencyMessage = @"
74-
## Development Package
75-
76-
- Add this package as a dependency in your pyproject.toml:
74+
### $PROJECT_NAME
7775
7876
``````toml
7977
[project]
@@ -112,12 +110,23 @@ jobs:
112110
$currentBody = $pr.body
113111
114112
# Check if there's already a development package section
115-
if ($currentBody -match '## Development Package') {
116-
# Replace the existing section with the new dependency message
117-
$newBody = $currentBody -replace '## Development Package(\r?\n|.)*?(?=##|$)', $dependencyMessage
113+
if ($currentBody -match '## Development Packages') {
114+
# Check if this specific package already has a section
115+
if ($currentBody -match "### $PROJECT_NAME") {
116+
# Replace the existing package section
117+
$newBody = $currentBody -replace "### $PROJECT_NAME(\r?\n|.)*?(?=###|##|$)", $dependencyMessage
118+
} else {
119+
# Append this package to the Development Packages section
120+
$newBody = $currentBody -replace '(## Development Packages)', "`$1`n`n$dependencyMessage"
121+
}
118122
} else {
119-
# Append the dependency message to the end of the description
120-
$newBody = if ($currentBody) { "$currentBody`n`n$dependencyMessage" } else { $dependencyMessage }
123+
# Create the Development Packages section with this package
124+
$packageSection = @"
125+
## Development Packages
126+
127+
$dependencyMessage
128+
"@
129+
$newBody = if ($currentBody) { "$currentBody`n`n$packageSection" } else { $packageSection }
121130
}
122131
123132
# Update the PR description
@@ -127,7 +136,7 @@ jobs:
127136
128137
Invoke-RestMethod -Uri $prUri -Method Patch -Headers $headers -Body $updateBody -ContentType "application/json"
129138
130-
Write-Output "Updated PR description with development package information"
139+
Write-Output "Updated PR description with development package information for $PROJECT_NAME"
131140
132141
- name: Build package
133142
run: uv build --package ${{ matrix.package.name }}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.11

packages/uipath-openai-agents/pyproject.toml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,17 @@ Repository = "https://github.com/UiPath/uipath-llamaindex-python"
3636
requires = ["hatchling"]
3737
build-backend = "hatchling.build"
3838

39+
[dependency-groups]
40+
dev = [
41+
"mypy>=1.14.1",
42+
"ruff>=0.9.4",
43+
"pytest>=7.4.0",
44+
"pytest-cov>=4.1.0",
45+
"pytest-mock>=3.11.1",
46+
"pre-commit>=4.1.0",
47+
"pytest-asyncio>=1.0.0",
48+
]
49+
3950
[tool.ruff]
4051
line-length = 88
4152
indent-width = 4
@@ -56,7 +67,9 @@ line-ending = "auto"
5667
plugins = [
5768
"pydantic.mypy"
5869
]
59-
exclude = []
70+
exclude = [
71+
"samples/.*"
72+
]
6073
follow_imports = "silent"
6174
warn_redundant_casts = true
6275
warn_unused_ignores = false
@@ -76,3 +89,9 @@ python_files = "test_*.py"
7689
addopts = "-ra -q"
7790
asyncio_default_fixture_loop_scope = "function"
7891
asyncio_mode = "auto"
92+
93+
[[tool.uv.index]]
94+
name = "testpypi"
95+
url = "https://test.pypi.org/simple/"
96+
publish-url = "https://test.pypi.org/legacy/"
97+
explicit = true

0 commit comments

Comments
 (0)