File size: 971 Bytes
91c029d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Publishing chest2vec to PyPI

## Prerequisites

1. Create a PyPI account at https://pypi.org/account/register/
2. Create an API token at https://pypi.org/manage/account/token/
3. Install twine: `pip install twine`

## Build the package

```bash
python3 -m build
```

This creates `dist/chest2vec-0.6.0-py3-none-any.whl` and `dist/chest2vec-0.6.0.tar.gz`

## Upload to PyPI

### Test first on TestPyPI

```bash
# Upload to TestPyPI first to test
twine upload --repository testpypi dist/*
# You'll be prompted for username (__token__) and password (your API token)
```

### Then upload to PyPI

```bash
twine upload dist/*
# You'll be prompted for username (__token__) and password (your API token)
```

## After publishing

Once published, users can install with:

```bash
pip install chest2vec
```

Note: Users will still need to install PyTorch and flash-attention separately as documented in the README, since PyPI doesn't support custom index URLs in dependencies.