Add LICENSE, fix PEP 639 classifier warning, enhance --version output, add dev dependencies

- Create MIT LICENSE file
- Remove deprecated License classifier, add license-files to pyproject.toml
- Add __license__ constant to __init__.py
- Show full name, copyright, and license in rp --version
- Add ruff and mypy as dev dependencies
This commit is contained in:
2026-04-01 18:40:03 -07:00
parent 5b62100628
commit 5b336f2ce0
5 changed files with 201 additions and 4 deletions

View File

@@ -9,7 +9,7 @@ from typing import Annotated, Optional
import typer
from rich.console import Console
from rp import __version__
from rp import __author__, __license__, __version__
from rp.detect import detect_type
from rp.render import RenderOptions, render
@@ -24,7 +24,9 @@ app = typer.Typer(
def version_callback(value: bool) -> None:
if value:
console = Console()
console.print(f"rp {__version__}")
console.print(f"Rich Print (rp) {__version__}")
console.print(f"Copyright (c) 2026 {__author__}")
console.print(f"License: {__license__}")
raise typer.Exit()