Skip to content

Commit c1d2ace

Browse files
committed
fix
1 parent 29f494d commit c1d2ace

File tree

8 files changed

+1112
-14
lines changed

8 files changed

+1112
-14
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,12 @@ jobs:
3131
python-version: ${{ inputs.pyVersion }}
3232

3333
- name: Run tests
34+
shell: bash
3435
run: |
3536
if [ "${{ matrix.dep-type }}" = "latest" ]; then
36-
make dev-latest test
37+
make dev-latest test PYTHON_VERSION=${{ inputs.pyVersion }}
3738
else
38-
make dev test
39+
make dev test PYTHON_VERSION=${{ inputs.pyVersion }}
3940
fi
4041
4142
- name: Publish test coverage

.gitignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.venv
1+
.venv*
22
*.
33
build
44
dist
@@ -10,4 +10,5 @@ __pycache__
1010
databricks-sdk-py.iml
1111
.databricks
1212
.coverage
13-
htmlcov
13+
htmlcov
14+
.python-version

Makefile

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,23 @@
1+
# Default Python version if not specified
2+
# This is expected to have the form X.Y.
3+
# The corresponding requirements file is requirements-dev-pyXY.txt.
4+
PYTHON_VERSION ?= 3.13
5+
6+
# Generate requirements filename based on Python version
7+
REQUIREMENTS_FILE = requirements-dev-py$(subst .,,$(PYTHON_VERSION)).txt
8+
19
dev-env:
2-
python3 -m venv .venv
10+
python$(PYTHON_VERSION) -m venv .venv$(PYTHON_VERSION)
311
ifeq ($(OS), Windows_NT)
4-
.venv\Scripts\activate
12+
.venv$(PYTHON_VERSION)\Scripts\activate
513
else
6-
. .venv/bin/activate
14+
. .venv$(PYTHON_VERSION)/bin/activate
715
endif
816

917
dev: dev-env
10-
# Install all dependencies from the requirements-dev.txt file
11-
# Regenerate this file with `make update-dev-dep-lockfile`
12-
pip install -r requirements-dev.txt
18+
# Install all dependencies from the version-specific requirements file
19+
# Regenerate this file with `make update-dev-dep-lockfile PYTHON_VERSION=X.Y`
20+
pip install -r $(REQUIREMENTS_FILE)
1321

1422
dev-latest: dev-env
1523
# Install all dependencies from the pyproject.toml file
@@ -19,7 +27,7 @@ install-pip-tools:
1927
pip install pip-tools
2028

2129
update-dev-dep-lockfile: install-pip-tools
22-
pip-compile pyproject.toml --extra dev --output-file requirements-dev.txt
30+
pip-compile pyproject.toml --extra dev --output-file $(REQUIREMENTS_FILE)
2331

2432
install:
2533
pip install .

requirements-dev-py310.txt

