Skip to content

Commit

Permalink
bump_version: move to scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Tester authored and Tester committed Jan 22, 2024
1 parent 7fe89d8 commit 707eb26
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
15 changes: 0 additions & 15 deletions bump_version.sh

This file was deleted.

15 changes: 15 additions & 0 deletions scripts/bump_version.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash

VERSION=$1

# ../Makefile
gsed "s/^VERSION := .*/VERSION := ${VERSION}/g" -i ../Makefile

# ../curl_cffi/__version__.py
gsed "s/^__version__ = .*/__version__ = \"${VERSION}\"/g" -i ../curl_cffi/__version__.py

# ../pyproject.toml
gsed "s/^version = .*/version = \"${VERSION}\"/g" -i ../pyproject.toml

# ../setup.py
gsed "s/^__version__ = .*/__version__ = \"${VERSION}\"/g" -i ../setup.py

0 comments on commit 707eb26

Please sign in to comment.