Skip to content

Commit

Permalink
Fix version update script
Browse files Browse the repository at this point in the history
  • Loading branch information
davc0n committed Nov 7, 2022
1 parent e1119fb commit 114a08f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ setup_match="version = "
setup_ver="version = ${VERSION}"
sed -i -E "/$setup_match/s/.*/$setup_ver/" setup.cfg

header_match=" def __init__\(self, license_key, platform=\"modernmt-python\", platform_version="
header_ver=" def __init__\(self, license_key, platform=\"modernmt-python\", platform_version=\"${VERSION}\"\) -> None:"
header_match=" def __init__\(self, api_key, platform=\"modernmt-python\", platform_version="
header_ver=" def __init__\(self, api_key, platform=\"modernmt-python\", platform_version=\"${VERSION}\", api_client=None) -> None:"
sed -i -E "/$header_match/s/.*/$header_ver/" src/modernmt/modernmt.py

0 comments on commit 114a08f

Please sign in to comment.