Skip to content

Commit 21a69ba

Browse files
committed
Swtiching to pyproject.toml from setup.py - it is 2025 after all
1 parent 881230f commit 21a69ba

File tree

2 files changed

+31
-23
lines changed

2 files changed

+31
-23
lines changed

pyproject.toml

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,31 @@
11
[build-system]
2-
requires = ["setuptools", "wheel"]
2+
requires = ["setuptools>=61.0"]
33
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "mcp-simple-timeserver"
7+
version = "1.1.0"
8+
authors = [
9+
{ name="Andy Brandt", email="andy@codesprinters.com" },
10+
]
11+
description = "A simple MCP server that returns the local time and timezone. Alternatively the server can provide current UTC time from an NTP server."
12+
readme = "README.md"
13+
requires-python = ">=3.11"
14+
classifiers = [
15+
"Programming Language :: Python :: 3",
16+
"License :: OSI Approved :: MIT License",
17+
"Operating System :: OS Independent",
18+
]
19+
dependencies = [
20+
"mcp",
21+
"ntplib",
22+
]
23+
24+
[project.urls]
25+
"Homepage" = "https://github.com/andybrandt/mcp-simple-timeserver"
26+
27+
[project.scripts]
28+
mcp-simple-timeserver = "mcp_simple_timeserver:main"
29+
30+
[project.optional-dependencies]
31+
cli = ["mcp[cli]"]

setup.py

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,3 @@
1-
from setuptools import setup, find_packages
1+
from setuptools import setup
22

3-
setup(
4-
name="mcp-simple-timeserver",
5-
version="1.1.0",
6-
description="A simple MCP server that returns the local time and timezone. Alternatively the server can provide current UTC time from an NTP server.",
7-
long_description=open("README.md").read(),
8-
long_description_content_type="text/markdown",
9-
author="Andy Brandt",
10-
author_email="andy@codesprinters.com",
11-
url="https://github.com/andybrandt/mcp-simple-timeserver",
12-
packages=find_packages(),
13-
python_requires=">=3.11",
14-
install_requires=["mcp", "ntplib"],
15-
extras_require={
16-
"cli": ["mcp[cli]"]
17-
},
18-
entry_points={
19-
"console_scripts": [
20-
"mcp-simple-timeserver=mcp_simple_timeserver:main",
21-
]
22-
},
23-
)
3+
setup()

0 commit comments

Comments
 (0)