RedHatProductSecurity / cvss

CVSS2/3/4 library with interactive calculator for Python 2 and Python 3
GNU Lesser General Public License v3.0
79 stars 28 forks source link

Add standardized test execution through Tox #40

Closed mprpic closed 1 year ago

mprpic commented 1 year ago

Use Tox to run tests against all Python versions.

This makes it easier to run tests against a specific version of Python (assuming it is available on the system), and allows for future addition of linting stages.

Also, rework the CI file to use the Tox GitHub action for parallel execution of all Tox stages. The previous CI would call Python 2 and 3 via a Bash script, which was problematic if the env did not have both versions installed, e.g.: https://github.com/RedHatProductSecurity/cvss/actions/runs/3953645813/jobs/6780884270

skontar commented 1 year ago

Maybe update supported versions on PyPI: https://github.com/RedHatProductSecurity/cvss/blob/b4cf0b2159fa4abdd6d1f731d1da6b9178494cfb/setup.py#L33-L43

mprpic commented 1 year ago

@skontar Done! Also updated the URL, added some project URLs (they show up nicely with icons in PyPI), and deduplicated the version string.