Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hroncok/travis-pyversion
Check your Python versions on Travis CI
https://github.com/hroncok/travis-pyversion
Last synced: 17 days ago
JSON representation
Check your Python versions on Travis CI
- Host: GitHub
- URL: https://github.com/hroncok/travis-pyversion
- Owner: hroncok
- License: other
- Created: 2017-03-17T14:26:06.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-03-17T23:31:03.000Z (almost 8 years ago)
- Last Synced: 2024-12-13T20:49:54.822Z (22 days ago)
- Language: Python
- Homepage:
- Size: 106 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
travis-pyversion
================A small script that helps you check if your Python version on Travis CI is
recent enough.
It goes trough your public GitHub repos and checks `.travis.yml`.Installation
------------Only works with Python 3.6 or later. It's recommended to use virtual
environment for dependencies:$ python3.6 -m venv __env__
$ . __env__/bin/activate
(__env__) $ pip install -r requirements.txtUsage
-----(__env__) $ python travis-pyversion.py --help
Usage: travis-pyversion.py [OPTIONS]
Options:
--username TEXT Your GitHub username/organization.
--version TEXT Python version to check.
--token TEXT GitHub token (optional, will fetch
anonymously if not provided, may hit rate
limit).
--repo-type [all|owner|member] Repo types to check, default: all.
--forks / --no-forks Whether to check forks (default is not to).
--help Show this message and exit.You need to provide your GitHub username and the Python version you want to
check. If you don't use the command line options, the script will prompt you
with reasonable defaults. You can provide a
[GitHub token](https://github.com/settings/tokens) (no scope needed)
if you ever hit the API rate limit.The output
----------The script will output a list of your repos with Pythonic `.travis.yml` and the
Python versions in there. Please note that repos containing the specified
version of Python will be green and printed to the standard output, whereas
repos without it will be red and printed to the standard error.![Screenshot](screenshot.png)
License
-------This is a free software licensed under the terms of the so-called MIT license.
See [LICENSE](LICENSE) for full text.