-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathpyproject.toml
More file actions
107 lines (94 loc) · 2.58 KB
/
pyproject.toml
File metadata and controls
107 lines (94 loc) · 2.58 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
105
106
107
[build-system]
requires = ["setuptools>=69", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "ipgeolocationio"
version = "2.0.0"
description = "Typed Python SDK for the IPGeolocation.io IP location API, with sync and async clients."
readme = "README.md"
license = "MIT"
license-files = ["LICENSE"]
requires-python = ">=3.8"
authors = [
{ name = "IPGeolocation Team", email = "support@ipgeolocation.io" }
]
keywords = [
"ipgeolocation",
"geolocation",
"vpn-detection",
"proxy-detection",
"threat-intelligence",
"asn",
"timezone",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"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",
"Typing :: Typed",
"Topic :: Internet",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = [
"httpx>=0.28,<1",
"requests>=2.32.4,<3",
]
[project.optional-dependencies]
dev = [
"pytest>=8.0.0,<9",
"pytest-cov>=7.0.0,<8",
"pyright>=1.1.408,<2",
"ruff>=0.15.6,<0.16",
"mypy>=1.19.1,<2",
"types-requests>=2.32.4,<3",
]
[project.urls]
Homepage = "https://ipgeolocation.io/"
Documentation = "https://ipgeolocation.io/documentation/ip-geolocation-api-python-sdk.html"
Repository = "https://github.com/IPGeolocation/ip-geolocation-api-python-sdk"
Issues = "https://github.com/IPGeolocation/ip-geolocation-api-python-sdk/issues"
[tool.setuptools]
package-dir = { "" = "src" }
[tool.setuptools.package-data]
ipgeolocation = ["py.typed"]
[tool.setuptools.packages.find]
where = ["src"]
[tool.pytest.ini_options]
pythonpath = ["src"]
testpaths = ["tests"]
addopts = ["-p", "no:cacheprovider"]
[tool.coverage.run]
branch = true
source = ["src/ipgeolocation"]
[tool.coverage.report]
fail_under = 90
show_missing = true
skip_covered = false
[tool.ruff]
target-version = "py38"
line-length = 100
[tool.ruff.lint]
select = ["E", "F", "I"]
[tool.mypy]
# mypy 1.19+ no longer supports targeting Python 3.8 directly.
# Pyright covers the real Python 3.8 compatibility check for this SDK.
python_version = "3.9"
files = ["src"]
check_untyped_defs = true
warn_unused_ignores = true
warn_redundant_casts = true
warn_return_any = true
no_implicit_optional = true
[tool.pyright]
include = ["src"]
pythonVersion = "3.8"
typeCheckingMode = "standard"
venvPath = "."
venv = ".venv"