xbot.plugins.pgsql 0.1.0__tar.gz → 0.2.0__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.
Files changed (24) hide show
  1. {xbot_plugins_pgsql-0.1.0/xbot.plugins.pgsql.egg-info → xbot_plugins_pgsql-0.2.0}/PKG-INFO +11 -11
  2. {xbot_plugins_pgsql-0.1.0 → xbot_plugins_pgsql-0.2.0}/README.md +4 -0
  3. {xbot_plugins_pgsql-0.1.0 → xbot_plugins_pgsql-0.2.0}/README.zh.md +4 -0
  4. {xbot_plugins_pgsql-0.1.0 → xbot_plugins_pgsql-0.2.0}/pyproject.toml +0 -1
  5. {xbot_plugins_pgsql-0.1.0 → xbot_plugins_pgsql-0.2.0}/setup.py +7 -8
  6. {xbot_plugins_pgsql-0.1.0 → xbot_plugins_pgsql-0.2.0}/xbot/plugins/pgsql/pgsql.py +1 -1
  7. xbot_plugins_pgsql-0.2.0/xbot/plugins/pgsql/version.py +5 -0
  8. {xbot_plugins_pgsql-0.1.0 → xbot_plugins_pgsql-0.2.0/xbot.plugins.pgsql.egg-info}/PKG-INFO +11 -11
  9. xbot_plugins_pgsql-0.1.0/xbot/plugins/pgsql/version.py +0 -5
  10. {xbot_plugins_pgsql-0.1.0 → xbot_plugins_pgsql-0.2.0}/LICENSE +0 -0
  11. {xbot_plugins_pgsql-0.1.0 → xbot_plugins_pgsql-0.2.0}/docs/superpowers/plans/2026-07-24-pgsql-library.md +0 -0
  12. {xbot_plugins_pgsql-0.1.0 → xbot_plugins_pgsql-0.2.0}/docs/superpowers/specs/2026-07-24-pgsql-library-design.md +0 -0
  13. {xbot_plugins_pgsql-0.1.0 → xbot_plugins_pgsql-0.2.0}/setup.cfg +0 -0
  14. {xbot_plugins_pgsql-0.1.0 → xbot_plugins_pgsql-0.2.0}/tests/__init__.py +0 -0
  15. {xbot_plugins_pgsql-0.1.0 → xbot_plugins_pgsql-0.2.0}/tests/run.py +0 -0
  16. {xbot_plugins_pgsql-0.1.0 → xbot_plugins_pgsql-0.2.0}/tests/test_pgsql.py +0 -0
  17. {xbot_plugins_pgsql-0.1.0 → xbot_plugins_pgsql-0.2.0}/xbot/plugins/pgsql/__init__.py +0 -0
  18. {xbot_plugins_pgsql-0.1.0 → xbot_plugins_pgsql-0.2.0}/xbot/plugins/pgsql/codes.py +0 -0
  19. {xbot_plugins_pgsql-0.1.0 → xbot_plugins_pgsql-0.2.0}/xbot/plugins/pgsql/errors.py +0 -0
  20. {xbot_plugins_pgsql-0.1.0 → xbot_plugins_pgsql-0.2.0}/xbot/plugins/pgsql/py.typed +0 -0
  21. {xbot_plugins_pgsql-0.1.0 → xbot_plugins_pgsql-0.2.0}/xbot.plugins.pgsql.egg-info/SOURCES.txt +0 -0
  22. {xbot_plugins_pgsql-0.1.0 → xbot_plugins_pgsql-0.2.0}/xbot.plugins.pgsql.egg-info/dependency_links.txt +0 -0
  23. {xbot_plugins_pgsql-0.1.0 → xbot_plugins_pgsql-0.2.0}/xbot.plugins.pgsql.egg-info/requires.txt +0 -0
  24. {xbot_plugins_pgsql-0.1.0 → xbot_plugins_pgsql-0.2.0}/xbot.plugins.pgsql.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: xbot.plugins.pgsql
3
- Version: 0.1.0
3
+ Version: 0.2.0
4
4
  Summary: PostgreSQL library for xbot.framework
5
5
  Author-email: zhaowcheng <zhaowcheng@163.com>
6
6
  License-Expression: BSD-2-Clause
@@ -21,14 +21,10 @@ Requires-Dist: cli_helpers
21
21
  Provides-Extra: dev
22
22
  Requires-Dist: build; extra == "dev"
23
23
  Requires-Dist: mypy; extra == "dev"
24
+ Dynamic: description
25
+ Dynamic: description-content-type
24
26
  Dynamic: license-file
25
27
 
26
- <p align="center">
27
- <br>English | <a href="README.zh.md">中文</a>
28
- </p>
29
-
30
- ---
31
-
32
28
  # xbot.plugins.pgsql
33
29
 
34
30
  PostgreSQL library for xbot.framework.
@@ -78,11 +74,11 @@ with db.transaction():
78
74
  db.disconnect()
79
75
  ```
80
76
 
81
- <p align="center">
82
- <br>中文 | <a href="README.md">English</a>
83
- </p>
77
+ ## Demo Project
78
+
79
+ Here is a [demo](https://github.com/zhaowcheng/xbot.plugins.pgsql/tree/v0.2.0/demo) project showing how to use `xbot.plugins.pgsql` in a test project.
84
80
 
85
- ---
81
+ ***
86
82
 
87
83
  # xbot.plugins.pgsql
88
84
 
@@ -132,3 +128,7 @@ with db.transaction():
132
128
 
133
129
  db.disconnect()
134
130
  ```
