Skip to content

Commit

Permalink
versions again
Browse files Browse the repository at this point in the history
  • Loading branch information
damies13 committed Feb 24, 2023
1 parent 8af7f62 commit 75a1540
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
11 changes: 8 additions & 3 deletions pypi_dev.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,15 @@ if [[ "$currversion" =~ v[0-9]\. ]]; then
echo version\: $version

# sed -i '' -e "s/version *= *\"[^\"]*\"/version = \"${version}\"/" $(find . -name "*.py")
sed -i '' -e "s/version = \"[^\"]*\"/version = \"${version}\"/" $(find . -name "*.py")
sed -i '' -e "s/version=\"[^\"]*\"/version=\"${version}\"/" $(find . -name "*.py")
# This was the macos way
# sed -i '' -e "s/version=\"[^\"]*\"/version=\"${version}\"/" $(find . -name "*.py")
# sed -i '' -e "s/version = \"[^\"]*\"/version = \"${version}\"/" $(find . -name "*.py")
# this is the linux way
sed -i -e "s/version = \"[^\"]*\"/version = \"${version}\"/" $(find . -name "*.py")
sed -i -e "s/version=\"[^\"]*\"/version=\"${version}\"/" $(find . -name "*.py")
# Version Test
sed -i '' -e "s/# Version .*/# Version ${version}/" $(find . -name "*.py")
# sed -i '' -e "s/# Version .*/# Version ${version}/" $(find . -name "*.py")
sed -i -e "s/# Version .*/# Version ${version}/" $(find . -name "*.py")

rm -R dist/
python3 setup*.py sdist bdist_wheel
Expand Down
13 changes: 10 additions & 3 deletions pypi_relese.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,17 @@ if [[ "$currversion" =~ v[0-9]\. ]]; then
echo version\: $version

# sed -i '' -e "s/version *= *\"[^\"]*\"/version = \"${version}\"/" $(find . -name "*.py")
sed -i '' -e "s/version = \"[^\"]*\"/version = \"${version}\"/" $(find . -name "*.py")
sed -i '' -e "s/version=\"[^\"]*\"/version=\"${version}\"/" $(find . -name "*.py")
# This was the macos way
# sed -i '' -e "s/version=\"[^\"]*\"/version=\"${version}\"/" $(find . -name "*.py")
# sed -i '' -e "s/version = \"[^\"]*\"/version = \"${version}\"/" $(find . -name "*.py")
# this is the linux way
sed -i -e "s/version = \"[^\"]*\"/version = \"${version}\"/" $(find . -name "*.py")
sed -i -e "s/version=\"[^\"]*\"/version=\"${version}\"/" $(find . -name "*.py")
# Version Test
sed -i '' -e "s/# Version .*/# Version ${version}/" $(find . -name "*.py")
# This was the macos way
# sed -i '' -e "s/# Version .*/# Version ${version}/" $(find . -name "*.py")
# this is the linux way
sed -i -e "s/# Version .*/# Version ${version}/" $(find . -name "*.py")

git commit -m "Version ${version}" -a
# git push
Expand Down

0 comments on commit 75a1540

Please sign in to comment.