|
| 1 | +[project] |
| 2 | +name = "wolfcrypt" |
| 3 | +description = "Python module that encapsulates wolfSSL's crypto engine API." |
| 4 | +readme = "README.rst" |
| 5 | +requires-python = ">=3.10" |
| 6 | +authors = [ |
| 7 | + {name = "wolfSSL Inc.", email="info@wolfssl.com"}, |
| 8 | +] |
| 9 | +license = "GPL-2.0-only OR LicenseRef-WolfSSL" |
| 10 | +license-files = ["LICENSING.rst"] |
| 11 | +keywords = ["wolfssl", "wolfcrypt", "security", "cryptography"] |
| 12 | +classifiers = [ |
| 13 | + "Operating System :: OS Independent", |
| 14 | + "Programming Language :: Python :: 3", |
| 15 | + "Programming Language :: Python :: 3.10", |
| 16 | + "Programming Language :: Python :: 3.11", |
| 17 | + "Programming Language :: Python :: 3.12", |
| 18 | + "Programming Language :: Python :: 3.13", |
| 19 | + "Programming Language :: Python :: 3.14", |
| 20 | + "Topic :: Security", |
| 21 | + "Topic :: Security :: Cryptography", |
| 22 | + "Topic :: Software Development" |
| 23 | +] |
| 24 | +dynamic = ["version"] |
| 25 | +dependencies = [ |
| 26 | + "cffi>=1.0.0", |
| 27 | +] |
| 28 | + |
| 29 | +[project.urls] |
| 30 | +Homepage = "https://github.com/wolfssl/wolfcrypt-py" |
| 31 | + |
| 32 | +[build-system] |
| 33 | +requires = ["setuptools"] |
| 34 | +build-backend = "setuptools.build_meta:__legacy__" |
| 35 | + |
| 36 | +[dependency-groups] |
| 37 | +dev = [ |
| 38 | + "mypy", |
| 39 | + "pytest", |
| 40 | + "ruff", |
| 41 | + "sphinx", |
| 42 | + "sphinx-rtd-theme", |
| 43 | + "tox >= 4", |
| 44 | + "ty", |
| 45 | + "types-cffi", |
| 46 | +] |
| 47 | + |
| 48 | +[tool.tox] |
| 49 | +requires = ["tox>=4"] |
| 50 | +env_list = ["py3"] |
| 51 | + |
| 52 | +[tool.tox.env_run_base] |
| 53 | +package = "wheel" |
| 54 | +deps = ["-rrequirements/test.txt"] |
| 55 | +commands = [["py.test", "tests/"]] |
| 56 | + |
| 57 | + |
| 58 | +[tool.ruff] |
| 59 | +# Exclude a variety of commonly ignored directories. |
| 60 | +exclude = [ |
| 61 | + ".bzr", |
| 62 | + ".direnv", |
| 63 | + ".eggs", |
| 64 | + ".git", |
| 65 | + ".git-rewrite", |
| 66 | + ".hg", |
| 67 | + ".idea", |
| 68 | + ".ipynb_checkpoints", |
| 69 | + ".mypy_cache", |
| 70 | + ".nox", |
| 71 | + ".pants.d", |
| 72 | + ".pyenv", |
| 73 | + ".pytest_cache", |
| 74 | + ".pytype", |
| 75 | + ".ruff_cache", |
| 76 | + ".svn", |
| 77 | + ".tox", |
| 78 | + ".venv", |
| 79 | + ".vscode", |
| 80 | + "__pypackages__", |
| 81 | + "_build", |
| 82 | + "buck-out", |
| 83 | + "build", |
| 84 | + "dist", |
| 85 | + "lib", |
| 86 | + "node_modules", |
| 87 | + "site-packages", |
| 88 | + "venv", |
| 89 | +] |
| 90 | + |
| 91 | +# The GitHub editor is 127 characters wide. |
| 92 | +line-length = 127 |
| 93 | +indent-width = 4 |
| 94 | + |
| 95 | +# Assume Python 3.10 |
| 96 | +target-version = "py310" |
| 97 | + |
| 98 | +[tool.ruff.lint] |
| 99 | +# Enable Pyflakes (`F`) and a subset of the pycodestyle (`E`) codes by default. |
| 100 | +# Unlike Flake8, Ruff doesn't enable pycodestyle warnings (`W`) or |
| 101 | +# McCabe complexity (`C901`) by default. |
| 102 | +select = ["E4", "E7", "E9", "F", "B", "UP"] |
| 103 | +ignore = ["UP031", "UP025", "UP032"] |
| 104 | + |
| 105 | +# Allow fix for all enabled rules (when `--fix`) is provided. |
| 106 | +fixable = ["ALL"] |
| 107 | +unfixable = [] |
| 108 | + |
| 109 | +# Allow unused variables when underscore-prefixed. |
| 110 | +dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$" |
| 111 | + |
| 112 | +[tool.ruff.format] |
| 113 | +# Like Black, use double quotes for strings. |
| 114 | +quote-style = "double" |
| 115 | + |
| 116 | +# Like Black, indent with spaces, rather than tabs. |
| 117 | +indent-style = "space" |
| 118 | + |
| 119 | +# Like Black, respect magic trailing commas. |
| 120 | +skip-magic-trailing-comma = false |
| 121 | + |
| 122 | +# Like Black, automatically detect the appropriate line ending. |
| 123 | +line-ending = "auto" |
| 124 | + |
| 125 | +# Enable auto-formatting of code examples in docstrings. Markdown, |
| 126 | +# reStructuredText code/literal blocks and doctests are all supported. |
| 127 | +# |
| 128 | +# This is currently disabled by default, but it is planned for this |
| 129 | +# to be opt-out in the future. |
| 130 | +docstring-code-format = false |
| 131 | + |
| 132 | +# Set the line length limit used when formatting code snippets in |
| 133 | +# docstrings. |
| 134 | +# |
| 135 | +# This only has an effect when the `docstring-code-format` setting is |
| 136 | +# enabled. |
| 137 | +docstring-code-line-length = "dynamic" |
0 commit comments