Skip to content

Commit ef3b44e

Browse files
committed
get pep-625 compliant
1 parent 614386e commit ef3b44e

File tree

4 files changed

+76
-46
lines changed

4 files changed

+76
-46
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ jobs:
3030
with:
3131
draft: true
3232
files: |
33-
dist/databricks-*.whl
34-
dist/databricks-*.tar.gz
33+
dist/databricks_*.whl
34+
dist/databricks_*.tar.gz
3535
3636
- uses: pypa/gh-action-pypi-publish@release/v1
3737
name: Publish package distributions to PyPI

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ coverage: test
3737
open htmlcov/index.html
3838

3939
dist:
40-
python3 setup.py bdist_wheel sdist
40+
python3.12 setup.py bdist_wheel sdist
4141

4242
clean:
4343
rm -fr dist *.egg-info .pytest_cache build htmlcov

pyproject.toml

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
[build-system]
2+
requires = ["setuptools>=42", "wheel"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "databricks-sdk"
7+
dynamic = ["version"]
8+
description = "Databricks SDK for Python (Beta)"
9+
readme = "README.md"
10+
requires-python = ">=3.7"
11+
keywords = ["databricks", "sdk"]
12+
classifiers = [
13+
"Development Status :: 4 - Beta",
14+
"Intended Audience :: Developers",
15+
"Intended Audience :: Science/Research",
16+
"Intended Audience :: System Administrators",
17+
"License :: OSI Approved :: Apache Software License",
18+
"Programming Language :: Python :: 3.7",
19+
"Programming Language :: Python :: 3.8",
20+
"Programming Language :: Python :: 3.9",
21+
"Programming Language :: Python :: 3.10",
22+
"Programming Language :: Python :: 3.11",
23+
"Programming Language :: Python :: 3.12",
24+
"Programming Language :: Python :: 3.13",
25+
"Operating System :: OS Independent"
26+
]
27+
dependencies = [
28+
"requests>=2.28.1,<3",
29+
"google-auth~=2.0"
30+
]
31+
32+
[project.urls]
33+
Documentation = "https://databricks-sdk-py.readthedocs.io"
34+
35+
[project.optional-dependencies]
36+
dev = [
37+
"pytest",
38+
"pytest-cov",
39+
"pytest-xdist",
40+
"pytest-mock",
41+
"yapf",
42+
"pycodestyle",
43+
"autoflake",
44+
"isort",
45+
"wheel",
46+
"ipython",
47+
"ipywidgets",
48+
"requests-mock",
49+
"pyfakefs",
50+
"databricks-connect",
51+
"pytest-rerunfailures",
52+
"openai",
53+
'langchain-openai; python_version > "3.7"',
54+
"httpx"
55+
]
56+
notebook = [
57+
"ipython>=8,<9",
58+
"ipywidgets>=8,<9"
59+
]
60+
openai = [
61+
"openai",
62+
'langchain-openai; python_version > "3.7"',
63+
"httpx"
64+
]
65+
66+
[tool.setuptools.dynamic]
67+
version = { attr = "databricks.sdk.version.__version__" }
68+
69+
[tool.setuptools.packages.find]
70+
exclude = ["tests", "*tests.*", "*tests"]
71+
72+
[tool.setuptools.package-data]
73+
"databricks.sdk" = ["py.typed"]

setup.py

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

0 commit comments

Comments
 (0)