From 111266f579bcdc8f1f079600ccea24bf063446cc Mon Sep 17 00:00:00 2001 From: 7000pctAUTO Date: Sat, 31 Jan 2026 22:07:38 +0000 Subject: [PATCH] Fix pytest version and update CI workflow --- pyproject.toml | 63 ++++++++++++++++++++++++++++++++++++-------------- 1 file changed, 46 insertions(+), 17 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index aa8c298..fc9b3cd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,30 +1,59 @@ -[tool.poetry] +[project] name = "man-card" version = "1.0.0" description = "A CLI tool that parses man pages and generates beautiful, printable command reference cards" -authors = ["man-card contributors"] -license = "MIT" readme = "README.md" -packages = [{include = "man_card"}] +requires-python = ">=3.9" +license = {text = "MIT"} +authors = [ + {name = "Man Card Contributors"} +] +classifiers = [ + "Development Status :: 4 - Beta", + "Intended Audience :: Developers", + "Intended Audience :: System Administrators", + "License :: OSI Approved :: MIT License", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", +] +keywords = ["cli", "manpage", "documentation", "reference-card", "terminal"] -[tool.poetry.dependencies] -python = "^3.9" -click = "^8.1.7" -fpdf2 = "^2.7.5" -Pillow = "^10.1.0" -rich = "^13.7.0" -python-dotenv = "^1.0.0" +dependencies = [ + "click>=8.1.7", + "fpdf2>=2.7.5", + "Pillow>=10.1.0", + "rich>=13.7.0", + "python-dotenv>=1.0.0", +] -[tool.poetry.group.dev.dependencies] -pytest = "^7.4.0" -pytest-cov = "^4.1.0" +[project.optional-dependencies] +dev = [ + "pytest>=8.2.0", + "pytest-cov>=4.1.0", + "pytest-asyncio>=0.23.0", +] + +[project.scripts] +man-card = "man_card.cli:main" [build-system] -requires = ["poetry-core"] -build-backend = "poetry.core.masonry.api" +requires = ["setuptools>=61.0"] +build-backend = "setuptools.build_meta" + +[tool.setuptools.packages.find] +where = ["."] [tool.pytest.ini_options] testpaths = ["tests"] python_files = ["test_*.py"] -python_classes = ["Test*"] python_functions = ["test_*"] + +[tool.coverage.run] +source = ["man_card"] +omit = ["tests/*"] + +[tool.coverage.report] +exclude_lines = ["pragma: no cover", "def __repr__", "raise NotImplementedError"]