Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
104 lines (92 loc) · 3.09 KB
/
Copy pathpyproject.toml
File metadata and controls
104 lines (92 loc) · 3.09 KB
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
[build-system]
requires = ["hatchling>=1.27"]
build-backend = "hatchling.build"
[project]
name = "internetdata"
dynamic = ["version"]
description = "Official Python client library for the InternetData API. Look up IP addresses, ASNs and domains, and download licensed IP databases."
readme = "README.md"
license = "MIT"
license-files = ["LICENSE"]
requires-python = ">=3.11"
authors = [{ name = "Mslm Dev", email = "support@internetdata.io" }]
keywords = [
"internetdata",
"ip-database",
"ip-intelligence",
"mmdb",
"geolocation",
"asn",
"domain",
"ip-lookup",
"bogon",
"vpn",
"proxy",
"hosting",
"dataset",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Internet",
"Topic :: Security",
"Typing :: Typed",
]
dependencies = [
"httpx>=0.27,<1",
"attrs>=22.2.0",
"cachetools>=5.3",
]
[project.optional-dependencies]
dev = [
"pytest>=8.0",
"pytest-asyncio>=0.24",
"mypy>=1.11",
"ruff>=0.6",
"openapi-python-client>=0.29,<0.30",
]
[project.urls]
Homepage = "https://internetdata.io"
Documentation = "https://docs.internetdata.io"
Source = "https://github.com/internetdata/sdk-python"
Issues = "https://github.com/internetdata/sdk-python/issues"
[tool.hatch.version]
path = "src/internetdata/__init__.py"
[tool.hatch.build.targets.wheel]
packages = ["src/internetdata"]
# Root-anchored, because a bare "scripts" also matches integration/scripts and would ship
# a runner without the suite it drives.
[tool.hatch.build.targets.sdist]
include = ["/src", "/tests", "/testdata", "/spec", "/scripts", "/README.md", "/LICENSE"]
[tool.pytest.ini_options]
testpaths = ["tests"]
asyncio_mode = "auto"
# Read by `ruff`, which openapi-python-client runs over its own output, so the generated
# client and the hand-written layer are formatted to the same width.
[tool.ruff]
line-length = 100
[tool.ruff.lint.per-file-ignores]
# The generated tree is replaced wholesale by scripts/generate.sh, so a lint fix here
# would be undone by the next spec refresh. This one fires because the spec spells
# `license_type` as a nullable enum and the generator renders that as three separate
# single-member classes, hence three `isinstance` arms it will not merge.
"src/internetdata/_generated/**/*.py" = ["SIM101"]
[tool.mypy]
python_version = "3.11"
strict = true
# The integration suite is checked by a second invocation rather than listed here: it
# carries a conftest.py of its own, and mypy cannot hold two modules of one name at once.
files = ["src/internetdata", "tests"]
# Generated from spec/openapi.yaml. It is checked by being regenerated, not by mypy.
[[tool.mypy.overrides]]
module = "internetdata._generated.*"
ignore_errors = true
[[tool.mypy.overrides]]
module = "cachetools"
ignore_missing_imports = true