-
Notifications
You must be signed in to change notification settings - Fork 179
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CT-2112: bump snowflake connector python (#476)
* Raise the upper bound to be the next major version of `snowflake-connector-python` * Changelog entry * Update .changes/unreleased/Dependencies-20230216-093128.yaml * created ubuntu-py38 image for local integration testing, added makefile instructions for easy deployment * added debian image * added docker dev-environment image * added additional python versions in ubuntu and debian containers, added warning readme file * resolved five of seven failing tests * resolved TestSimpleBigSeedBatched.test_big_batched_seed() test failure * updated changelog to show specific version * added changelog for updated build dependencies --------- Co-authored-by: Doug Beatty <[email protected]> Co-authored-by: Doug Beatty <[email protected]>
- Loading branch information
1 parent
d1b6cfe
commit 967a8e9
Showing
12 changed files
with
190 additions
and
29 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
kind: Dependencies | ||
body: Update snowflake-connector-python to 3.0 | ||
time: 2023-02-16T09:31:28.844127-07:00 | ||
custom: | ||
Author: dbeatty10 | ||
Issue: "469" |
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,6 @@ | ||
kind: Dependencies | ||
body: Removed explicit dependencies for cryptography and requests | ||
time: 2023-03-04T13:54:58.498449-05:00 | ||
custom: | ||
Author: mikealfare | ||
PR: "476" |
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,2 @@ | ||
* | ||
!docker_dev |
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,5 @@ | ||
# Docker Dev Images | ||
|
||
These images are solely for development purposes. They are | ||
saved here for convenience. There should be no expectation | ||
of stability or maintenance. |
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,49 @@ | ||
FROM debian:latest | ||
|
||
# default to py3.11.1, this can be overridden at build, e.g. `docker build ... --build-arg version=3.10.8` | ||
ARG version=3.11.1 | ||
|
||
# install python dependencies | ||
RUN apt-get update && \ | ||
apt-get install -y --no-install-recommends \ | ||
build-essential \ | ||
zlib1g-dev \ | ||
libncurses5-dev \ | ||
libgdbm-dev \ | ||
libnss3-dev \ | ||
libssl-dev \ | ||
libreadline-dev \ | ||
libffi-dev \ | ||
libsqlite3-dev \ | ||
wget \ | ||
libbz2-dev \ | ||
git-all | ||
|
||
# download, extract, and install python | ||
RUN wget https://www.python.org/ftp/python/$version/Python-$version.tgz && \ | ||
tar -xvf Python-$version.tgz && \ | ||
cd Python-$version && \ | ||
./configure --enable-optimizations && \ | ||
make -j $(shell nproc) && \ | ||
make altinstall | ||
|
||
# clean up | ||
RUN apt-get clean && \ | ||
rm -rf \ | ||
/var/lib/apt/lists/* \ | ||
/tmp/* \ | ||
/var/tmp/* \ | ||
/Python-$version.tgz | ||
|
||
# add this installation to the path and update the default system interpreter to the newly installed version | ||
RUN export PATH="/Python-$version:$PATH" && \ | ||
update-alternatives --install /usr/bin/python3 python3 /Python-$version/python 1 | ||
|
||
# update python build tools | ||
RUN python3 -m pip install --upgrade pip setuptools wheel --no-cache-dir | ||
|
||
# setup mount for our code | ||
WORKDIR /opt/code | ||
VOLUME /opt/code | ||
|
||
ENV PYTHONUNBUFFERED=1 |
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,25 @@ | ||
FROM docker/dev-environments-default:latest | ||
|
||
# install python and git (for installing dbt-core) | ||
RUN apt-get update && \ | ||
apt-get install -y --no-install-recommends \ | ||
python3-pip \ | ||
python3-wheel \ | ||
build-essential | ||
|
||
# clean up | ||
RUN apt-get clean && \ | ||
rm -rf \ | ||
/var/lib/apt/lists/* \ | ||
/tmp/* \ | ||
/var/tmp/* | ||
|
||
# update python build tools | ||
RUN python3 -m pip install --upgrade pip setuptools wheel --no-cache-dir | ||
|
||
# setup mount for our code | ||
WORKDIR /opt/code | ||
VOLUME /opt/code | ||
|
||
# send stdout/stderr to terminal | ||
ENV PYTHONUNBUFFERED=1 |
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,50 @@ | ||
FROM ubuntu:latest | ||
|
||
# default to py3.11, this can be overridden at build, e.g. `docker build ... --build-arg version=3.10` | ||
ARG version=3.11 | ||
|
||
# prevent python installation from asking for time zone region | ||
ARG DEBIAN_FRONTEND=noninteractive | ||
|
||
# get add-apt-repository | ||
RUN apt-get update && \ | ||
apt-get install -y software-properties-common | ||
|
||
# add the python repository | ||
RUN apt-get update && \ | ||
add-apt-repository -y ppa:deadsnakes/ppa | ||
|
||
# install python and git (for installing dbt-core) | ||
RUN apt-get update && \ | ||
apt-get install -y --no-install-recommends \ | ||
python$version \ | ||
python$version-dev \ | ||
python$version-distutils \ | ||
python$version-venv \ | ||
python3-pip \ | ||
python3-wheel \ | ||
build-essential \ | ||
git-all | ||
|
||
# clean up | ||
RUN apt-get clean && \ | ||
rm -rf \ | ||
/var/lib/apt/lists/* \ | ||
/tmp/* \ | ||
/var/tmp/* | ||
|
||
# update the default system interpreter to the newly installed version | ||
RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python$version 1 | ||
|
||
# setup mount for our code | ||
WORKDIR /opt/code | ||
VOLUME /opt/code | ||
|
||
# install tox in the system interpreter (it creates it's own virtual environments) | ||
RUN pip install tox | ||
|
||
# explicitly create a virtual environment as well for interactive testing | ||
RUN python3 -m venv /opt/venv | ||
|
||
# send stdout/stderr to terminal | ||
ENV PYTHONUNBUFFERED=1 |
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
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