Skip to content

Commit 2421fe9

Browse files
authored
Merge pull request #461 from cody-scott/dev
Incorporate 1.7.2 changes
2 parents 9546c40 + 66fedda commit 2421fe9

Some content is hidden

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

64 files changed

+501
-1556
lines changed

.devcontainer/devcontainer-lock.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"features": {
3+
"ghcr.io/devcontainers/features/docker-in-docker:2": {
4+
"version": "2.7.1",
5+
"resolved": "ghcr.io/devcontainers/features/docker-in-docker@sha256:f6a73ee06601d703db7d95d03e415cab229e78df92bb5002e8559bcfc047fec6",
6+
"integrity": "sha256:f6a73ee06601d703db7d95d03e415cab229e78df92bb5002e8559bcfc047fec6"
7+
}
8+
}
9+
}

.devcontainer/devcontainer.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"name": "Python 3",
3+
"image": "mcr.microsoft.com/devcontainers/python:1-3.10-bookworm",
4+
"features": {
5+
"ghcr.io/devcontainers/features/docker-in-docker:2": {}
6+
},
7+
"postStartCommand": "bash .devcontainer/setup_odbc.sh && bash .devcontainer/install_pyenv.sh && bash .devcontainer/setup_env.sh",
8+
"runArgs": [
9+
"--env-file", "${localWorkspaceFolder}/.devcontainer/test.env"
10+
]
11+
}

.devcontainer/install_pyenv.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#/bin/bash
2+
curl https://pyenv.run | bash
3+
4+
echo 'export PYENV_ROOT="$HOME/.pyenv"
5+
[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"
6+
eval "$(pyenv init -)"' >> ~/.bashrc

.devcontainer/setup_env.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
pyenv install 3.10.7
2+
pyenv virtualenv 3.10.7 dbt-sqlserver
3+
pyenv activate dbt-sqlserver
4+
5+
make dev
6+
make server

.devcontainer/setup_odbc.sh

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
curl https://packages.microsoft.com/keys/microsoft.asc | sudo tee /etc/apt/trusted.gpg.d/microsoft.asc
2+
3+
#Download appropriate package for the OS version
4+
#Choose only ONE of the following, corresponding to your OS version
5+
6+
#Debian 12
7+
curl https://packages.microsoft.com/config/debian/12/prod.list | sudo tee /etc/apt/sources.list.d/mssql-release.list
8+
9+
sudo apt-get update
10+
sudo ACCEPT_EULA=Y apt-get install -y msodbcsql18
11+
# optional: for bcp and sqlcmd
12+
sudo ACCEPT_EULA=Y apt-get install -y mssql-tools18
13+
echo 'export PATH="$PATH:/opt/mssql-tools18/bin"' >> ~/.bashrc
14+
source ~/.bashrc
15+
# optional: for unixODBC development headers
16+
sudo apt-get install -y unixodbc-dev
17+
# optional: kerberos library for debian-slim distributions
18+
sudo apt-get install -y libgssapi-krb5-2

.github/workflows/integration-tests-azure.yml

Lines changed: 0 additions & 104 deletions
This file was deleted.

.github/workflows/integration-tests-sqlserver.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
strategy:
1818
fail-fast: false
1919
matrix:
20-
python_version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
20+
python_version: ["3.8", "3.9", "3.10", "3.11"]
2121
msodbc_version: ["17", "18"]
2222
sqlserver_version: ["2017", "2019", "2022"]
2323
collation: ["SQL_Latin1_General_CP1_CS_AS", "SQL_Latin1_General_CP1_CI_AS"]

.github/workflows/unit-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
name: Unit tests
1717
strategy:
1818
matrix:
19-
python_version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
19+
python_version: ["3.8", "3.9", "3.10", "3.11"]
2020
runs-on: ubuntu-latest
2121
permissions:
2222
contents: read

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,3 +95,4 @@ venv/
9595
ENV/
9696
env.bak/
9797
venv.bak/
98+
.mise.toml

.pre-commit-config.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
default_language_version:
2-
python: python3.9
2+
python: python3.10
33
repos:
44
- repo: 'https://github.com/pre-commit/pre-commit-hooks'
55
rev: v4.4.0
@@ -62,7 +62,7 @@ repos:
6262
- manual
6363
args:
6464
- '--line-length=99'
65-
- '--target-version=py39'
65+
- '--target-version=py310'
6666
- '--check'
6767
- '--diff'
6868
- repo: 'https://github.com/pycqa/flake8'
@@ -94,4 +94,5 @@ repos:
9494
- '--show-error-codes'
9595
- '--pretty'
9696
- '--ignore-missing-imports'
97+
- '--explicit-package-bases'
9798
files: '^dbt/adapters'

0 commit comments

Comments
 (0)