-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
85 lines (68 loc) · 2.86 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# -*- coding: utf-8 -*-
# =============================================================================
# Project Configuration
# =============================================================================
[tool.poetry]
name = "swing_cookie"
version = "0.1.3"
description = "A Django plugin that manages cookies and consents."
authors = ["Scape Agency <[email protected]>"]
license = "MIT"
readme = "README.md"
homepage = "https://www.swing.dj"
repository = "https://github.com/scape-agency/swing-cookie"
documentation = "https://cookie.swing.dj"
keywords = ["Django", "plugin", "views", "template", "response-handling"]
classifiers = [
"Development Status :: 3 - Alpha",
"Framework :: Django",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development :: Libraries :: Python Modules",
]
include = [
"src/**",
"README.md",
"LICENSE",
"docs/**", # Include documentation in the package
]
packages = [{ include = "swing", from = "src" }]
# =============================================================================
# Dependencies
# =============================================================================
[tool.poetry.dependencies]
python = ">=3.10,<4.0"
Django = "^5.1"
# =============================================================================
# Development Dependencies
# =============================================================================
[tool.poetry.group.dev.dependencies]
pytest = "^8.3.5" # Framework for testing
pytest-django = "^4.10.0"
pytest-cov = "^6.0.0" # Code coverage for tests
black = "^25.1.0" # Code formatter
flake8 = "^7.1.2" # Linter for code quality
mypy = "^1.14.1" # Static type checker
sphinx = "^8.0.2" # Documentation generator
isort = "^6.0.1" # Import sorter
tox = "^4.24.2" # Testing multiple environments
pre-commit = "^4.2.0" # Pre-commit hooks for linting and formatting
# =============================================================================
# Build System
# =============================================================================
[build-system]
requires = ["poetry-core>=1.5.0"]
build-backend = "poetry.core.masonry.api"
# =============================================================================
# Scripts
# =============================================================================
[tool.poetry.scripts]
swing_cookie = "swing.cookie.__main__:main" # Entry point for the package
# =============================================================================
# Plugins
# =============================================================================
[tool.poetry.plugins."django.apps"]
"swing_cookie" = "swing.cookie.apps.SwingCookieConfig"