File tree Expand file tree Collapse file tree 4 files changed +15
-78
lines changed Expand file tree Collapse file tree 4 files changed +15
-78
lines changed Original file line number Diff line number Diff line change 75
75
export ACTION_REPOSITORY="WIPACrepo/wipac-dev-py-setup-action"
76
76
77
77
# get python3 version (max)
78
- SEMVAR_RANGE=$(grep "python_requires =" -h setup.cfg | awk -F 'python_requires =' '{print $2}')
79
- export PACKAGE_MAX_PYTHON_VERSION=$(python3 ${{ github.action_path }}/utils/max_python3.py "$SEMVAR_RANGE")
78
+ export SEMVAR_RANGE=$(grep "python_requires =" -h setup.cfg | awk -F 'python_requires =' '{print $2}')
79
+ echo $SEMVAR_RANGE
80
+ export PACKAGE_MAX_PYTHON_VERSION=$(python -c '
81
+ import os
82
+ from wipac_dev_tools import semvar_parser_tools
83
+ top_python = semvar_parser_tools.get_latest_py3_release()
84
+ all_matches = semvar_parser_tools.list_all_majmin_versions(
85
+ major=top_python[0],
86
+ semvar_range=os.environ["SEMVAR_RANGE"],
87
+ max_minor=top_python[1],
88
+ )
89
+ print(f"{max(all_matches)[0]}.{max(all_matches)[1]}")
90
+ ')
91
+ echo $PACKAGE_MAX_PYTHON_VERSION
80
92
81
93
# Build
82
94
if [ -f ./Dockerfile ]; then
Original file line number Diff line number Diff line change 1
- requests
2
- semantic-version
3
- wipac-dev-tools
1
+ wipac-dev-tools [semvar ]
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments