Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
133 lines (121 loc) · 4.18 KB
/
Copy pathpyproject.toml
File metadata and controls
133 lines (121 loc) · 4.18 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
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
[project]
name = "ably-pubsub-server"
version = "4.0.0"
description = "Python REST and Realtime server client library SDK for Ably Pub/Sub"
readme = "LONG_DESCRIPTION.rst"
requires-python = ">=3.8"
license = { text = "Apache-2.0" }
authors = [
{ name = "Ably", email = "support@ably.com" }
]
classifiers = [
"Development Status :: 6 - Mature",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"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",
"Programming Language :: Python :: 3.14",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = [
"msgpack>=1.0.0,<2.0.0",
"httpx>=0.24.1,<1.0; python_version=='3.7'",
"httpx>=0.25.0,<1.0; python_version>='3.8'",
"h2>=4.1.0,<5.0.0",
"websockets>=10.0,<12.0; python_version=='3.7'",
"websockets>=12.0,<15.0; python_version=='3.8'",
"websockets>=15.0,<16.0; python_version>='3.9'",
"pyee>=9.0.4,<10.0.0; python_version=='3.7'",
"pyee>=11.1.0,<14.0.0; python_version>='3.8'",
]
[project.optional-dependencies]
oldcrypto = ["pycrypto>=2.6.1,<3.0.0"]
crypto = ["pycryptodome"]
vcdiff = ["vcdiff-decoder>=0.2.0,<1.0.0"]
dev = [
"pytest>=7.1,<8.0",
"pytest-asyncio>=0.21.0,<0.23.0; python_version=='3.7'",
"pytest-asyncio>=0.23.0,<1.0.0; python_version>='3.8'",
"mock>=4.0.3,<5.0.0",
"pytest-cov>=2.4,<3.0",
"ruff>=0.14.0,<1.0.0",
"pytest-xdist>=1.15,<2.0",
"respx>=0.20.0,<0.21.0; python_version=='3.7'",
"respx>=0.22.0,<0.23.0; python_version>='3.8'",
"importlib-metadata>=4.12,<5.0",
"pytest-timeout>=2.1.0,<3.0.0",
"async-case>=10.1.0,<11.0.0; python_version=='3.7'",
"tokenize_rt",
"vcdiff-decoder>=0.2.0",
]
[project.scripts]
unasync = "ably.pubsub.scripts.unasync:run"
[project.urls]
Homepage = "https://ably.com"
Repository = "https://github.com/ably/ably-pubsub-python"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.sdist]
ignore-vcs = true
include = [
"/ably",
"/COPYRIGHT",
"/README.md",
"/LICENSE",
"/LONG_DESCRIPTION.rst",
"/images",
"/setup.cfg",
"/pyproject.toml"
]
exclude = [
"**/*.pyc",
"**/__pycache__"
]
[tool.hatch.build.targets.wheel]
ignore-vcs = true
# `ably` is a PEP 420 namespace package shared with the other ably-* distributions,
# so it must not be shipped with an __init__.py of its own.
only-include = ["ably/pubsub"]
[tool.pytest.ini_options]
timeout = 30
asyncio_mode = "auto"
filterwarnings = [
# pytest-asyncio before 1.0 calls asyncio APIs that Python 3.14 deprecates;
# the releases that avoid them need Python 3.9 and pytest 8.2 or later
"ignore:'asyncio.iscoroutinefunction' is deprecated:DeprecationWarning:pytest_asyncio",
"ignore:'asyncio.get_event_loop_policy' is deprecated:DeprecationWarning:pytest_asyncio",
"ignore:'asyncio.set_event_loop_policy' is deprecated:DeprecationWarning:pytest_asyncio",
]
[[tool.uv.index]]
name = "experimental"
url = "https://test.pypi.org/simple/"
explicit = true
[tool.ruff]
line-length = 115
extend-exclude = [
"ably/pubsub/sync",
"test/ably/sync",
]
[tool.ruff.lint]
# Enable Pyflakes (F), pycodestyle (E, W), pep8-naming (N), isort (I), pyupgrade (UP), bugbear (B), comprehensions (C4) and logging-warn (G010)
select = ["E", "W", "F", "N", "I", "UP", "B", "C4", "G010"]
ignore = [
"N818", # exception name should end in 'Error'
"UP026", # mock -> unittest.mock (need mock package for Python 3.7 AsyncMock support)
]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"] # imported but unused
[tool.ruff.lint.isort]
# `ably.pubsub.sync` and `test.ably.sync` only exist once unasync has generated
# them, and the lint job does not generate them. Left to resolve imports itself,
# ruff files those modules as third-party there and first-party here, so the same
# commit lints clean locally and fails in CI. State it instead of inferring it.
known-first-party = ["ably", "test"]