Skip to main content

Generate test configuration files and run tests

Project description

uvoxen - generate test configuration files and run tests

[Home | GitLab | PyPI | ReadTheDocs]

Overview

The uvoxen tool allows test environments to be defined in the pyproject.toml file with a syntax relatively similar to the one used for Tox configuration. It can then:

  • run tests defined in these environments using the uv tool
  • output Tox configuration and run Tox instead
  • export the dependency groups into text files

See the Getting started section for an introduction.

The uvoxen tool expects test dependencies to be defined as PEP 735 dependency groups in the pyproject.toml file.

Examples

These are some of the ways to use uvoxen; see the Getting started and the Configuration sections for more information.

Run tests using uv

The uvoxen uv run command runs one or more test environments in succession, recreating the .venv virtual environment in between. The commands defined in the environments are run using the uv tool.

uvoxen uv run

If the --python (-p) command-line option is specified before the uv subcommand, uvoxen will use that Python version to run the tests:

uvoxen -p 3.10 uv run -e mypy,unit-tests

If the special value supported is passed as a Python version, uvoxen will run all the selected environments for all the Python versions that are listed as supported in the project.classifiers section of the pyproject.toml file:

uvoxen -p supported uv run

Generate a Tox configuration file

The uvoxen tox generate command will export the environment definitions into a tox.ini file so that Tox may be used later (or separately):

uvoxen tox generate

If the --check command-line option is specified, uvoxen will not modify the tox.ini file, but it will exit with a non-zero code if any changes need to be made:

uvoxen tox generate --check

Generate requirements files from the dependency groups

The uvoxen req generate command will export the list of dependencies defined in the specified dependency group into a text file suitable for use with e.g. the ReadTheDocs mkdocs runner:

uvoxen req generate -g docs

If the --output (-o) option is not specified, the generated file will be named requirements/<group>.txt, e.g. requirements/docs.txt.

If the --check command-line option is specified, uvoxen will not modify the requirements/docs.txt file, but it will exit with a non-zero code if any changes need to be made:

uvoxen req generate --check -g docs

Contact

The uvoxen tool was written by Peter Pentchev. It is developed in a GitLab repository. This documentation is hosted at Ringlet with a copy at ReadTheDocs.

Project details


Download files

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

Source Distribution

uvoxen-0.2.1.tar.gz (62.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

uvoxen-0.2.1-py3-none-any.whl (20.4 kB view details)

Uploaded Python 3

File details

Details for the file uvoxen-0.2.1.tar.gz.

File metadata

  • Download URL: uvoxen-0.2.1.tar.gz
  • Upload date:
  • Size: 62.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for uvoxen-0.2.1.tar.gz
Algorithm Hash digest
SHA256 34d3b4562ceb3646d60fd3d488f113fec525e2375d1792d1ef4b0cd7331627c1
MD5 e9c7ba17c5b69b39e806b7088c2b9cf3
BLAKE2b-256 48c7cd7a5443af1e1fd3658e3a2a8dab943e64cc2eb2b396774f8d94fb5082c0

See more details on using hashes here.

File details

Details for the file uvoxen-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: uvoxen-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 20.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for uvoxen-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e736a3e71ace5f841091f66e0927fd26c4780857de3d4f170d1c353ff00c420f
MD5 1ba72ec6d8ef61fa72892e82a161c8e0
BLAKE2b-256 da7b675e6c5f25edabbe10325746c1f3bee79d76bef57d8d8f4b9817c10b966e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page