Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/darklight1337/pycm
Command-line tool for checking Python compatibility
https://github.com/darklight1337/pycm
cli dependencies python
Last synced: 10 days ago
JSON representation
Command-line tool for checking Python compatibility
- Host: GitHub
- URL: https://github.com/darklight1337/pycm
- Owner: DarkLight1337
- License: mit
- Created: 2024-03-27T06:35:01.000Z (8 months ago)
- Default Branch: master
- Last Pushed: 2024-06-05T04:26:35.000Z (5 months ago)
- Last Synced: 2024-10-07T08:02:39.383Z (about 1 month ago)
- Topics: cli, dependencies, python
- Language: Python
- Homepage:
- Size: 50.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Python Compatibility Matrix
`pycm` is a command-line tool for checking which versions of Python are supported by a given package.
## Installation
### Requirements
- [Python](https://www.python.org/) 3.8+
### Procedure
1. Run `python -m pip install git+https://github.com/DarkLight1337/pycm.git` to install the package from this repository.
## Usage
### Syntax
```
pycm --python=
```### Example
Show the versions of [TensorFlow](https://tensorflow.org/) 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](https://www.tensorflow.org/install/source#tested_build_configurations).)
## Development
### Requirements
- [Python](https://www.python.org/) 3.8+
- [Poetry](https://python-poetry.org/) 1.4+### Setup
1. Clone this repository to your machine.
2. Run `poetry lock --no-update && poetry install --with dev` to setup the Python enviroment.### Lint
1. [Setup](#setup) the development environment.
2. Run `poetry run deptry . && poetry run ruff check . && poetry run pyright .` to lint the code.### Test
1. [Setup](#setup) the development environment.
2. Run `poetry run -- pytest` to test the code and output the coverage report.