Skip to content

Commit

Permalink
Update v0.6.0_install-and-publish-packages.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
cobycloud committed Dec 27, 2024
1 parent 45efbda commit 79b499e
Showing 1 changed file with 17 additions and 9 deletions.
26 changes: 17 additions & 9 deletions .github/workflows/v0.6.0_install-and-publish-packages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,17 +55,25 @@ jobs:
source $UNIQUE_VENV_PATH/bin/activate
pip install toml
- name: Set Version in pyproject.toml
- name: Update pyproject.toml Files
run: |
source $UNIQUE_VENV_PATH/bin/activate
python scripts/manage_packages.py set-version --directory pkgs --version ${{ env.version }}
for package in pkgs/*; do
if [ -d "$package" ] && [ -f "$package/pyproject.toml" ]; then
echo "Processing $package"
cd "$package"
# Update version field in pyproject.toml
sed -i "s/^version = \".*\"/version = \"${{ env.version }}\"/" pyproject.toml
- name: Set Dependency Versions in pyproject.toml
run: |
source $UNIQUE_VENV_PATH/bin/activate
python scripts/manage_packages.py set-dependency-versions --directory pkgs --version ${{ env.version }}
cat pkgs/pyproject.toml
cat pkgs/standards/swarmauri_standard/pyproject.toml
# Replace path dependencies with the extracted version
sed -i "s/{ path = \"..\/core\" }/\"^${{ env.version }}\"/" pyproject.toml
sed -i "s/{ path = \"..\/base\" }/\"^${{ env.version }}\"/" pyproject.toml
sed -i "s/{ path = \"..\/standard\" }/\"^${{ env.version }}\"/" pyproject.toml
cat pyproject.toml
cd -
fi
done
- name: Generate poetry.lock
run: |
Expand Down

0 comments on commit 79b499e

Please sign in to comment.