Skip to content

Commit 91672d4

Browse files
committed
complete the packaging
1 parent d5eb202 commit 91672d4

4 files changed

Lines changed: 26 additions & 15 deletions

File tree

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2025 ZeroToken Contributors
3+
Copyright (c) 2025 AMOS144
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

mcp_server.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -598,5 +598,10 @@ async def main():
598598
)
599599

600600

601-
if __name__ == "__main__":
601+
def run():
602+
"""Entry point for zerotoken-mcp console script."""
602603
asyncio.run(main())
604+
605+
606+
if __name__ == "__main__":
607+
run()

pyproject.toml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,19 @@
1+
[build-system]
2+
requires = ["setuptools>=61.0", "wheel"]
3+
build-backend = "setuptools.build_meta"
4+
15
[project]
26
name = "zerotoken"
37
version = "0.1.0"
48
description = "ZeroToken - Record once, automate forever. A lightweight MCP for agent-driven browser automation."
59
readme = "README.md"
10+
license = "MIT"
611
requires-python = ">=3.10"
712
dependencies = [
813
"playwright>=1.40.0",
914
"pydantic>=2.5.0",
1015
"apscheduler>=3.10.4",
1116
"mcp[cli]>=1.0.0",
12-
"asyncio>=3.4.3",
1317
]
1418

1519
[project.optional-dependencies]
@@ -19,6 +23,19 @@ test = [
1923
"pytest-mock>=3.10",
2024
]
2125

26+
[project.scripts]
27+
zerotoken-mcp = "mcp_server:run"
28+
29+
[project.urls]
30+
Homepage = "https://github.com/AMOS144/zerotoken"
31+
Repository = "https://github.com/AMOS144/zerotoken"
32+
33+
[tool.setuptools.packages.find]
34+
include = ["zerotoken*"]
35+
36+
[tool.setuptools]
37+
py-modules = ["mcp_server"]
38+
2239
[tool.pytest.ini_options]
2340
addopts = "-q"
2441
testpaths = ["tests"]

uv.lock

Lines changed: 1 addition & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)