Skip to content

Commit 2c612f5

Browse files
committed
Add upload pypi scripts
1 parent c03b054 commit 2c612f5

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

scripts/upload_pypi.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/bin/bash
2+
3+
# Step 0: Clean up
4+
rm -rf dist
5+
6+
# Step 1: Change the package name to "llava-torch"
7+
sed -i 's/name = "llava"/name = "llava-torch"/' pyproject.toml
8+
9+
# Step 2: Build the package
10+
python -m build
11+
12+
# Step 3: Revert the changes in pyproject.toml to the original
13+
sed -i 's/name = "llava-torch"/name = "llava"/' pyproject.toml
14+
15+
# Step 4: Upload to PyPI
16+
python -m twine upload dist/*

0 commit comments

Comments
 (0)