-
Notifications
You must be signed in to change notification settings - Fork 60
/
pyproject.toml
116 lines (102 loc) · 2.63 KB
/
pyproject.toml
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
[project]
name = "pynng"
authors = [
{name = "Cody Piersall", email = "[email protected]"},
]
classifiers = [
"Development Status :: 3 - Alpha",
"Framework :: AsyncIO",
"Framework :: Trio",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Topic :: Software Development :: Libraries",
"Topic :: System :: Networking",
]
dependencies = [
"cffi",
"sniffio",
]
description = "Networking made simply using nng"
license = {file = "LICENSE.txt"}
dynamic = ["version"]
keywords = [
"networking",
"nng",
"nanomsg",
"zmq",
"messaging",
"message",
"trio",
"asyncio",
]
readme = "README.md"
[project.optional-dependencies]
dev = [
"pytest",
"pytest-asyncio",
"pytest-trio",
"pytest-curio",
"curio",
"trio",
]
docs = [
"sphinx",
"sphinx-rtd-theme",
"sphinxcontrib-trio",
]
[project.urls]
Homepage = "https://github.com/codypiersall/pynng"
Source = "https://github.com/codypiersall/pynng"
Documentation = "https://pynng.readthedocs.io/en/latest/"
[tool.setuptools.dynamic]
version = {attr = "pynng._version.__version__"}
[tool.setuptools.packages.find]
include = ["pynng"]
[build-system]
build-backend = "setuptools.build_meta"
requires = [
"setuptools",
"setuptools-scm",
"cffi",
"cmake",
"build",
"wheel",
]
[tool.cibuildwheel]
test-requires = [
"pytest",
"pytest-asyncio",
"pytest-trio",
"pytest-curio",
"curio",
"trio",
]
test-command = "pytest {project}/test"
# wheels aren't built correctly for Python 3.6; seems like setuptools doesn't like
# pyproject.toml for that old Python.
skip = "cp36-*"
# skip all Python 3.12 because pytest-curio is not compatible with 3.12 right now.
# https://github.com/johnnoone/pytest-curio/pull/7
test-skip = "cp312*"
build-verbosity = 1
[tool.cibuildwheel.windows]
# Windows builds fail because they try to use the same directory for different
# architectures, and that's no good.
before-build = "bash .github/rmstuff.sh"
[tool.cibuildwheel.macos]
# Specify universal2 building for macOS
archs = ["universal2"]
environment = { CMAKE_OSX_ARCHITECTURES="x86_64;arm64" }
[tool.black]
# Just a placeholder because I have a plugin that won't run without a section in
# pyproject.toml
# pytest configuration
[tool.pytest.ini_options]
addopts = "--capture=no --verbose"
testpaths = "test"