我正在尝试将我的pyversion图标设置为我的github README,类似于:
我一直在努力对coveralls-python project的设置进行逆向工程。
我的.travis.yaml文件如下所示:
language: python
python:
- "2.7"
- "3.3"
- "3.4"
- "3.5"
- "3.6"
install:
- pip install tox-travis
- pip install python-coveralls
script:
- tox
- coverage run --source ibm_analytics_engine -m ibm_analytics_engine.iae
- coverage report -m
after_success:
- coveralls
我的README有:
[![Pyversions](https://img.shields.io/pypi/pyversions/ibm-analytics-engine-python.svg?style=flat-square)](https://pypi.python.org/pypi/ibm-analytics-engine-python)
但是,我的输出如下:
pyversions信息从哪里获取?它来自pypi页面吗?如果没有,我如何让shields.io反映我的库支持的python版本?
答案 0 :(得分:2)
好的,python版本是从PyPi中读取的。
我只需要将它添加到我的setup.py分类器中:
Programming Language :: Python
Programming Language :: Python :: 2.6
Programming Language :: Python :: 2.7
Programming Language :: Python :: 3.3
Programming Language :: Python :: 3.4
Programming Language :: Python :: 3.5