Skip to content

Commit

Permalink
PYTHON-4246 Fix release publish task (#760)
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaneHarvey committed Feb 28, 2024
1 parent 0fbf9a0 commit 3cf9abd
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
find . -type d -empty -delete
- uses: actions/upload-artifact@v4
with:
name: all-dist-${{ github.job }}
name: all-dist
path: "./*"

publish:
Expand All @@ -77,7 +77,7 @@ jobs:
- name: Download all the dists
uses: actions/download-artifact@v4
with:
name: all-dist-${{ github.job }}
name: all-dist
path: dist/
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
5 changes: 5 additions & 0 deletions bindings/python/CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
Changelog
=========

Changes in Version 1.9.1
------------------------

- Fix bug in our release process which blocked uploading 1.9.0.

Changes in Version 1.9.0
------------------------

Expand Down
2 changes: 1 addition & 1 deletion bindings/python/pymongocrypt/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

__version__ = '1.9.0'
__version__ = '1.9.1'

_MIN_LIBMONGOCRYPT_VERSION = '1.8.0'
6 changes: 3 additions & 3 deletions bindings/python/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ rm -rf dist .venv build libmongocrypt pymongocrypt/*.so pymongocrypt/*.dll pymon

function get_libmongocrypt() {
TARGET=$1
NOCRYPTO_SO=$2
MONGOCRYPT_SO=$2
rm -rf build libmongocrypt pymongocrypt/*.so pymongocrypt/*.dll pymongocrypt/*.dylib
curl -O https://s3.amazonaws.com/mciuploads/libmongocrypt-release/$TARGET/${BRANCH}/${REVISION}/libmongocrypt.tar.gz
mkdir libmongocrypt
tar xzf libmongocrypt.tar.gz -C ./libmongocrypt
chmod +x ${NOCRYPTO_SO}
cp ${NOCRYPTO_SO} pymongocrypt/
chmod +x ${MONGOCRYPT_SO}
cp ${MONGOCRYPT_SO} pymongocrypt/
rm -rf ./libmongocrypt libmongocrypt.tar.gz
}

Expand Down

0 comments on commit 3cf9abd

Please sign in to comment.