Skip to content

Commit d63b922

Browse files
committed
Refactor setup.py to load long description from README.md using pathlib and improve package description.
1 parent ef32a38 commit d63b922

2 files changed

Lines changed: 17 additions & 13 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
44

55
[tool.poetry]
66
name = "pyzmap"
7-
version = "0.1.0"
7+
version = "0.1.1"
88
description = "Python SDK for the ZMap network scanner"
99
readme = "README.md"
1010
authors = ["Atilla <attilla@tuta.io>"]

setup.py

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,29 @@
11
from setuptools import find_packages, setup
2+
from pathlib import Path
23

3-
with open("README.md", encoding="utf-8") as fh:
4-
long_description = fh.read()
4+
# Load long description from README.md
5+
this_directory = Path(__file__).parent
6+
long_description = (this_directory / "README.md").read_text(encoding="utf-8")
57

68
setup(
79
name="pyzmap",
8-
version="0.1.0",
9-
description="Python SDK for the ZMap network scanner with REST API",
10+
version="0.1.1",
11+
description="Python SDK for the ZMap network scanner with REST API support",
12+
long_description=long_description,
13+
long_description_content_type="text/markdown",
1014
author="Atilla",
1115
author_email="attilla@tuta.io",
1216
url="https://github.com/atiilla/pyzmap",
1317
packages=find_packages(),
1418
install_requires=[
15-
"pydantic>=1.8.0,<2.0.0", # For data validation
16-
"fastapi>=0.68.0", # For REST API
17-
"uvicorn>=0.15.0", # For serving the API
18-
"psutil>=5.8.0", # For system and process management
19-
"httpx>=0.18.0", # For making HTTP requests
20-
"click>=8.1.8,<9.0.0", # CLI support
21-
"tomli>=2.0.1,<3.0.0", # TOML parsing
22-
"tomlkit>=0.13.2,<0.14.0", # TOML editing
19+
"pydantic>=1.8.0,<2.0.0", # Data validation
20+
"fastapi>=0.68.0", # REST API
21+
"uvicorn>=0.15.0", # ASGI server
22+
"psutil>=5.8.0", # System/process monitoring
23+
"httpx>=0.18.0", # HTTP client
24+
"click>=8.1.8,<9.0.0", # CLI
25+
"tomli>=2.0.1,<3.0.0", # TOML reader
26+
"tomlkit>=0.13.2,<0.14.0", # TOML writer/editor
2327
],
2428
extras_require={
2529
"dev": [

0 commit comments

Comments
 (0)