From ee6c338b73e48389bb9427408c204dcc65cef51c Mon Sep 17 00:00:00 2001 From: Tom Monk Date: Mon, 22 Apr 2024 15:07:55 -0700 Subject: [PATCH] SNOW-1063081 Update version to 0.4.0 (#26) --- .github/workflows/python-publish.yml | 39 +++++++++++++++++++ CHANGELOG.md | 2 +- anaconda/meta.yaml | 2 +- src/snowflake/telemetry/version.py | 2 +- tests/snowflake-telemetry-test-utils/setup.py | 2 +- 5 files changed, 43 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/python-publish.yml diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml new file mode 100644 index 0000000..72a940a --- /dev/null +++ b/.github/workflows/python-publish.yml @@ -0,0 +1,39 @@ +# This workflow will upload a Python Package using Twine when a release is created +# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries + +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. + +name: Upload Python Package + +on: + release: + types: [published] + +permissions: + contents: read + +jobs: + deploy: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Set up Python + uses: actions/setup-python@v3 + with: + python-version: '3.x' + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install build + - name: Build package + run: python -m build + - name: Publish package + uses: pypa/gh-action-pypi-publish@release/v1 + with: + user: __token__ + password: ${{ secrets.PYPI_API_TOKEN }} diff --git a/CHANGELOG.md b/CHANGELOG.md index 5209eff..5a5b7e2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # Release History -## 0.4.0 (2024-04-17) +## 0.4.0 (2024-04-22) * Upgrade OpenTelemetry Python dependencies to version 1.23.0 * Drop the dependency on package opentelemetry-exporter-otlp and all its transitive dependencies diff --git a/anaconda/meta.yaml b/anaconda/meta.yaml index 59260af..c72f3fb 100644 --- a/anaconda/meta.yaml +++ b/anaconda/meta.yaml @@ -1,6 +1,6 @@ package: name: snowflake_telemetry_python - version: "0.4.0.dev" + version: "0.4.0" source: path: {{ environ.get('SNOWFLAKE_TELEMETRY_DIR') }} diff --git a/src/snowflake/telemetry/version.py b/src/snowflake/telemetry/version.py index a239e6d..1abd7fa 100644 --- a/src/snowflake/telemetry/version.py +++ b/src/snowflake/telemetry/version.py @@ -4,4 +4,4 @@ # """Update this for the versions.""" -VERSION = "0.4.0.dev" +VERSION = "0.4.0" diff --git a/tests/snowflake-telemetry-test-utils/setup.py b/tests/snowflake-telemetry-test-utils/setup.py index e43cd32..2a4664d 100644 --- a/tests/snowflake-telemetry-test-utils/setup.py +++ b/tests/snowflake-telemetry-test-utils/setup.py @@ -16,7 +16,7 @@ long_description=LONG_DESCRIPTION, install_requires=[ "pytest >= 7.0.0", - "snowflake-telemetry-python == 0.4.0.dev", + "snowflake-telemetry-python == 0.4.0", ], packages=find_namespace_packages( where='src'