python-undef 0.1.0__tar.gz → 0.1.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,47 @@
1
+ Metadata-Version: 2.4
2
+ Name: python_undef
3
+ Version: 0.1.1
4
+ Summary: Python undefined header in pyconfig.h
5
+ Project-URL: homepage, https://github.com/Locked-chess-official/python_undef
6
+ Author-email: Locked-chess-official <13140752715@163.com>
7
+ License: MIT
8
+ License-File: LICENSE
9
+ Description-Content-Type: text/markdown
10
+
11
+ # Python_undef
12
+
13
+ ## Download
14
+
15
+ ```bash
16
+ pip install python_undef
17
+ ```
18
+
19
+ ## Usage
20
+
21
+ This will create the file "Python_undef.h"
22
+
23
+ ```bash
24
+ python -m python_undef --generate
25
+ ```
26
+
27
+ This will output the include path of "Python_undef.h"
28
+
29
+ ```bash
30
+ python -m python_undef --include
31
+ ```
32
+
33
+ You can include the "Python_undef.h" file in your project:
34
+
35
+ ```c
36
+ #include <Python.h>
37
+ #include <Python_undef.h>
38
+ #include <other_header.h>
39
+ ```
40
+
41
+ The "pyconfig.h" continue many macros that doesn't math the rule that "should start with PY_". This file undefine them.
42
+
43
+ If you want to save the macro, use `#define DONOTUNDEF_macro_name` before include "Python_undef.h" to keep it.
44
+
45
+ ## License
46
+
47
+ MIT License
@@ -30,7 +30,7 @@ You can include the "Python_undef.h" file in your project:
30
30
 
31
31
  The "pyconfig.h" continue many macros that doesn't math the rule that "should start with PY_". This file undefine them.
32
32
 
33
- If you wan't to save the macro, use `#define DONOTUNDEF_macro_name` before include "Python_undef.h" to keep it.
33
+ If you want to save the macro, use `#define DONOTUNDEF_macro_name` before include "Python_undef.h" to keep it.
34
34
 
35
35
  ## License
36
36
 
@@ -4,8 +4,9 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "python_undef"
7
- version = "0.1.0"
7
+ version = "0.1.1"
8
8
  description = "Python undefined header in pyconfig.h"
9
+ readme = "README.md"
9
10
  license = {text = "MIT"}
10
11
  authors = [
11
12
  { name = "Locked-chess-official", email = "13140752715@163.com" }
@@ -1,8 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: python_undef
3
- Version: 0.1.0
4
- Summary: Python undefined header in pyconfig.h
5
- Project-URL: homepage, https://github.com/Locked-chess-official/python_undef
6
- Author-email: Locked-chess-official <13140752715@163.com>
7
- License: MIT
8
- License-File: LICENSE
File without changes
File without changes