Skip to main content

Example pyproject.toml configs for testing.

Project description

Example pyproject.toml configs for testing.

These are designed to be used in the testsuite for pyproject-parser and whey, but may be useful for other tools based on those.

Tests

Linux Test Status Windows Test Status macOS Test Status

PyPI

PyPI - Package Version PyPI - Supported Python Versions PyPI - Supported Implementations PyPI - Wheel

Activity

GitHub last commit GitHub commits since tagged version Maintenance PyPI - Downloads

QA

CodeFactor Grade Flake8 Status mypy status

Other

License GitHub top language Requirements Status

Installation

pyproject-examples can be installed from PyPI.

To install with pip:

$ python -m pip install pyproject-examples

Usage

pyproject-examples provides the following API:

pyproject_examples module

valid_pep621_config

A list of pytest params for valid pyproject.toml files per PEP 621. The params contain the pyproject.toml content as a string. Each param has its own unique ID, which can be seen in the source here.

bad_pep621_config

A list of pytest params for invalid pyproject.toml files per PEP 621. Each param contains the pyproject.toml content (as a string), the expected Python exception (for catching with pytest.raises), and the expected exception text (for passing as the match argument to pytest.raises. Each param also has its own unique ID, which can be seen in the source here.

valid_buildsystem_config

A list of pytest params for valid [build-system] tables from pyproject.toml files per PEP 517 and PEP 517. The params contain the pyproject.toml content as a string. Each param has its own unique ID, which can be seen in the source here.

bad_buildsystem_config

A list of pytest params for invalid [build-system] tables from pyproject.toml files per PEP 517 and PEP 517. Each param contains the pyproject.toml content (as a string), the expected Python exception (for catching with pytest.raises), and the expected exception text (for passing as the match argument to pytest.raises. Each param also has its own unique ID, which can be seen in the source here.

pyproject_examples.example_configs submodule

This module contains the example configuration files themselves. Each file is stored as a string.

The configuration files are:

  • MINIMAL_CONFIG

  • KEYWORDS

  • AUTHORS

  • UNICODE

  • MAINTAINERS

  • CLASSIFIERS

  • DEPENDENCIES

  • OPTIONAL_DEPENDENCIES

  • OPTIONAL_DEPENDENCIES_EMPTY_GROUP

  • URLS

  • ENTRY_POINTS

  • COMPLETE_PROJECT_A

  • COMPLETE_A

  • COMPLETE_B

  • COMPLETE_A_WITH_FILES

  • DYNAMIC_REQUIREMENTS

  • LONG_REQUIREMENTS

pyproject_examples.utils submodule

This module contains utility functions.

file_not_found_regex(filename: str) -> str

This function create a regular expression for testing FileNotFoundErrors.

This is useful for testing error messages between Windows and POSIX, as well as between CPython and PyPy.

filename The filename which can’t be found.

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

pyproject_examples-2023.6.30.tar.gz (7.3 kB view details)

Uploaded Source

Built Distribution

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

pyproject_examples-2023.6.30-py3-none-any.whl (33.0 kB view details)

Uploaded Python 3

File details

Details for the file pyproject_examples-2023.6.30.tar.gz.

File metadata

  • Download URL: pyproject_examples-2023.6.30.tar.gz
  • Upload date:
  • Size: 7.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for pyproject_examples-2023.6.30.tar.gz
Algorithm Hash digest
SHA256 22fb824b7847ae7e04ad2aa1fb1b4c380609ec7f48c43770a3f93486ee9a268b
MD5 539165367be47c8faf9be0bf80534415
BLAKE2b-256 22a461afc3d1d90f575e289ddd230302e76a99d7f348d5c9fd0f7b5c769264c6

See more details on using hashes here.

File details

Details for the file pyproject_examples-2023.6.30-py3-none-any.whl.

File metadata

File hashes

Hashes for pyproject_examples-2023.6.30-py3-none-any.whl
Algorithm Hash digest
SHA256 4dbf786013c157ede3f212bedae52f8c634d35f7c812f322bd40dc372630f66e
MD5 0bae5986852df15397957c03b3b4e7fa
BLAKE2b-256 a9abb48188190929e8ddc5be30373301a1f621cf9887b2a6542bb89358b33dcc

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