# error: invalid package name 'my_pkg' (hyphens are not allowed)

- **ID:** `python/setuptools-invalid-package-name`
- **Domain:** python
- **Category:** data_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

The package name contains hyphens, which are not allowed in Python package names; underscores or alphanumeric characters are required.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 3.6 | active | — | — |
| 3.7 | active | — | — |
| 3.8 | active | — | — |

## Workarounds

1. **** (95% success)
   ```
   In setup.py: name='my_pkg'
   ```
2. **** (90% success)
   ```
   setup(name='my-pkg', packages=['my_pkg'])
   ```

## Dead Ends

- **** — Setuptools will reject it. (90% fail)
- **** — Must also update the name in setup.py. (30% fail)
