# PyPI Publishing Guide

## 1. Package name check

Before publishing, make sure `deepranker` is available on PyPI.

If the name is already taken, update the `name` value in `pyproject.toml`.

## 2. Install build tools

```bash
python -m pip install --upgrade pip build twine
```

## 3. Build the package

```bash
python -m build
```

This creates these files under `dist/`:

- source distribution: `.tar.gz`
- wheel distribution: `.whl`

## 4. Validate package metadata

```bash
python -m twine check dist/*
```

## 5. Upload to TestPyPI first

```bash
python -m twine upload --repository testpypi dist/*
```

## 6. Upload to PyPI

```bash
python -m twine upload dist/*
```

## 7. Install and verify

```bash
pip install FeatureRank
```

## Notes

- Use your existing PyPI username and password or API token.
- Prefer an API token instead of a plain password.
- If you publish version `0.1.0`, you cannot upload the same version again. Increase the version to `0.1.1` or `0.2.0` for the next release.