pycm
is a command-line tool for checking which versions of Python are supported by a given package.
- Python 3.8+
- Run
python -m pip install git+https://github.com/DarkLight1337/pycm.git
to install the package from this repository.
pycm <package> --python=<versions>
Show the versions of TensorFlow that can be used with Python 3.8-3.11:
> pycm tensorflow --python=3.8,3.9,3.10,3.11
tensorflow (→) 2.2.3 2.3.4 2.4.4 2.5.3 2.6.5 2.7.4 2.8.4 2.9.3 2.10.1 2.11.1 2.12.1 2.13.1 2.14.1 2.15.1 2.16.1
Python (↓)
3.8 Y Y Y Y Y Y Y Y Y Y Y Y
3.9 Y Y Y Y Y Y Y Y Y Y Y Y
3.10 Y Y Y Y Y Y Y Y Y
3.11 Y Y Y Y Y
(You can cross-check this table against the official compatibility matrix.)
- Clone this repository to your machine.
- Run
poetry lock --no-update && poetry install --with dev
to setup the Python enviroment.
- Setup the development environment.
- Run
poetry run deptry . && poetry run ruff check . && poetry run pyright .
to lint the code.
- Setup the development environment.
- Run
poetry run -- pytest
to test the code and output the coverage report.