Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/build-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ jobs:

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup py-shiny
uses: ./.github/py-shiny/setup
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/deploy-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ jobs:

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup py-shiny
uses: ./.github/py-shiny/setup
with:
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/pytest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ jobs:

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup py-shiny
id: install
uses: ./.github/py-shiny/setup
Expand Down Expand Up @@ -63,6 +65,8 @@ jobs:
needs: [check]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: "Set up Python 3.10"
uses: actions/setup-python@v4
with:
Expand Down Expand Up @@ -117,6 +121,8 @@ jobs:

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup py-shiny
uses: ./.github/py-shiny/setup
with:
Expand Down Expand Up @@ -159,6 +165,8 @@ jobs:

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup py-shiny
uses: ./.github/py-shiny/setup
with:
Expand Down Expand Up @@ -205,6 +213,8 @@ jobs:

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup py-shiny
uses: ./.github/py-shiny/setup
with:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/verify-js-built.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ jobs:

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Extract node version from .nvmrc
id: nvm
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -115,3 +115,6 @@ docs/source/reference/
_dev/
tests/playwright/deploys/**/requirements.txt
test-results/

# setuptools_scm
shiny/_version.py
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -188,9 +188,9 @@ release: dist ## package and upload a release
twine upload dist/*

dist: clean ## builds source and wheel package
pip install setuptools
python setup.py sdist
python setup.py bdist_wheel
pip install build
python -m build --sdist
python -m build --wheel
ls -l dist


Expand Down
148 changes: 148 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,148 @@
[build-system]
requires = ["setuptools>=60", "wheel", "setuptools_scm>=8.0"]
build-backend = "setuptools.build_meta"

[tool.setuptools]
packages = {find = {include = ["shiny", "shiny.*"]}}

[tool.setuptools_scm]
write_to = "shiny/_version.py"
local_scheme = "no-local-version"

[project]
name = "shiny"
dynamic = ["version"]
authors = [
{name = "Winston Chang", email = "[email protected]"},
]
description = "A web development framework for Python."
readme = "README.md"
requires-python = ">=3.8"
license = {text = "MIT"}
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
dependencies = [
"typing-extensions>=4.10.0",
"uvicorn>=0.16.0;platform_system!='Emscripten'",
"starlette",
"websockets>=10.0",
"python-multipart",
"htmltools>=0.5.2",
"click>=8.1.4;platform_system!='Emscripten'",
"markdown-it-py>=1.1.0",
"mdit-py-plugins>=0.3.0",
"linkify-it-py>=1.0",
"appdirs>=1.4.4",
"asgiref>=3.5.2",
"packaging>=20.9",
"watchfiles>=0.18.0;platform_system!='Emscripten'",
"questionary>=2.0.0;platform_system!='Emscripten'",
"prompt-toolkit;platform_system!='Emscripten'",
"python-multipart>=0.0.7;platform_system!='Emscripten'",
"setuptools;python_version>='3.12'",
]

[project.optional-dependencies]
theme = ["libsass>=0.23.0"]
test = [
"pytest>=6.2.4",
"pytest-asyncio>=0.17.2",
"pytest-playwright>=0.3.0",
"playwright>=1.43.0",
"pytest-xdist",
"pytest-timeout",
"pytest-rerunfailures",
"pytest-cov",
"coverage",
"syrupy>=4.7.1",
"psutil",
"astropy",
"suntime",
"timezonefinder",
"ipyleaflet",
"shinywidgets",
"seaborn",
"plotnine",
"plotly",
"duckdb",
"holoviews",
"bokeh",
"xarray",
"geopandas",
"geodatasets",
"missingno",
"rsconnect-python",
"scikit-learn",
"folium",
"palmerpenguins",
"faicons",
"ridgeplot",
"great_tables",
]
dev = [
"black>=24.0",
"flake8>=6.0.0",
"flake8-bugbear>=23.2.13",
"Flake8-pyproject>=1.2.3",
"isort>=5.10.1",
"libsass>=0.23.0",
"pyright==1.1.369",
"pre-commit>=2.15.0",
"wheel",
"matplotlib",
"pandas",
"pandas-stubs",
"polars",
"numpy",
"shinyswatch>=0.7.0",
"python-dotenv",
"anthropic",
"google-generativeai;python_version>='3.9'",
"langchain_core",
"openai",
"ollama",
"tokenizers",
"aiohttp",
"beautifulsoup4",
]
doc = [
"jupyter",
"jupyter_client < 8.0.0",
"tabulate",
"shinylive",
"pydantic>=2.7.4",
"quartodoc==0.7.5",
"griffe<1.0.0",
]

[project.urls]
Homepage = "https://github.com/posit-dev/py-shiny"
Documentation = "https://shiny.posit.co/py/"
Repository = "https://github.com/posit-dev/py-shiny"
"Bug Tracker" = "https://github.com/posit-dev/py-shiny/issues"

[project.scripts]
shiny = "shiny._main:main"

[project.entry-points.pytest11]
shiny-test = "shiny.pytest._pytest"

[tool.pytest.ini_options]
testpaths = ["tests"]

[tool.flake8]
extend-exclude = ["docs", ".venv", "venv", "typings", "build", "_dev"]
ignore = ["E302", "E501", "F403", "F405", "W503", "E203", "E701", "E704"]

[tool.isort]
profile = "black"
skip = ["__init__.py", "typings/", "_dev/", ".venv", "venv", ".tox", "build"]
Loading