Skip to main content

Taskotron checks regarding Python versions

Project description

This represents the automatic checks happening in the Fedora infrastructure after any package is built.

Currently the following checks are available:

  • Whether a package does not require Python 2 and Python 3 at the same time;
  • Whether the package name follows the Python package naming scheme;
  • Whether the package uses versioned Python prefix in requirements’ names;
  • Whether only Python 2 version of the package contains the executables;
  • Whether the package uses versioned shebangs in its executables;
  • Whether the package supports Python 3 upstream but not in the package.

Running

You can run the checks locally with Taskotron. First, install it (you can follow the Quickstart). You’ll also need the rpm, dnf and libarchive-c Python 2 modules (python2-rpm, python2-dnf, python2-libarchive-c). Note that Taskotron unfortunately runs on Python 2, but the code in this repository is Python 3 compatible as well.

Once everything is installed you can run the task on a Koji build using the name-(epoch:)version-release (nevr) identifier.

$ runtask -i <nevr> -t koji_build runtask.yml

For example:

$ runtask -i eric-6.1.6-2.fc25 -t koji_build runtask.yml

Tests

There are also automatic tests available. You can run them using tox. You’ll need the above mentioned dependencies and python3-rpm and python3-dnf installed as well.

$ tox

Automatic tests also happen on Tarvis CI. Since Travis CI runs on Ubuntu and Ubuntu lacks the RPM Python bindings and Taskotron, Docker is used to run the tests on Fedora. You can run the tests in Docker as well, just use the commands from the .travis.yml file.

License

This code has been dedicated to the Public Domain, it is licensed with CC0 1.0 Universal Public Domain Dedication, full text of the license is available in the LICENSE file in this repository.

Please note that the RPM packages in this repository used for testing have their own license terms and are not dedicated to the Public Domain.

The sources of those packages can be found in Koji by searching the package name and selecting the appropriate version.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
taskotron_python_versions-0.1.dev3-py3-none-any.whl (16.8 kB) Copy SHA256 hash SHA256 Wheel py3 Jan 16, 2018
taskotron-python-versions-0.1.dev3.tar.gz (5.9 MB) Copy SHA256 hash SHA256 Source None Jan 16, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page