aboutsummaryrefslogtreecommitdiffstats
path: root/docs/development
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2017-07-08 20:35:02 -0400
committerPaul Kehrer <paul.l.kehrer@gmail.com>2017-07-08 19:35:02 -0500
commit601ed631adf5d1df8a1138c5f037d93e7d943685 (patch)
tree03b2da4faf0b6e1cae6a0425f06a82141dcabce0 /docs/development
parentbf128a470bbcfe9443eeade9da24c6b317296348 (diff)
downloadcryptography-601ed631adf5d1df8a1138c5f037d93e7d943685.tar.gz
cryptography-601ed631adf5d1df8a1138c5f037d93e7d943685.tar.bz2
cryptography-601ed631adf5d1df8a1138c5f037d93e7d943685.zip
Attempt to use coverage to quantify how many of the CONDITIONAL_NAMES we really use (#3763)
* Attempt to use coverage to quantify how many of the CONDITIONAL_NAMES we really use * rewrite file to improve coverage * Write it this way so we can use line coverage * lost this one :-( * fix comment and flake8 * update the docs as well * flake8
Diffstat (limited to 'docs/development')
-rw-r--r--docs/development/c-bindings.rst15
1 files changed, 11 insertions, 4 deletions
diff --git a/docs/development/c-bindings.rst b/docs/development/c-bindings.rst
index 43ec4d8d..8a9bb6de 100644
--- a/docs/development/c-bindings.rst
+++ b/docs/development/c-bindings.rst
@@ -167,15 +167,22 @@ the necessarily type definitions are in place.
Finally, add an entry to ``CONDITIONAL_NAMES`` with all of the things
you want to conditionally export::
- CONDITIONAL_NAMES = {
- ...
- "Cryptography_HAS_QUANTUM_TRANSMOGRIFICATION": [
+ def cryptography_has_quantum_transmogrification():
+ return [
"QM_TRANSMOGRIFICATION_ALIGNMENT_LEFT",
"QM_TRANSMOGRIFICATION_ALIGNMENT_RIGHT",
- "QM_transmogrify"
+ "QM_transmogrify",
]
+
+
+ CONDITIONAL_NAMES = {
+ ...
+ "Cryptography_HAS_QUANTUM_TRANSMOGRIFICATION": (
+ cryptography_has_quantum_transmogrification
+ ),
}
+
Caveats
~~~~~~~