forked from ansible/pylibssh
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
121 lines (104 loc) · 3.9 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
117
118
119
120
121
[build-system]
requires = [
# Essentials
"Cython", # needed by in-tree build backend `bin/pep517_backend.py`
"setuptools>=44; python_version <= '2.7'", # needed by in-tree build backend `bin/pep517_backend.py`
"setuptools>=45; python_version > '2.7'", # needed by in-tree build backend `bin/pep517_backend.py`
"toml", # needed by in-tree build backend `bin/pep517_backend.py`
"wheel",
"expandvars", # needed by in-tree build backend for env vars interpolation
# Plugins
"setuptools_scm[toml]>=3.5",
"setuptools_scm_git_archive>=1.1",
]
backend-path = ["bin"] # requires 'Pip>=20' or 'pep517>=0.6.0'
build-backend = "pep517_backend"
[tool.local.cythonize]
# This attr can contain multiple globs
src = ["src/**/*.pyx"]
[tool.local.cythonize.env]
# Env vars provisioned during cythonize call
#ANSIBLE_PYLIBSSH_TRACING = "1"
#CFLAGS = "-DCYTHON_TRACE=1 ${CFLAGS}"
LDFLAGS = "-lssh ${LDFLAGS}"
[tool.local.cythonize.flags]
# This section can contain the following booleans:
# * annotate — generate annotated HTML page for source files
# * build — build extension modules using distutils
# * inplace — build extension modules in place using distutils (implies -b)
# * force — force recompilation
# * quiet — be less verbose during compilation
# * lenient — increase Python compat by ignoring some compile time errors
# * keep-going — compile as much as possible, ignore compilation failures
annotate = false
build = false
inplace = true
force = true
quiet = false
lenient = false
keep-going = false
[tool.local.cythonize.kwargs]
# This section can contain args tha have values:
# * exclude=PATTERN exclude certain file patterns from the compilation
# * parallel=N run builds in N parallel jobs (default: calculated per system)
# exclude = "**.py"
# parallel = 12
[tool.local.cythonize.kwargs.directive]
# This section can contain compiler directives
# Ref: https://github.com/cython/cython/blob/d6e6de9/Cython/Compiler/Options.py#L170-L242
embedsignature = "True"
emit_code_comments = "True"
linetrace = "True"
profile = "True"
[tool.local.cythonize.kwargs.compile-time-env]
# This section can contain compile time env vars
[tool.local.cythonize.kwargs.option]
# This section can contain cythonize options
# Ref: https://github.com/cython/cython/blob/d6e6de9/Cython/Compiler/Options.py#L694-L730
#docstrings = "True"
#embed_pos_in_docstring = "True"
#warning_errors = "True"
#error_on_unknown_names = "True"
#error_on_uninitialized = "True"
[tool.towncrier]
# ATTENTION: Do not specify "package" setting because towncrier
# ATTENTION: tries to import it and fails if it's not pre-compiled
directory = "docs/changelog-fragments"
filename = "docs/changelog.rst"
issue_format = ":issue:`{issue}`"
package_dir = "src"
template = "docs/changelog-fragments/template.j2"
title_format = "v{version} ({project_date})"
underlines = ["=", "^", "-", "~"]
[[tool.towncrier.section]]
path = ""
[[tool.towncrier.type]]
directory = "bugfix"
name = "Bugfixes"
showcontent = true
[[tool.towncrier.type]]
directory = "feature"
name = "Features"
showcontent = true
[[tool.towncrier.type]]
directory = "deprecation"
name = "Deprecations (removal in next major release)"
showcontent = true
[[tool.towncrier.type]]
directory = "breaking"
name = "Backward incompatible changes"
showcontent = true
[[tool.towncrier.type]]
directory = "doc"
name = "Documentation"
showcontent = true
[[tool.towncrier.type]]
directory = "misc"
name = "Miscellaneous"
showcontent = true
# ATTENTION: the following section must be kept last in
# `pyproject.toml` because the CI appends one line in
# the end when publishing non-tagged versions.
[tool.setuptools_scm]
write_to = "src/pylibsshext/_scm_version.py"
# ATTENTION: DO NOT ADD ANYTHING AFTER THIS SECTION ^