summaryrefslogtreecommitdiff
path: root/dev-python/python-pkcs11/files/python-pkcs11-0.9.3-refactor-under-src.patch
blob: 52cbe024634976e872a665c52c53e220a47b0d8e (plain)
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
diff --git a/MANIFEST.in b/MANIFEST.in
index c426022..1bd1806 100644
--- a/MANIFEST.in
+++ b/MANIFEST.in
@@ -1,2 +1,2 @@
 graft extern/
-include pkcs11/*.pxd
\ No newline at end of file
+include src/pkcs11/*.pxd
diff --git a/pyproject.toml b/pyproject.toml
index 79b3e86..b119388 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -53,7 +53,7 @@ combine-as-imports = true
 
 [tool.setuptools]
 ext-modules = [
-    {name = "pkcs11._pkcs11", sources = ["pkcs11/_pkcs11.pyx"]}
+    {name = "pkcs11._pkcs11", sources = ["src/pkcs11/_pkcs11.pyx"]}
 ]
 
 [tool.cibuildwheel]
@@ -68,9 +68,6 @@ archs = ["AMD64"]
 [tool.cibuildwheel.macos]
 archs = ["universal2"]
 
-[tool.setuptools.packages.find]
-include = ["pkcs11*"]
-
 [tool.coverage.run]
 plugins = ["Cython.Coverage"]
 
diff --git a/pkcs11/__init__.py b/src/pkcs11/__init__.py
similarity index 100%
rename from pkcs11/__init__.py
rename to src/pkcs11/__init__.py
diff --git a/pkcs11/_pkcs11.pxd b/src/pkcs11/_pkcs11.pxd
similarity index 99%
rename from pkcs11/_pkcs11.pxd
rename to src/pkcs11/_pkcs11.pxd
index ba1903d..03f094a 100644
--- a/pkcs11/_pkcs11.pxd
+++ b/src/pkcs11/_pkcs11.pxd
@@ -6,7 +6,7 @@ from cython.view cimport array
 
 from pkcs11.exceptions import *
 
-cdef extern from '../extern/cryptoki.h':
+cdef extern from '../../extern/cryptoki.h':
 
     ctypedef unsigned char CK_BYTE
     ctypedef CK_BYTE CK_BBOOL
diff --git a/pkcs11/_pkcs11.pyx b/src/pkcs11/_pkcs11.pyx
similarity index 99%
rename from pkcs11/_pkcs11.pyx
rename to src/pkcs11/_pkcs11.pyx
index 27f692e..6a33094 100644
--- a/pkcs11/_pkcs11.pyx
+++ b/src/pkcs11/_pkcs11.pyx
@@ -1946,7 +1946,7 @@ _CLASS_MAP = {
     ObjectClass.CERTIFICATE: Certificate,
 }
 
-cdef extern from "../extern/load_module.c":
+cdef extern from "../../extern/load_module.c":
     ctypedef struct P11_HANDLE:
         void *get_function_list_ptr
 
diff --git a/pkcs11/attributes.py b/src/pkcs11/attributes.py
similarity index 100%
rename from pkcs11/attributes.py
rename to src/pkcs11/attributes.py
diff --git a/pkcs11/constants.py b/src/pkcs11/constants.py
similarity index 100%
rename from pkcs11/constants.py
rename to src/pkcs11/constants.py
diff --git a/pkcs11/defaults.py b/src/pkcs11/defaults.py
similarity index 100%
rename from pkcs11/defaults.py
rename to src/pkcs11/defaults.py
diff --git a/pkcs11/exceptions.py b/src/pkcs11/exceptions.py
similarity index 100%
rename from pkcs11/exceptions.py
rename to src/pkcs11/exceptions.py
diff --git a/pkcs11/mechanisms.py b/src/pkcs11/mechanisms.py
similarity index 100%
rename from pkcs11/mechanisms.py
rename to src/pkcs11/mechanisms.py
diff --git a/pkcs11/types.py b/src/pkcs11/types.py
similarity index 100%
rename from pkcs11/types.py
rename to src/pkcs11/types.py
diff --git a/pkcs11/util/__init__.py b/src/pkcs11/util/__init__.py
similarity index 100%
rename from pkcs11/util/__init__.py
rename to src/pkcs11/util/__init__.py
diff --git a/pkcs11/util/dh.py b/src/pkcs11/util/dh.py
similarity index 100%
rename from pkcs11/util/dh.py
rename to src/pkcs11/util/dh.py
diff --git a/pkcs11/util/dsa.py b/src/pkcs11/util/dsa.py
similarity index 100%
rename from pkcs11/util/dsa.py
rename to src/pkcs11/util/dsa.py
diff --git a/pkcs11/util/ec.py b/src/pkcs11/util/ec.py
similarity index 100%
rename from pkcs11/util/ec.py
rename to src/pkcs11/util/ec.py
diff --git a/pkcs11/util/rsa.py b/src/pkcs11/util/rsa.py
similarity index 100%
rename from pkcs11/util/rsa.py
rename to src/pkcs11/util/rsa.py
diff --git a/pkcs11/util/x509.py b/src/pkcs11/util/x509.py
similarity index 100%
rename from pkcs11/util/x509.py
rename to src/pkcs11/util/x509.py