Skip to content

Commit 7724cf8

Browse files
beaufourclaude
andcommitted
Update release.sh to use uv instead of pipenv
- Replace pipenv with uv for running Python - Use uv build instead of setup.py - Add twine to dev dependencies - Remove auto-version-bump (versions set manually now) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent edd26d4 commit 7724cf8

2 files changed

Lines changed: 11 additions & 11 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ dev = [
3333
"ruff",
3434
"mypy",
3535
"types-requests",
36+
"twine",
3637
]
3738

3839
[build-system]

release.sh

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
1-
#! /bin/bash
1+
#!/bin/bash
22
set -ex
33

4-
rm -fr ./dist
5-
CURV=`pipenv run python -c "from flickr_api._version import __version__ as v; print(v)"`
6-
NEXTV=`semver -i "$CURV"`
7-
gsed -e "s/$CURV/$NEXTV/g" -i flickr_api/_version.py
8-
git add .
9-
git commit -m"releasing version v$NEXTV"
10-
git tag "v$NEXTV"
11-
git push --tags
12-
python3 setup.py sdist bdist_wheel
13-
twine upload dist/*
4+
rm -rf ./dist
5+
6+
VERSION=$(uv run python -c "from flickr_api._version import __version__ as v; print(v)")
7+
8+
git tag "v$VERSION"
9+
git push origin "v$VERSION"
10+
11+
uv build
12+
uv run twine upload dist/*

0 commit comments

Comments
 (0)