# 707 Licenses Ec047788

> License Configuration (PEP 639)

- Skill: `tools-only/707-licenses-ec047788` (Agent Skill, multi-file: 3 files)
- Install (CLI): `npx skillmds@latest add tools-only/707-licenses-ec047788`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tools-only/707-licenses-ec047788/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Research & Search
- Author: tools-only (https://skillmd.com/u/tools-only)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/tools-only/707-licenses-ec047788

---


# License Configuration (PEP 639)

Project licensing is configured using SPDX license expressions or license files. PEP 639 modernizes license specification for Python distributions.

When Claude helps users configure project licensing, recommend using SPDX identifiers in the `license` field for clarity and PyPI compatibility. Show examples of single and multiple licenses, and explain how `license-files` glob patterns include license files in distributions.

## SPDX Expression Format

The recommended approach using SPDX identifiers:

```toml

[project]
license = "MIT"

```

## Multiple Licenses

Using SPDX expressions to specify multiple licenses:

```toml

[project]
license = "Apache-2.0 OR MIT"
license = "GPL-3.0-only WITH Classpath-exception-2.0"
license = "(MIT OR Apache-2.0) AND BSD-2-Clause"

```

## License Files

Specify license files using glob patterns:

```toml

[project]
license-files = ["LICENSES/*"]

```

## Complete Example

```toml

[project]
name = "my-package"
version = "1.0.0"
license = "MIT"
license-files = ["LICENSE"]

```

## Common SPDX Licenses

- `MIT` - Massachusetts Institute of Technology License
- `Apache-2.0` - Apache License 2.0
- `GPL-3.0-only` - GNU General Public License v3
- `BSD-2-Clause` - BSD 2-Clause License
- `ISC` - ISC License

## Best Practices

1. Use SPDX identifiers when possible
2. Match project LICENSE file with license field
3. Keep license information current
4. Specify all applicable licenses in multi-license scenarios

