Skip to content

Commit 110cebf

Browse files
committed
[chore] Migrate from setup.py to pyproject
1 parent 248eaba commit 110cebf

File tree

5 files changed

+75
-79
lines changed

5 files changed

+75
-79
lines changed

.github/workflows/playwright.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ jobs:
6868
run: |
6969
md5sum $(which python) > $GITHUB_WORKSPACE/python_cache_key.md5
7070
md5sum e2e_playwright/test-requirements.txt >> $GITHUB_WORKSPACE/python_cache_key.md5
71-
md5sum setup.py >> $GITHUB_WORKSPACE/python_cache_key.md5
71+
md5sum pyproject.toml >> $GITHUB_WORKSPACE/python_cache_key.md5
7272
date +%F >> $GITHUB_WORKSPACE/python_cache_key.md5
7373
shell: bash
7474
- name: Restore virtualenv from cache
@@ -81,8 +81,8 @@ jobs:
8181
run: |
8282
python -m venv venv
8383
source venv/bin/activate
84-
pip install setuptools
85-
python setup.py sdist bdist_wheel
84+
pip install build
85+
python -m build
8686
- name: Install Python test dependencies
8787
run: |
8888
source venv/bin/activate

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ jobs:
9696
run: |
9797
md5sum $(which python) > $GITHUB_WORKSPACE/python_cache_key.md5
9898
md5sum e2e_playwright/test-requirements.txt >> $GITHUB_WORKSPACE/python_cache_key.md5
99-
md5sum setup.py >> $GITHUB_WORKSPACE/python_cache_key.md5
99+
md5sum pyproject.toml >> $GITHUB_WORKSPACE/python_cache_key.md5
100100
date +%F >> $GITHUB_WORKSPACE/python_cache_key.md5
101101
shell: bash
102102

@@ -111,8 +111,8 @@ jobs:
111111
run: |
112112
python -m venv venv
113113
source venv/bin/activate
114-
pip install setuptools
115-
python setup.py sdist bdist_wheel
114+
pip install build
115+
python -m build
116116
117117
- name: Store Package
118118
uses: actions/upload-artifact@v4

MANIFEST.in

Lines changed: 0 additions & 1 deletion
This file was deleted.

pyproject.toml

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
# Copyright (c) Snowflake Inc. (2025)
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
[build-system]
16+
requires = ["setuptools>=61.0", "wheel"]
17+
build-backend = "setuptools.build_meta"
18+
19+
[project]
20+
name = "streamlit-bokeh"
21+
version = "3.8.0"
22+
description = "Streamlit component that allows you to render Bokeh charts"
23+
readme = "README.md"
24+
license = "Apache-2.0"
25+
authors = [{ name = "Snowflake Inc", email = "[email protected]" }]
26+
requires-python = ">=3.9"
27+
classifiers = [
28+
"Development Status :: 5 - Production/Stable",
29+
"Environment :: Console",
30+
"Environment :: Web Environment",
31+
"Intended Audience :: Developers",
32+
"Intended Audience :: Science/Research",
33+
"License :: OSI Approved :: Apache Software License",
34+
"Programming Language :: Python :: 3.9",
35+
"Programming Language :: Python :: 3.10",
36+
"Programming Language :: Python :: 3.11",
37+
"Programming Language :: Python :: 3.12",
38+
"Programming Language :: Python :: 3.13",
39+
"Topic :: Scientific/Engineering :: Visualization",
40+
]
41+
dependencies = ["streamlit>=1.26", "bokeh==3.8.0"]
42+
43+
[project.optional-dependencies]
44+
devel = [
45+
"wheel",
46+
"pytest==7.4.0",
47+
"playwright==1.48.0",
48+
"requests==2.31.0",
49+
"pytest-playwright-snapshot==1.0",
50+
"pytest-rerunfailures==12.0",
51+
]
52+
53+
[project.urls]
54+
Homepage = "https://streamlit.io"
55+
"Source Code" = "https://github.com/streamlit/streamlit-bokeh"
56+
"Bug Tracker" = "https://github.com/streamlit/streamlit/issues"
57+
Community = "https://discuss.streamlit.io/"
58+
Twitter = "https://twitter.com/streamlit"
59+
60+
[tool.setuptools]
61+
include-package-data = true
62+
63+
[tool.setuptools.packages.find]
64+
where = ["."]
65+
include = ["streamlit_bokeh*"]
66+
exclude = ["e2e_playwright*", "scripts*", "build*", "dist*", "venv*", ".*"]
67+
68+
[tool.setuptools.package-data]
69+
streamlit_bokeh = ["frontend/build/**/*", "pyproject.toml"]

setup.py

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

0 commit comments

Comments
 (0)