131
+
132
+ ## 示例项目
133
+
134
+ 展示如何在一个测试项目中使用本插件的示例:[demo](https://github.com/zhaowcheng/xbot.plugins.pgsql/tree/v0.2.0/demo)
@@ -52,3 +52,7 @@ with db.transaction():
52
52
 
53
53
  db.disconnect()
54
54
  ```
55
+
56
+ ## Demo Project
57
+
58
+ Here is a [demo](https://github.com/zhaowcheng/xbot.plugins.pgsql/tree/master/demo) project showing how to use `xbot.plugins.pgsql` in a test project.
@@ -52,3 +52,7 @@ with db.transaction():
52
52
 
53
53
  db.disconnect()
54
54
  ```
55
+
56
+ ## 示例项目
57
+
58
+ 展示如何在一个测试项目中使用本插件的示例:[demo](https://github.com/zhaowcheng/xbot.plugins.pgsql/tree/master/demo)
@@ -37,7 +37,6 @@ Homepage = "https://github.com/zhaowcheng/xbot.plugins.pgsql"
37
37
  Issues = "https://github.com/zhaowcheng/xbot.plugins.pgsql/issues"
38
38
 
39
39
  [tool.setuptools.dynamic]
40
- readme = { file = ["README.md", "README.zh.md"], content-type = "text/markdown" }
41
40
  version = { attr = "xbot.plugins.pgsql.version.__version__" }
42
41
 
43
42
  [tool.setuptools.packages.find]
@@ -1,21 +1,20 @@
1
1
  # Build hook: generate long_description from README files,
2
2
  # stripping language-switcher headers.
3
3
  # All other metadata lives in pyproject.toml.
4
- import re
5
4
 
6
5
  from setuptools import setup
7
6
 
8
7
 
9
8
  def _build_long_description() -> str:
10
- desc = ""
9
+ import re
10
+ parts = []
11
11
  for readme in ("README.md", "README.zh.md"):
12
- if desc:
13
- desc += "\n***\n\n"
14
12
  with open(readme, encoding="utf8") as f:
15
- desc += "".join(f.readlines()[6:])
16
- with open("pyproject.toml", encoding="utf8") as f:
17
- m = re.search(r'''^version\s*=\s*["']([^"']+)''', f.read(), re.M)
18
- version = m.group(1) if m else ""
13
+ parts.append("".join(f.readlines()[6:]))
14
+ desc = "\n***\n\n".join(parts)
15
+ with open("xbot/plugins/pgsql/version.py", encoding="utf8") as f:
16
+ m = re.search(r"__version__[^'\"\\]+['\"]([^'\"]+)", f.read())
17
+ version = m.group(1) if m else "0.1.0"
19
18
  desc = desc.replace("/tree/master/", f"/tree/v{version}/")
20
19
  return desc
21
20
 
@@ -195,7 +195,7 @@ class PGSQLConnection(object):
195
195
  rc=getattr(e, 'sqlstate', None),
196
196
  cmd=cmd,
197
197
  )
198
- extra['hook']['more'] = result
198
+ extra["hook"]["more"] = str(result)
199
199
  if expect != None and result.rc != expect.value:
200
200
  msg = textwrap.dedent(f"""\
201
201
  Expections not met:
@@ -0,0 +1,5 @@
1
+ """
2
+ Package version.
3
+ """
4
+
5
+ __version__: str = '0.2.0'
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: xbot.plugins.pgsql
3
- Version: 0.1.0
3
+ Version: 0.2.0
4
4
  Summary: PostgreSQL library for xbot.framework
5
5
  Author-email: zhaowcheng <zhaowcheng@163.com>
6
6
  License-Expression: BSD-2-Clause
@@ -21,14 +21,10 @@ Requires-Dist: cli_helpers
21
21
  Provides-Extra: dev
22
22
  Requires-Dist: build; extra == "dev"
23
23
  Requires-Dist: mypy; extra == "dev"
24
+ Dynamic: description
25
+ Dynamic: description-content-type
24
26
  Dynamic: license-file
25
27
 
26
- <p align="center">
27
- <br>English | <a href="README.zh.md">中文</a>
28
- </p>
29
-
30
- ---
31
-
32
28
  # xbot.plugins.pgsql
33
29
 
34
30
  PostgreSQL library for xbot.framework.
@@ -78,11 +74,11 @@ with db.transaction():
78
74
  db.disconnect()
79
75
  ```
80
76
 
81
- <p align="center">
82
- <br>中文 | <a href="README.md">English</a>
83
- </p>
77
+ ## Demo Project
78
+
79
+ Here is a [demo](https://github.com/zhaowcheng/xbot.plugins.pgsql/tree/v0.2.0/demo) project showing how to use `xbot.plugins.pgsql` in a test project.
84
80
 
85
- ---
81
+ ***
86
82
 
87
83
  # xbot.plugins.pgsql
88
84
 
@@ -132,3 +128,7 @@ with db.transaction():
132
128
 
133
129
  db.disconnect()
134
130
  ```
131
+
132
+ ## 示例项目
133
+
134
+ 展示如何在一个测试项目中使用本插件的示例:[demo](https://github.com/zhaowcheng/xbot.plugins.pgsql/tree/v0.2.0/demo)
@@ -1,5 +0,0 @@
1
- """
2
- Package version.
3
- """
4
-
5
- __version__: str = '0.1.0'