setup-to-pyproject
БесплатноБез исполняемых скриптовНе проверенMigrate Python projects from setup.py/setup.cfg to pyproject.toml for use with uv. Use when upgrading legacy Python packaging, converting setup.py to modern…
Об этом скилле
Setup.py to pyproject.toml Migration for uv
Migrate legacy Python packaging to modern pyproject.toml with uv compatibility.
Core Structure
[project]
name = "package-name"
version = "0.1.0"
description = "Package description"
readme = "README.md"
requires-python = ">=3.10"
dependencies = [
"requests>=2.28",
]
license = "Apache-2.0"
[project.urls]
Homepage = "https://github.com/user/repo"
Changelog = "https://github.com/user/repo/releases"
Issues = "https://github.com/user/repo/issues"
CI = "https://github.com/user/repo/actions"
[dependency-groups]
dev = [
"pytest>=9.0",
"black>=25.12.0",
]
[build-system]
requires = ["uv_build>=0.9.18,<0.10.0"]
build-backend = "uv_build"
Key Migration Steps
1. Extract metadata from setup.py
Map setup() arguments to [project] table:
name→nameversion→versiondescription→descriptionlong_description→readme(use filename)author+author_email→authors = [{name = "...", email = "..."}]url→project.urls.Homepagepython_requires→requires-pythoninstall_requires→dependenciesentry_points.console_scripts→[project.scripts]
2. Set up dependency-groups for dev dependencies
Critical for uv run pytest to work:
[dependency-groups]
dev = [
"pytest>=9.0",
"black>=25.12.0",
]
3. Confirm it works with uv run
Then run tests with:
uv run pytest
The dev group will be picked up automatically by uv run.
4. Confirm it works with uv build
Test that building the package works correctly:
uv build
uv_build defaults to src/ layout. For flat layout (package directory at project root), add:
[tool.uv.build-backend]
module-root = ""
Files to Delete After Migration
setup.pysetup.cfgMANIFEST.in(usually, unless complex includes)requirements.txt/requirements-dev.txt(optional, uv manages these)
Установить setup-to-pyproject в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл setup-to-pyproject?
Migrate Python projects from setup.py/setup.cfg to pyproject.toml for use with uv. Use when upgrading legacy Python packaging, converting setup.py to modern pyproject.toml format, setting up dependency groups for development/testing, and ensuring `uv run pytest` works correctly.
Как установить скилл setup-to-pyproject?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл setup-to-pyproject запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic