Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
93 lines (85 loc) · 2.43 KB
/
Copy pathpyproject.toml
File metadata and controls
93 lines (85 loc) · 2.43 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
[project]
name = "launchdarkly-eventsource"
version = "1.7.3"
description = "LaunchDarkly SSE Client"
authors = [
{name = "LaunchDarkly", email = "dev@launchdarkly.com"}
]
license = "Apache-2.0"
readme = "README.md"
requires-python = ">=3.10"
classifiers = [
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Software Development",
"Topic :: Software Development :: Libraries",
]
dependencies = [
"urllib3>=1.26.0,<3",
]
[project.urls]
Homepage = "https://docs.launchdarkly.com/sdk/server-side/python"
Repository = "https://github.com/launchdarkly/python-eventsource"
Documentation = "https://launchdarkly-sse-client-library.readthedocs.io/en/latest/"
[project.optional-dependencies]
async = ["aiohttp>=3.8.0,<4"]
[dependency-groups]
dev = [
"mock>=2.0.0",
"pytest>=8.0.0,<9",
"pytest-asyncio>=0.21",
"aiohttp>=3.8.0,<4",
"mypy>=1.4.0,<2",
"pycodestyle>=2.12.1,<3",
"isort>=5.13.2,<6",
]
contract-tests = [
"Flask>=3.0",
]
docs = [
"sphinx>=6,<8",
"sphinx-autodoc-typehints>=1.3.0,<2",
"sphinx-rtd-theme>=1.3,<4.0",
"backoff>=1.4.3",
"expiringdict>=1.1.4",
"pyrfc3339>=1.0",
"jsonpickle>1.4.1",
"semver>=2.7.9",
"urllib3>=1.26.0",
"jinja2>=3.1.2",
]
[tool.mypy]
python_version = "3.10"
ignore_missing_imports = true
[tool.pytest.ini_options]
addopts = ["-ra"]
asyncio_mode = "auto"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["ld_eventsource"]
exclude = ["ld_eventsource/testing"]
# An allowlist, so that a new repository-management file cannot leak into the
# sdist by default. The CI sdist job proves the list is complete: it builds the
# sdist, unpacks it, and fails if fewer tests collect there than in the
# checkout. Hatchling force-includes pyproject.toml, README.md, LICENSE,
# PKG-INFO and .gitignore whatever this says, so the sdist always builds.
[tool.hatch.build.targets.sdist]
include = [
"/ld_eventsource",
"/contract-tests",
"/docs",
"/Makefile",
"/setup.cfg",
"/CHANGELOG.md",
"/CONTRIBUTING.md",
"/SECURITY.md",
]