Skip to content

Commit

Permalink
Get wipac-dev-tools[semver] Name Fixes (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
ric-evans authored Feb 8, 2024
1 parent ce85742 commit 23d196e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,15 @@ runs:
export ACTION_REPOSITORY="WIPACrepo/wipac-dev-py-setup-action"
# get python3 version (max)
export SEMVAR_RANGE=$(grep "python_requires =" -h setup.cfg | awk -F 'python_requires =' '{print $2}')
echo $SEMVAR_RANGE
export semver_RANGE=$(grep "python_requires =" -h setup.cfg | awk -F 'python_requires =' '{print $2}')
echo $semver_RANGE
export PACKAGE_MAX_PYTHON_VERSION=$(python -c '
import os
from wipac_dev_tools import semvar_parser_tools
top_python = semvar_parser_tools.get_latest_py3_release()
all_matches = semvar_parser_tools.list_all_majmin_versions(
from wipac_dev_tools import semver_parser_tools
top_python = semver_parser_tools.get_latest_py3_release()
all_matches = semver_parser_tools.list_all_majmin_versions(
major=top_python[0],
semvar_range=os.environ["SEMVAR_RANGE"],
semver_range=os.environ["semver_RANGE"],
max_minor=top_python[1],
)
print(f"{max(all_matches)[0]}.{max(all_matches)[1]}")
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
wipac-dev-tools[semvar]
wipac-dev-tools[semver]

0 comments on commit 23d196e

Please sign in to comment.