Skip to content

Commit

Permalink
update node version and transition to pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
tahouse committed Jan 25, 2025
1 parent 6a7f030 commit 328d5f0
Show file tree
Hide file tree
Showing 6 changed files with 124 additions and 95 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
node-version: "22"
cache: npm
cache-dependency-path: streamlit_chat_prompt/frontend/package-lock.json
- name: Install Node dependencies
Expand All @@ -36,10 +36,10 @@ jobs:
- name: Install pypa/build
run: >-
python3 -m
pip install wheel setuptools
pip install wheel setuptools build
--user
- name: Build a binary wheel and a source tarball
run: python3 setup.py sdist bdist_wheel
run: python3 -m build
- name: Store the distribution packages
uses: actions/upload-artifact@v4
with:
Expand Down
53 changes: 53 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# pyproject.toml

[build-system]
requires = ["setuptools>=42", "wheel"]
build-backend = "setuptools.build_meta"

[project]
name = "streamlit-chat-prompt"
version = "0.3.6"
description = "A streamlit custom component that allows you to create a chat prompt with paste and image attachment support"
readme = { file = "README.md", content-type = "text/markdown" }
authors = [
{ name = "Tyler House", email = "[email protected]" },
]
license = { text = "Apache-2.0" }
keywords = [
"streamlit",
"component",
"chat",
"prompt",
"paste",
"image",
"clipboard",
"material ui",
]
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"Topic :: Desktop Environment",
"Topic :: Multimedia :: Graphics",
"Topic :: Software Development :: User Interfaces",
]
requires-python = ">=3.7"
dependencies = ["streamlit >=0.63", "pydantic >=2"]

[project.optional-dependencies]
devel = [
"wheel",
"setuptools==69.0.3",
"pytest==7.4.0",
"twine~=6.1",
"packaging>=24.2",
]

[tool.setuptools]
include-package-data = true

[tool.setuptools.packages.find]
include = ["*"]
52 changes: 0 additions & 52 deletions setup.py

This file was deleted.

2 changes: 1 addition & 1 deletion streamlit_chat_prompt/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
_RELEASE = True

logger = logging.getLogger("streamlit_chat_prompt")
logger.setLevel(logging.INFO)
logger.setLevel(logging.WARN)
handler = logging.StreamHandler()
handler.setFormatter(
logging.Formatter("%(asctime)s - %(name)s - %(levelname)s - %(message)s")
Expand Down
Loading

0 comments on commit 328d5f0

Please sign in to comment.