Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Taskotron task regarding Python versions

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 supports Python 3 upstream but not in the package;

  • Whether the package requires /usr/bin/python (or python-unversioned-command).

Running

To run this task locally, execute the following command as root (don’t do this on a production machine!):

$ ansible-playbook tests.yml -e taskotron_item=<nevr>

where nevr is a Koji build name-(epoch:)version-release identifier.

For example:

$ ansible-playbook tests.yml -e taskotron_item=python-gear-0.11.0-1.fc27

You can see the results in ./artifacts/ directory.

You can also run the above in mock:

$ mock -r ./mock.cfg --init
$ mock -r ./mock.cfg --copyin taskotron_python_versions *.py tests.yml /
$ mock -r ./mock.cfg --shell 'ansible-playbook tests.yml -e taskotron_item=python-gear-0.11.0-1.fc27'
$ mock -r ./mock.cfg --copyout artifacts artifacts

Tests

This task is covered with functional and integration tests. You can run them using tox, but you will need mock, python3-rpm and python3-dnf installed. For mock configuration see mock setup instructions. Use the following command to run the test suite:

$ tox

The integration tests may take a while to execute, as they are running real tasks in mock. However, for development you may speed them up by reusing the results of the previous test run. This is useful if you modify the test itself, without changing the implementation of task checks. Use the following command to run integration tests in a fake mode:

$ tox -e integration -- --fake

The tests are also being executed on Travis CI. Since Travis CI runs on Ubuntu and Ubuntu lacks the RPM Python bindings and mock, 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.

Release files for taskotron-python-versions 0.1.dev6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for taskotron-python-versions 0.1.dev6
File Size Uploaded
taskotron-python-versions-0.1.dev6.tar.gz 6.0 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for taskotron-python-versions 0.1.dev6
File Interpreter ABI Platform
taskotron_python_versions-0.1.dev6-py3-none-any.whl Python 3 none any Details

Total release size: 6.0 MB

Release files / taskotron-python-versions-0.1.dev6.tar.gz

Download URL taskotron-python-versions-0.1.dev6.tar.gz
Size 6.0 MB
Tags Source
SHA-256 checksum
How to use checksums
761894637ff9e5cbda755286795acfb6e29c2ef22f5a5256709b775aa05b7a31
BLAKE2b-256 checksum
How to use checksums
30883cb87a39eef98e63be44e5298c6493ac09b7326642fc063f6a1f91e7825a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.2 pkginfo/1.4.2 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.5

Release files / taskotron_python_versions-0.1.dev6-py3-none-any.whl

Download URL taskotron_python_versions-0.1.dev6-py3-none-any.whl
Size 21.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3969cc7e2ee2ffc9dd14b91937ba27736815cdaa3767d930bd066f84299c74c6
BLAKE2b-256 checksum
How to use checksums
7928cdf7eb6c6390a79181d186d7b7f58532bb67bf18e27aaa88420baf572a4a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.2 pkginfo/1.4.2 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.5
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page