| 1 |
# pyproject.toml |
| 2 |
# Python project metadata and build settings for this code base. |
| 3 |
# Documentation: <URL:https://packaging.python.org/specifications/pyproject-toml/>. |
| 4 |
|
| 5 |
[project] |
| 6 |
|
| 7 |
# Name of the Python distribution to build. |
| 8 |
name = "dput" |
| 9 |
|
| 10 |
# Keywords to assist searching for this distribution in a larger catalog. |
| 11 |
keywords = ["debian", "package", "upload", "test"] |
| 12 |
|
| 13 |
# Trove classifiers for this project. |
| 14 |
# Reference: <URL:https://pypi.org/classifiers/>. |
| 15 |
classifiers = [ |
| 16 |
"Development Status :: 5 - Production/Stable", |
| 17 |
"Operating System :: POSIX", |
| 18 |
"Programming Language :: Python :: 3", |
| 19 |
"Intended Audience :: Developers", |
| 20 |
"Topic :: Software Development :: Build Tools", |
| 21 |
] |
| 22 |
|
| 23 |
# SPDX license expression for the copyright license granted to recipients. |
| 24 |
license = "GPL-3.0-or-later" |
| 25 |
|
| 26 |
# Files in this project containing full text of copyright license granted. |
| 27 |
license-files = [ |
| 28 |
"LICENSE.GPL-3", |
| 29 |
] |
| 30 |
|
| 31 |
# Core dependencies required for the package to operate. |
| 32 |
dependencies = [ |
| 33 |
|
| 34 |
# Abstractions for many formats of Debian related files. |
| 35 |
# Homepage: <URL:https://salsa.debian.org/python-debian-team/python-debian>. |
| 36 |
"python-debian", |
| 37 |
|
| 38 |
# Bindings for GPGME GnuPG cryptography library. |
| 39 |
# Homepage: <URL:https://www.gnupg.org/>. |
| 40 |
"gpg", |
| 41 |
|
| 42 |
# Variables defined by the XDG Base Directory Specification. |
| 43 |
# Homepage: <URL:https://github.com/srstevenson/xdg-base-dirs>. |
| 44 |
"xdg", |
| 45 |
|
| 46 |
] |
| 47 |
|
| 48 |
# Names of fields that must be dynamically computed by the build system. |
| 49 |
dynamic = [ |
| 50 |
"description", |
| 51 |
"readme", |
| 52 |
"version", |
| 53 |
"authors", |
| 54 |
"maintainers", |
| 55 |
"urls", |
| 56 |
] |
| 57 |
|
| 58 |
# Executable commands to install for this distribution. |
| 59 |
# Key is the command name, value is the `module_name:callable_name` to invoke. |
| 60 |
[project.scripts] |
| 61 |
execute-dput = "dput.dput:main" |
| 62 |
execute-dcut = "dput.dcut:dcut" |
| 63 |
|
| 64 |
[project.optional-dependencies] |
| 65 |
|
| 66 |
test = [ |
| 67 |
|
| 68 |
# Extensions to the Python ‘unittest’ framework. |
| 69 |
# Documentation: <URL:https://testtools.readthedocs.org/>. |
| 70 |
"testtools", |
| 71 |
|
| 72 |
# Data-driven test scenarios for ‘unittest’. |
| 73 |
# Documentation: <URL:https://pypi.org/project/testscenarios/>. |
| 74 |
"testscenarios >= 0.4", |
| 75 |
|
| 76 |
# Library of fake data generators. |
| 77 |
# Documentation: <URL:https://faker.readthedocs.io/>. |
| 78 |
"Faker", |
| 79 |
|
| 80 |
] |
| 81 |
|
| 82 |
|
| 83 |
[build-system] |
| 84 |
|
| 85 |
# Minimum requirements for the build system. |
| 86 |
requires = [ |
| 87 |
|
| 88 |
# Framework for working with Python packages. |
| 89 |
# Documentation: <URL:https://setuptools.pypa.io/>. |
| 90 |
"setuptools >= 62.4.0", |
| 91 |
|
| 92 |
# Abstractions for many formats of Debian related files. |
| 93 |
# Homepage: <URL:https://salsa.debian.org/python-debian-team/python-debian>. |
| 94 |
"python-debian", |
| 95 |
|
| 96 |
] |
| 97 |
|
| 98 |
# Path to the Python object to perform the build. |
| 99 |
build-backend = "setuptools.build_meta" |
| 100 |
|
| 101 |
|
| 102 |
[tool.setuptools.packages.find] |
| 103 |
|
| 104 |
# Folders that contain the packages (default: ["."]). |
| 105 |
where = ["."] |
| 106 |
|
| 107 |
# Filename globs to exclude from package discovery. |
| 108 |
exclude = ["debian", "test"] |
| 109 |
|
| 110 |
|
| 111 |
# Configuration for PyLint static analysis tool. |
| 112 |
# Reference: <URL:https://pylint.pycqa.org/en/stable/user_guide/configuration/> |
| 113 |
[tool.pylint."messages control"] |
| 114 |
|
| 115 |
# Disable the message, report, category or checker with the given id(s). |
| 116 |
disable = [ |
| 117 |
# Python's `str.format` is more explicit and readable than F strings. |
| 118 |
"consider-using-f-string", |
| 119 |
] |
| 120 |
|
| 121 |
|
| 122 |
# Local-variables: |
| 123 |
# coding: utf-8 |
| 124 |
# mode: conf |
| 125 |
# mode: toml |
| 126 |
# End: |
| 127 |
# vim: fileencoding=utf-8 filetype=toml : |