Metadata-Version: 2.4
Name: pypublish-cli
Version: 0.1.0
Summary: A CLI tool for publishing Python packages to PyPI
Author-email: Keli Hu <dev@keli.hu>
License: MIT
Requires-Python: >=3.7
Description-Content-Type: text/markdown
Requires-Dist: build
Requires-Dist: twine

# pypublish-cli

A CLI tool for publishing Python packages to PyPI.

## Installation

```bash
pip install pypublish-cli
```

## Usage

### Full publish workflow

```bash
pypublish 0.2.0              # Full publish: tag, build, upload
pypublish v0.2.0             # Full publish: tag, build, upload
```

This will:
1. Create a git tag
2. Push the tag to origin
3. Clean up old build artifacts
4. Build the package using `python -m build`
5. Upload to PyPI using `twine`

### Partial workflows

```bash
pypublish 0.2.0 --tag-only         # Only create and push tag
pypublish 0.2.0 --build-only       # Tag and build, don't upload
pypublish 0.2.0 --no-build         # Tag and upload existing dist/
pypublish 0.2.0 --no-upload        # Tag and build, don't upload
```

### Delete a tag

```bash
pypublish --delete-tag 0.2.0       # Delete tag locally and from origin
pypublish --delete-tag v0.2.0      # Delete tag locally and from origin
```

This will remove the tag both locally and from the remote repository.

## Requirements

- Python >= 3.7
- Git repository
- PyPI account configured with `twine`

## License

MIT
