-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SNOW-1042090 Add release notes to prepare for 0.4.0 release (#24)
- Loading branch information
1 parent
d49943d
commit 403bdd6
Showing
5 changed files
with
63 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
#!/bin/bash -xe | ||
|
||
# This script builds snowflake-telemetry-python for release. It is called from | ||
# a Jenkins job called SnowflakeTelemetryPythonPackageBuilder. | ||
# | ||
# Prequisites: | ||
# - activate a clean virtual environment with | ||
# python3 -m venv .venv | ||
# source .venv/bin/activate | ||
# | ||
# Then, run this script. | ||
# | ||
# Note: While this script is intended to be run in the Jenkins environment to | ||
# create official build artifacts, you can test it on your MacBook by | ||
# using its built-in python3, then creating an environment like this: | ||
# | ||
# python3 -m venv .venv | ||
# source .venv/bin/activate | ||
# # cd into the snowflake-telemetry-python git root dir | ||
# export SNOWFLAKE_TELEMETRY_DIR=$(pwd) | ||
|
||
VENV_DIR=venv_$(date +%s) | ||
python3 -m venv ${VENV_DIR} | ||
source ${VENV_DIR}/bin/activate | ||
|
||
# install and upgrade pre-requisite packages for building snowflake-telemetry-python | ||
python3 -m pip install --upgrade pip | ||
python3 -m pip install --upgrade build | ||
|
||
# clean up the dist directory | ||
rm -rf ./dist | ||
mkdir ./dist | ||
|
||
# set default build number to 0, if SNOWFLAKE_TELEMETRY_BUILD_NUMBER is not set | ||
echo "Start building snowflake-telemetry-python package with build_number: ${SNOWFLAKE_TELEMETRY_BUILD_NUMBER:=0}" | ||
SNOWFLAKE_TELEMETRY_BUILD_NUMBER=${SNOWFLAKE_TELEMETRY_BUILD_NUMBER:=0} python3 -m build | ||
|
||
deactivate | ||
rm -rf ${VENV_DIR} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,8 +4,13 @@ | |
setup, | ||
) | ||
|
||
DESCRIPTION = 'Snowflake Telemetry Python' | ||
LONG_DESCRIPTION = 'This package provides a set of telemetry APIs for use in Snowflake' | ||
DESCRIPTION = 'Snowflake Telemetry for Python' | ||
LONG_DESCRIPTION = """This package provides a set of telemetry APIs for developers building on the Snowflake platform. | ||
Documentation is available at: https://docs.snowflake.com/en/developer-guide/logging-tracing/tracing-python | ||
Source code is also available at: https://github.com/snowflakedb/snowflake-telemetry-python | ||
""" | ||
SNOWFLAKE_TELEMETRY_SRC_DIR = os.path.join("src", "snowflake", "telemetry") | ||
|
||
VERSION = None | ||
|
@@ -18,10 +23,10 @@ | |
version=VERSION, | ||
author="Snowflake, Inc", | ||
author_email="[email protected]", | ||
url="https://www.snowflake.com/", | ||
description=DESCRIPTION, | ||
long_description=LONG_DESCRIPTION, | ||
install_requires=[ | ||
"setuptools >= 40.0.0", | ||
"opentelemetry-api == 1.23.0", | ||
"opentelemetry-exporter-otlp-proto-common == 1.23.0", | ||
"opentelemetry-sdk == 1.23.0", | ||
|
@@ -54,6 +59,13 @@ | |
"Topic :: Software Development :: Libraries :: Application Frameworks", | ||
"Topic :: Software Development :: Libraries :: Python Modules", | ||
"Topic :: Scientific/Engineering :: Information Analysis", | ||
], | ||
], | ||
project_urls={ | ||
"Homepage": "https://www.snowflake.com/", | ||
"Changelog": "https://github.com/snowflakedb/snowflake-telemetry-python/blob/main/CHANGELOG.md", | ||
"Documentation": "https://docs.snowflake.com/en/developer-guide/logging-tracing/tracing-python", | ||
"Issues": "https://github.com/snowflakedb/snowflake-telemetry-python/issues", | ||
"Repository": "https://github.com/snowflakedb/snowflake-telemetry-python/", | ||
}, | ||
zip_safe=True, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
import os | ||
from setuptools import ( | ||
find_namespace_packages, | ||
setup, | ||
|