Skip to content

Commit ca54886

Browse files
Merge branch 'main' into pymysql-sqlcomment
2 parents 2759bd2 + 1c820ea commit ca54886

File tree

77 files changed

+5632
-2007
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+5632
-2007
lines changed

.github/component_owners.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,3 +71,7 @@ components:
7171
- karthikscale3
7272
- lmolkova
7373
- lzchen
74+
- gyliu513
75+
- nirga
76+
- alizenhom
77+
- codefromthecrypt
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash -e
2+
3+
sed -i "/\[stable\]/{n;s/version=.*/version=$1/}" eachdist.ini
4+
sed -i "/\[prerelease\]/{n;s/version=.*/version=$2/}" eachdist.ini
5+
6+
./scripts/eachdist.py update_patch_versions \
7+
--stable_version=$1 \
8+
--unstable_version=$2 \
9+
--stable_version_prev=$3 \
10+
--unstable_version_prev=$4
11+

.github/workflows/package-release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,9 @@ jobs:
102102
- name: Publish to PyPI
103103
env:
104104
TWINE_USERNAME: '__token__'
105-
TWINE_PASSWORD: ${{ secrets.test_pypi_token }}
105+
TWINE_PASSWORD: ${{ secrets.pypi_password }}
106106
run: |
107-
twine upload --repository testpypi --skip-existing --verbose dist/*
107+
twine upload --skip-existing --verbose dist/*
108108
109109
- name: Generate release notes
110110
env:

.github/workflows/prepare-patch-release.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,18 @@ jobs:
4040
exit 1
4141
fi
4242
43+
stable_version_prev="$stable_major_minor.$((stable_patch))"
44+
unstable_version_prev="0.${unstable_minor}b$((unstable_patch))"
4345
stable_version="$stable_major_minor.$((stable_patch + 1))"
4446
unstable_version="0.${unstable_minor}b$((unstable_patch + 1))"
4547
4648
echo "STABLE_VERSION=$stable_version" >> $GITHUB_ENV
4749
echo "UNSTABLE_VERSION=$unstable_version" >> $GITHUB_ENV
50+
echo "STABLE_VERSION_PREV=$stable_version_prev" >> $GITHUB_ENV
51+
echo "UNSTABLE_VERSION_PREV=$unstable_version_prev" >> $GITHUB_ENV
4852
4953
- name: Update version
50-
run: .github/scripts/update-version.sh $STABLE_VERSION $UNSTABLE_VERSION
54+
run: .github/scripts/update-version-patch.sh $STABLE_VERSION $UNSTABLE_VERSION $STABLE_VERSION_PREV $UNSTABLE_VERSION_PREV
5155

5256
- name: Set up Python 3.9
5357
uses: actions/setup-python@v5

.github/workflows/release.yml

Lines changed: 7 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -81,14 +81,13 @@ jobs:
8181
# rejected by pypi (e.g "3 - Beta"). This would cause a failure during the
8282
# middle of the package upload causing the action to fail, and certain packages
8383
# might have already been updated, this would be bad.
84-
# EDIT: 5/31/2024 - TestPypi now requires a verified email. Commenting out as a temporary measure
85-
# until we found TestPypi credentials.
86-
# - name: Publish to TestPyPI
87-
# env:
88-
# TWINE_USERNAME: '__token__'
89-
# TWINE_PASSWORD: ${{ secrets.test_pypi_token }}
90-
# run: |
91-
# twine upload --repository testpypi --skip-existing --verbose dist/*
84+
85+
- name: Publish to TestPyPI
86+
env:
87+
TWINE_USERNAME: '__token__'
88+
TWINE_PASSWORD: ${{ secrets.test_pypi_token }}
89+
run: |
90+
twine upload --repository testpypi --skip-existing --verbose dist/*
9291
9392
- name: Publish to PyPI
9493
env:
@@ -119,36 +118,3 @@ jobs:
119118
# the step below is creating a pull request against main
120119
ref: main
121120

122-
- name: Copy change log updates to main
123-
env:
124-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
125-
run: |
126-
echo "VERSION=${STABLE_VERSION}\/${UNSTABLE_VERSION}" >> $GITHUB_ENV
127-
echo "RELEASE_TAG=$STABLE_VERSION" >> $GITHUB_ENV
128-
./scripts/merge_changelog_to_main.sh
129-
130-
- name: Use CLA approved github bot
131-
run: .github/scripts/use-cla-approved-github-bot.sh
132-
133-
- name: Create pull request against main
134-
env:
135-
# not using secrets.GITHUB_TOKEN since pull requests from that token do not run workflows
136-
GITHUB_TOKEN: ${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN }}
137-
run: |
138-
message="Copy change log updates from $GITHUB_REF_NAME"
139-
body="Copy log updates from \`$GITHUB_REF_NAME\`."
140-
branch="opentelemetrybot/copy-change-log-updates-from-${GITHUB_REF_NAME//\//-}"
141-
142-
if [[ -z $PRIOR_VERSION_WHEN_PATCH ]]; then
143-
if git diff --quiet; then
144-
echo there are no updates needed to the change log on main, not creating pull request
145-
exit 0 # success
146-
fi
147-
fi
148-
149-
git commit -a -m "$message"
150-
git push origin HEAD:$branch
151-
gh pr create --title "$message" \
152-
--body "$body" \
153-
--head $branch \
154-
--base main

0 commit comments

Comments
 (0)