hatchling
关于
This skill provides comprehensive documentation for Hatchling, the modern Python build backend implementing PEP standards. Use it when configuring `pyproject.toml`, managing project metadata and dependencies, or troubleshooting build errors for wheel and sdist creation. It covers key capabilities like configuration, version management, build hooks, and migration from setuptools.
技能文档
Hatchling
Overview
Hatchling is a modern, standards-compliant Python build backend that replaces legacy setuptools for package building. It provides clear configuration through pyproject.toml, intelligent defaults, and extensibility through hooks and plugins. This skill enables understanding Hatchling's architecture, configuration options, and build customization capabilities.
Key Capabilities
- Configuration via pyproject.toml: Standards-compliant PEP 621 metadata with sensible defaults
- Build Targets: Wheel and source distribution builds with extensive customization
- Build Hooks: Dynamic code execution during build for artifacts, version management, and compilation
- Version Management: Multiple version sources with automatic version injection
- File Selection: Git-aware VCS integration with glob pattern matching
- Plugins: Extensible architecture for custom builders, hooks, and metadata hooks
Reference Documentation
This skill provides comprehensive reference documentation organized by topic. Each section links to detailed guides covering configuration, usage patterns, and examples.
Project Configuration
- Project Metadata & Configuration - Package metadata, dependencies, entry points, dynamic fields
- Build System Configuration - Build backend setup, PEP 517/518, reproducible builds, environment variables
Build Targets
- Wheel Build Target - Wheel configuration, package discovery, file selection, editable installs
- Source Distribution (Sdist) Target - Sdist configuration, VCS integration, legacy setup.py support
- Build Target Types - Wheel, sdist, binary, custom builders, multi-version builds
- Build Targets Configuration Details - Target-specific hooks, dependencies, versions, precedence
File Selection & Build Customization
- File Selection & Patterns - Git-style globs, include/exclude patterns, VCS integration, force-include
- Build Hooks - Hook interface, execution order, custom hooks, version hooks, build data passing
- Advanced Build Features - Dynamic dependencies, force-include, path rewriting, editable installs, build context
Version & Metadata Management
- Version Management - Version sources (code, regex, env), schemes, validation, build hooks
- Metadata Hooks - Metadata hook interface, custom hooks, dynamic metadata generation
- Context Formatting & Dynamic Configuration - Context variables, environment-based config, interpolation
Plugin System
- Plugin System & Extensibility - Builder, hook, metadata, version plugins, hatch-vcs, plugin development
Build Environment & Integration
- Build Environment Internals - Environment config, dependencies, UV vs pip, Cython integration, isolation
- Integration & Compatibility - PEP standards compliance, setup.py migration, setuptools compatibility, CMake/extensions
- Special Configuration Options - PEP 561 type hints, SPDX licenses, namespace packages, src-layout, extensions
Core Concepts & Standards
- Core Concepts & Best Practices - PEP 517 backend, minimal philosophy, VCS file selection, reproducible builds
- Related Standards & Specifications - Python packaging overview, PEP references, metadata specs, distribution formats
Operational Guides
- Command-Line Building - hatch build commands, python -m build, pip install, output customization
- Error Handling & Validation - Path validation, file selection errors, version/license validation, heuristic failures
- Release Notes & Version History - Hatchling version history, feature additions, PEP 639 support, performance improvements
快速安装
/plugin add https://github.com/Jamie-BitFlight/claude_skills/tree/main/hatchling在 Claude Code 中复制并粘贴此命令以安装该技能
GitHub 仓库
相关推荐技能
langchain
元LangChain是一个用于构建LLM应用程序的框架,支持智能体、链和RAG应用开发。它提供多模型提供商支持、500+工具集成、记忆管理和向量检索等核心功能。开发者可用它快速构建聊天机器人、问答系统和自主代理,适用于从原型验证到生产部署的全流程。
go-test
元go-test Skill为Go开发者提供全面的测试指导,涵盖单元测试、性能基准测试和集成测试的最佳实践。它能帮助您正确实现表驱动测试、子测试组织、mock接口和竞态检测,同时指导测试覆盖率分析和性能基准测试。当您编写_test.go文件、设计测试用例或优化测试策略时,这个Skill能确保您遵循Go语言的标准测试惯例。
project-structure
元这个Skill为开发者提供全面的项目目录结构设计指南和最佳实践。它涵盖了多种项目类型包括monorepo、前后端框架、库和扩展的标准组织结构。帮助团队创建可扩展、易维护的代码架构,特别适用于新项目设计、遗留项目迁移和团队规范制定。
issue-documentation
元该Skill为开发者提供标准化的issue文档模板和指南,适用于创建bug报告、GitHub/Linear/Jira问题等场景。它能系统化地记录问题状况、复现步骤、根本原因、解决方案和影响范围,确保团队沟通清晰高效。通过实施主流问题跟踪系统的最佳实践,帮助开发者生成结构完整的故障排除文档和事件报告。
