# - check the c extension
# - runs the tests
run: |
- pip install -q wheel
- version=`python -W ignore -c 'from wheel.pep425tags import get_abbr_impl, get_impl_ver, get_abi_tag; print("{0}{1}-{2}".format(get_abbr_impl(), get_impl_ver(), get_abi_tag()))'`
- echo Wheel tag ${{ matrix.python-version }}. Installed version $version.
- if [[ "${{ matrix.python-version }}" = "$version" ]]
+ pip install packaging>=20.4
+ if python .github/workflows/scripts/can_install.py "${{ matrix.python-version }}"
then
pip install -f dist --no-index sqlalchemy
python -c 'from sqlalchemy import cprocessors, cresultproxy, cutils'
--- /dev/null
+import sys
+from packaging import tags
+
+to_check = "--"
+found = False
+if len(sys.argv) > 1:
+ to_check = sys.argv[1]
+ for t in tags.sys_tags():
+ start = "-".join(str(t).split("-")[:2])
+ if to_check.lower() == start:
+ print(
+ "Wheel tag {0} matches installed version {1}.".format(
+ to_check, t
+ )
+ )
+ found = True
+ break
+if not found:
+ print(
+ "Wheel tag {0} not found in installed version tags {1}.".format(
+ to_check, [str(t) for t in tags.sys_tags()]
+ )
+ )
+ exit(1)