Lines changed: 276 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,276 @@
1+
#
2+
# This file is autogenerated by pip-compile with Python 3.10
3+
# by the following command:
4+
#
5+
# pip-compile --extra=dev --output-file=requirements-dev-py310.txt pyproject.toml
6+
#
7+
annotated-types==0.7.0
8+
# via pydantic
9+
anyio==4.9.0
10+
# via
11+
# httpx
12+
# openai
13+
asttokens==3.0.0
14+
# via stack-data
15+
autoflake==2.3.1
16+
# via databricks-sdk (pyproject.toml)
17+
black==25.1.0
18+
# via databricks-sdk (pyproject.toml)
19+
build==1.2.2.post1
20+
# via databricks-sdk (pyproject.toml)
21+
cachetools==5.5.2
22+
# via google-auth
23+
certifi==2025.4.26
24+
# via
25+
# httpcore
26+
# httpx
27+
# requests
28+
charset-normalizer==3.4.2
29+
# via requests
30+
click==8.2.1
31+
# via black
32+
comm==0.2.2
33+
# via ipywidgets
34+
coverage[toml]==7.9.0
35+
# via pytest-cov
36+
databricks-connect==16.1.6
37+
# via databricks-sdk (pyproject.toml)
38+
databricks-sdk==0.57.0
39+
# via databricks-connect
40+
decorator==5.2.1
41+
# via ipython
42+
distro==1.9.0
43+
# via openai
44+
exceptiongroup==1.3.0
45+
# via
46+
# anyio
47+
# ipython
48+
# pytest
49+
execnet==2.1.1
50+
# via pytest-xdist
51+
executing==2.2.0
52+
# via stack-data
53+
google-auth==2.40.3
54+
# via
55+
# databricks-sdk
56+
# databricks-sdk (pyproject.toml)
57+
googleapis-common-protos==1.70.0
58+
# via
59+
# databricks-connect
60+
# grpcio-status
61+
grpcio==1.73.0
62+
# via
63+
# databricks-connect
64+
# grpcio-status
65+
grpcio-status==1.73.0
66+
# via databricks-connect
67+
h11==0.16.0
68+
# via httpcore
69+
httpcore==1.0.9
70+
# via httpx
71+
httpx==0.28.1
72+
# via
73+
# databricks-sdk (pyproject.toml)
74+
# langsmith
75+
# openai
76+
idna==3.10
77+
# via
78+
# anyio
79+
# httpx
80+
# requests
81+
iniconfig==2.1.0
82+
# via pytest
83+
ipython==8.37.0
84+
# via
85+
# databricks-sdk (pyproject.toml)
86+
# ipywidgets
87+
ipywidgets==8.1.7
88+
# via databricks-sdk (pyproject.toml)
89+
isort==6.0.1
90+
# via databricks-sdk (pyproject.toml)
91+
jedi==0.19.2
92+
# via ipython
93+
jiter==0.10.0
94+
# via openai
95+
jsonpatch==1.33
96+
# via langchain-core
97+
jsonpointer==3.0.0
98+
# via jsonpatch
99+
jupyterlab-widgets==3.0.15
100+
# via ipywidgets
101+
langchain-core==0.3.65
102+
# via langchain-openai
103+
langchain-openai==0.3.22 ; python_version > "3.7"
104+
# via databricks-sdk (pyproject.toml)
105+
langsmith==0.3.45
106+
# via langchain-core
107+
matplotlib-inline==0.1.7
108+
# via ipython
109+
mypy-extensions==1.1.0
110+
# via black
111+
numpy==1.26.4
112+
# via
113+
# databricks-connect
114+
# pandas
115+
openai==1.86.0
116+
# via
117+
# databricks-sdk (pyproject.toml)
118+
# langchain-openai
119+
orjson==3.10.18
120+
# via langsmith
121+
packaging==24.2
122+
# via
123+
# black
124+
# build
125+
# databricks-connect
126+
# langchain-core
127+
# langsmith
128+
# pytest
129+
# pytest-rerunfailures
130+
pandas==2.3.0
131+
# via databricks-connect
132+
parso==0.8.4
133+
# via jedi
134+
pathspec==0.12.1
135+
# via black
136+
pexpect==4.9.0
137+
# via ipython
138+
platformdirs==4.3.8
139+
# via black
140+
pluggy==1.6.0
141+
# via
142+
# pytest
143+
# pytest-cov
144+
prompt-toolkit==3.0.51
145+
# via ipython
146+
protobuf==6.31.1
147+
# via
148+
# googleapis-common-protos
149+
# grpcio-status
150+
ptyprocess==0.7.0
151+
# via pexpect
152+
pure-eval==0.2.3
153+
# via stack-data
154+
py4j==0.10.9.7
155+
# via databricks-connect
156+
pyarrow==20.0.0
157+
# via databricks-connect
158+
pyasn1==0.6.1
159+
# via
160+
# pyasn1-modules
161+
# rsa
162+
pyasn1-modules==0.4.2
163+
# via google-auth
164+
pycodestyle==2.13.0
165+
# via databricks-sdk (pyproject.toml)
166+
pydantic==2.11.6
167+
# via
168+
# langchain-core
169+
# langsmith
170+
# openai
171+
pydantic-core==2.33.2
172+
# via pydantic
173+
pyfakefs==5.8.0
174+
# via databricks-sdk (pyproject.toml)
175+
pyflakes==3.3.2
176+
# via autoflake
177+
pygments==2.19.1
178+
# via
179+
# ipython
180+
# pytest
181+
pyproject-hooks==1.2.0
182+
# via build
183+
pytest==8.4.0
184+
# via
185+
# databricks-sdk (pyproject.toml)
186+
# pytest-cov
187+
# pytest-mock
188+
# pytest-rerunfailures
189+
# pytest-xdist
190+
pytest-cov==6.2.1
191+
# via databricks-sdk (pyproject.toml)
192+
pytest-mock==3.14.1
193+
# via databricks-sdk (pyproject.toml)
194+
pytest-rerunfailures==15.1
195+
# via databricks-sdk (pyproject.toml)
196+
pytest-xdist==3.7.0
197+
# via databricks-sdk (pyproject.toml)
198+
python-dateutil==2.9.0.post0
199+
# via pandas
200+
pytz==2025.2
201+
# via pandas
202+
pyyaml==6.0.2
203+
# via langchain-core
204+
regex==2024.11.6
205+
# via tiktoken
206+
requests==2.32.4
207+
# via
208+
# databricks-sdk
209+
# databricks-sdk (pyproject.toml)
210+
# langsmith
211+
# requests-mock
212+
# requests-toolbelt
213+
# tiktoken
214+
requests-mock==1.12.1
215+
# via databricks-sdk (pyproject.toml)
216+
requests-toolbelt==1.0.0
217+
# via langsmith
218+
rsa==4.9.1
219+
# via google-auth
220+
six==1.17.0
221+
# via
222+
# databricks-connect
223+
# python-dateutil
224+
sniffio==1.3.1
225+
# via
226+
# anyio
227+
# openai
228+
stack-data==0.6.3
229+
# via ipython
230+
tenacity==9.1.2
231+
# via langchain-core
232+
tiktoken==0.9.0
233+
# via langchain-openai
234+
tomli==2.2.1
235+
# via
236+
# autoflake
237+
# black
238+
# build
239+
# coverage
240+
# pytest
241+
tqdm==4.67.1
242+
# via openai
243+
traitlets==5.14.3
244+
# via
245+
# comm
246+
# ipython
247+
# ipywidgets
248+
# matplotlib-inline
249+
typing-extensions==4.14.0
250+
# via
251+
# anyio
252+
# black
253+
# exceptiongroup
254+
# ipython
255+
# langchain-core
256+
# openai
257+
# pydantic
258+
# pydantic-core
259+
# typing-inspection
260+
typing-inspection==0.4.1
261+
# via pydantic
262+
tzdata==2025.2
263+
# via pandas
264+
urllib3==2.4.0
265+
# via requests
266+
wcwidth==0.2.13
267+
# via prompt-toolkit
268+
wheel==0.45.1
269+
# via databricks-sdk (pyproject.toml)
270+
widgetsnbextension==4.0.14
271+
# via ipywidgets
272+
zstandard==0.23.0
273+
# via langsmith
274+
275+
# The following packages are considered to be unsafe in a requirements file:
276+
# setuptools

0 commit comments

Comments
 (0)