File: pyproject.toml

package info (click to toggle)
lexicon 3.21.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 72,688 kB
  • sloc: python: 20,075; sh: 94; makefile: 7
file content (163 lines) | stat: -rw-r--r-- 4,437 bytes parent folder | download
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[project]
name = "dns-lexicon"
version = "3.21.1"
description = "Manipulate DNS records on various DNS providers in a standardized/agnostic way"
license = "MIT"
keywords = [
    "dns", "lexicon", "dns-lexicon", "dehydrated", "letsencrypt",
]
classifiers = [
    "Development Status :: 5 - Production/Stable",
    "Intended Audience :: Developers",
    "Intended Audience :: System Administrators",
    "Topic :: Software Development :: Libraries :: Python Modules",
    "Topic :: Internet :: Name Service (DNS)",
    "Topic :: System :: Systems Administration",
    "Topic :: Utilities",
    "License :: OSI Approved :: MIT License",
    "Programming Language :: Python :: 3",
    "Programming Language :: Python :: 3.9",
    "Programming Language :: Python :: 3.10",
    "Programming Language :: Python :: 3.11",
    "Programming Language :: Python :: 3.12",
    "Programming Language :: Python :: 3.13",
]
authors = [
    { name = "Jason Kulatunga", email = "jason@thesparktree.com" },
    { name = "Adrien Ferrand", email = "ferrand.ad@gmail.com" },
]
readme = "pypi_readme.rst"

requires-python = ">= 3.9"
dependencies = [
    "tldextract >= 2",
    "cryptography >= 2",
    "pyyaml >= 3",
    "requests >= 2",
    "beautifulsoup4 >= 4",
    "pyotp >= 2",
    "dnspython >= 2",
    "importlib-metadata >= 4.6; python_version < '3.10'",
]

[project.optional-dependencies]
route53 = ["boto3 >= 1.28"]
localzone = ["localzone >= 0.9.8"]
softlayer = ["softlayer >= 5"]
gransy = ["zeep >= 3"]
oci = ["oci >= 2"]
qcloud = ["tencentcloud-sdk-python >= 3"]
full = [
    "boto3 >= 1.28",
    "localzone >= 0.9.8",
    "softlayer >= 5",
    "zeep >= 3",
    "oci >= 2",
    "tencentcloud-sdk-python >= 3",
]

[dependency-groups]
dev = [
    "esbonio",
    "packaging",
    "pytest",
    "pytest-cov",
    "pytest-xdist",
    "vcrpy",
    "flake8",
    "flake8-pyproject",
    "isort",
    "black",
    "mypy[reports]",
    "toml",
    "types-PyYAML",
    "types-requests",
    "types-toml",
]
doc = [
    "sphinx",
    "sphinx-mdinclude",
    "piccolo-theme",
]

[project.scripts]
lexicon = "lexicon._private.cli:main"

[tool.hatch.build.targets.sdist]
include = [ "/src" ]

[tool.hatch.build.targets.wheel]
packages = [ "src/lexicon" ]

[tool.pytest.ini_options]
junit_family = "xunit2"
filterwarnings = [
    # Fail for any warning, except...
    "error",
    # CGI, a transitive dependency for zeep (used by Gransy provider)
    # is deprecated. Let zeep manage that by Python 3.13.
    "ignore:'cgi' is deprecated:DeprecationWarning",
    # Ignore our own deprecation warnings.
    "ignore:Method execute\\(\\) is deprecated:DeprecationWarning",
    # Ignore deprecation warnings from datetime used by our third-party libraries.
    "ignore:.*datetime\\.utcnow\\(\\) is deprecated:DeprecationWarning",
    "ignore:.*datetime\\.utcfromtimestamp\\(\\) is deprecated:DeprecationWarning",
    # Ignore deprecation usages of urllib3 in boto
    "ignore:The 'strict' parameter is no longer needed on Python 3+:DeprecationWarning",
]

[tool.mypy]
show_error_codes = true
warn_redundant_casts = true
warn_unused_ignores = true

[tool.isort]
profile = "black"

[tool.flake8]
max-line-length = 88
extend-ignore = [ "E203", "E501" ]

[tool.tox]
envlist = [ "cover", "lint" , "mypy" ]

[tool.tox.env_run_base]
runner = "uv-venv-lock-runner"
with_dev = true
extras = [ "full" ]
setenv.PYTEST_ADDOPTS = "--numprocesses auto"
setenv.PYTHONHASHSEED = "0"
commands = [[
    "pytest", "tests/", "--junitxml=reports/test-results.xml", "--dist=loadfile",
]]

# Cover env will run all test available for all providers with coverage enabled.
[tool.tox.env.cover]
commands = [[
    "pytest", "tests/", "--junitxml=reports/test-results.xml", "--dist=loadfile",
    "--cov=lexicon", "--cov-report=term-missing", "--cov-report=xml",
]]

# Light env will run all tests except for providers with optional dependencies.
[tool.tox.env.light]
extras = []
commands = [[
    "pytest", "tests/", "--junitxml=reports/test-results.xml", "--dist=loadfile",
    "--xfail-providers-with-missing-deps",
]]

# Lint env will check for code quality and errors, and fails if it does not match the minimal requirements.
[tool.tox.env.lint]
commands = [[
    "flake8", "src", "tests",
]]

# Mypy env will check for types in the Lexicon codebase.
[tool.tox.env.mypy]
commands = [[
    "mypy", "src", "tests"
]]