initial framework

This commit is contained in:
Will McGugan
2024-06-10 16:39:21 +01:00
parent a0fae34069
commit 0fe15908e9
6 changed files with 140 additions and 0 deletions

1
.gitignore vendored
View File

@@ -1,4 +1,5 @@
# Byte-compiled / optimized / DLL files
.venv/
__pycache__/
*.py[cod]
*$py.class

1
.python-version Normal file
View File

@@ -0,0 +1 @@
3.12.3

28
pyproject.toml Normal file
View File

@@ -0,0 +1,28 @@
[project]
name = "textual-serve"
version = "0.1.0"
description = "Add your description here"
authors = [
{ name = "Will McGugan", email = "willmcgugan@gmail.com" }
]
dependencies = [
"textual>=0.66.0",
"aiohttp>=3.9.5",
"aiohttp-jinja2>=1.6",
]
readme = "README.md"
requires-python = ">= 3.8"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.rye]
managed = true
dev-dependencies = []
[tool.hatch.metadata]
allow-direct-references = true
[tool.hatch.build.targets.wheel]
packages = ["src/textual_serve"]

54
requirements-dev.lock Normal file
View File

@@ -0,0 +1,54 @@
# generated by rye
# use `rye lock` or `rye sync` to update this lockfile
#
# last locked with the following flags:
# pre: false
# features: []
# all-features: false
# with-sources: false
# generate-hashes: false
-e file:.
aiohttp==3.9.5
# via aiohttp-jinja2
# via textual-serve
aiohttp-jinja2==1.6
# via textual-serve
aiosignal==1.3.1
# via aiohttp
attrs==23.2.0
# via aiohttp
frozenlist==1.4.1
# via aiohttp
# via aiosignal
idna==3.7
# via yarl
jinja2==3.1.4
# via aiohttp-jinja2
linkify-it-py==2.0.3
# via markdown-it-py
markdown-it-py==3.0.0
# via mdit-py-plugins
# via rich
# via textual
markupsafe==2.1.5
# via jinja2
mdit-py-plugins==0.4.1
# via markdown-it-py
mdurl==0.1.2
# via markdown-it-py
multidict==6.0.5
# via aiohttp
# via yarl
pygments==2.18.0
# via rich
rich==13.7.1
# via textual
textual==0.66.0
# via textual-serve
typing-extensions==4.12.2
# via textual
uc-micro-py==1.0.3
# via linkify-it-py
yarl==1.9.4
# via aiohttp

54
requirements.lock Normal file
View File

@@ -0,0 +1,54 @@
# generated by rye
# use `rye lock` or `rye sync` to update this lockfile
#
# last locked with the following flags:
# pre: false
# features: []
# all-features: false
# with-sources: false
# generate-hashes: false
-e file:.
aiohttp==3.9.5
# via aiohttp-jinja2
# via textual-serve
aiohttp-jinja2==1.6
# via textual-serve
aiosignal==1.3.1
# via aiohttp
attrs==23.2.0
# via aiohttp
frozenlist==1.4.1
# via aiohttp
# via aiosignal
idna==3.7
# via yarl
jinja2==3.1.4
# via aiohttp-jinja2
linkify-it-py==2.0.3
# via markdown-it-py
markdown-it-py==3.0.0
# via mdit-py-plugins
# via rich
# via textual
markupsafe==2.1.5
# via jinja2
mdit-py-plugins==0.4.1
# via markdown-it-py
mdurl==0.1.2
# via markdown-it-py
multidict==6.0.5
# via aiohttp
# via yarl
pygments==2.18.0
# via rich
rich==13.7.1
# via textual
textual==0.66.0
# via textual-serve
typing-extensions==4.12.2
# via textual
uc-micro-py==1.0.3
# via linkify-it-py
yarl==1.9.4
# via aiohttp

View File

@@ -0,0 +1,2 @@
def hello() -> str:
return "Hello from textual-serve!"