diff options
| author | Simeon Simeonov | 2026-04-28 14:27:05 +0200 |
|---|---|---|
| committer | Simeon Simeonov | 2026-04-28 14:27:05 +0200 |
| commit | 751c74e7de1c78a151fdd8b76f220d8411a2108a (patch) | |
| tree | 0b13345aad6949a3325ca8f72b4eece14a0fe973 /pyproject.toml | |
| parent | 82ef6adec6e59f9cc9dc9fa1a13a2b43e534bada (diff) | |
Restructure the entire project, enforce linting and add support for type checkers
Diffstat (limited to 'pyproject.toml')
| -rw-r--r-- | pyproject.toml | 64 |
1 files changed, 59 insertions, 5 deletions
diff --git a/pyproject.toml b/pyproject.toml index 272c00f..0c7cc65 100644 --- a/pyproject.toml +++ b/pyproject.toml | |||
| @@ -1,17 +1,71 @@ | |||
| 1 | [build-system] | 1 | [build-system] |
| 2 | requires = [ | 2 | requires = [ |
| 3 | "setuptools>=51", | 3 | "setuptools >= 77.0.3", |
| 4 | "wheel" | 4 | "wheel" |
| 5 | ] | 5 | ] |
| 6 | 6 | ||
| 7 | build-backend = "setuptools.build_meta" | 7 | build-backend = "setuptools.build_meta" |
| 8 | 8 | ||
| 9 | 9 | ||
| 10 | [project] | ||
| 11 | name = "pyotp2289" | ||
| 12 | description = "A pure Python implementation of 'A One-Time Password System'" | ||
| 13 | dynamic = ["version"] | ||
| 14 | license = "BSD-2-Clause" | ||
| 15 | authors = [{name = "Simeon Simeonov"}] | ||
| 16 | readme = "README.md" | ||
| 17 | requires-python = ">= 3.10" | ||
| 18 | |||
| 19 | classifiers = [ | ||
| 20 | "Development Status :: 5 - Production/Stable", | ||
| 21 | "Intended Audience :: Developers", | ||
| 22 | "Intended Audience :: System Administrators", | ||
| 23 | "Programming Language :: Python :: 3", | ||
| 24 | "Programming Language :: Python :: 3.10", | ||
| 25 | "Programming Language :: Python :: 3.11", | ||
| 26 | "Programming Language :: Python :: 3.12", | ||
| 27 | "Programming Language :: Python :: 3.13", | ||
| 28 | "Programming Language :: Python :: 3.14", | ||
| 29 | "Programming Language :: Python :: 3.15", | ||
| 30 | "Operating System :: OS Independent", | ||
| 31 | "Topic :: Security :: Cryptography", | ||
| 32 | ] | ||
| 33 | |||
| 34 | |||
| 35 | [dependency-groups] | ||
| 36 | dev = [ | ||
| 37 | "pytest>=7", | ||
| 38 | "ruff>=0.15.0", | ||
| 39 | "ty>=0.0.31", | ||
| 40 | ] | ||
| 41 | |||
| 42 | |||
| 43 | [project.scripts] | ||
| 44 | otp2289 = "otp2289.__main__:main" | ||
| 45 | |||
| 46 | |||
| 47 | [project.urls] | ||
| 48 | Homepage = "https://codeberg.org/sgs/pyotp2289" | ||
| 49 | Repository = "https://codeberg.org/sgs/pyotp2289" | ||
| 50 | Issues = "https://codeberg.org/sgs/pyotp2289/issues" | ||
| 51 | Changelog = "https://codeberg.org/sgs/pyotp2289/src/branch/master/CHANGELOG.md" | ||
| 52 | |||
| 53 | |||
| 10 | [tool.pytest.ini_options] | 54 | [tool.pytest.ini_options] |
| 11 | minversion = "7.0" | 55 | minversion = "7.0" |
| 12 | testpaths = [ | 56 | cache_dir = "~/.cache/pytest_cache" |
| 13 | "test" | ||
| 14 | ] | ||
| 15 | pythonpath = [ | 57 | pythonpath = [ |
| 16 | "src" | 58 | "src" |
| 59 | ] | ||
| 60 | testpaths = [ | ||
| 61 | "tests" | ||
| 17 | ] | 62 | ] |
| 63 | |||
| 64 | |||
| 65 | [tool.setuptools.dynamic] | ||
| 66 | version = {attr = "otp2289.__version__"} | ||
| 67 | |||
| 68 | |||
| 69 | [tool.ty.environment] | ||
| 70 | python-version = "3.10" | ||
| 71 | root = ["./src"] | ||
