Skip to content
Open
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
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ release: dist ## package and upload a release
twine upload dist/*

dist: clean ## builds source and wheel package
python3 setup.py sdist
python3 setup.py bdist_wheel
python -c "import hatch" 2>/dev/null || pip install hatch
hatch build
ls -l dist

## install the package to the active Python's site-packages
Expand Down
77 changes: 77 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[project]
name = "shinylive"
dynamic = ["version"]
authors = [
{name = "Winston Chang", email = "[email protected]"},
]
description = "Run Shiny applications running Python in the browser."
readme = "README.md"
license = {text = "MIT"}
requires-python = ">=3.8"
classifiers = [
"Development Status :: 2 - Pre-Alpha",
"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 = [
"shiny",
"click>=8.1.7",
"appdirs>=1.4.4",
"lzstring>=1.0.4",
"typing-extensions>=4.0.1",
"setuptools; python_version>='3.12'",
"chevron>=0.14.0",
]

[project.urls]
"Bug Tracker" = "https://github.com/posit-dev/py-shinylive/issues"
"Documentation" = "https://github.com/posit-dev/py-shinylive"
"Source Code" = "https://github.com/posit-dev/py-shinylive"

[project.optional-dependencies]
test = [
"pytest>=6.2.4",
]
dev = [
"black>=22.3.0",
"flake8>=3.9.2",
"flake8-bugbear>=22.6.22",
"isort>=5.11.2",
"pyright>=1.1.284",
]

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

[tool.hatch.version]
path = "shinylive/_version/__init__.py"
pattern = "SHINYLIVE_PACKAGE_VERSION\\s*=\\s*['\"](?P<version>[^'\"]+)['\"]"

[tool.hatch.build.targets.wheel]
packages = ["shinylive"]
include = ["py.typed"]


[tool.hatch.build.targets.sdist]
include = [
"shinylive",
"LICENSE",
"README.md",
]

[tool.flake8]
ignore = ["E302", "E501", "E704", "F403", "F405", "W503"]
exclude = ["docs", ".venv", "_dev"]

[tool.isort]
profile = "black"
82 changes: 0 additions & 82 deletions setup.cfg

This file was deleted.

3 changes: 0 additions & 3 deletions setup.py

This file was deleted.

Loading