Skip to content

Commit f0928f8

Browse files
committed
bump version 0.1.3
1 parent 71cbe7f commit f0928f8

File tree

5 files changed

+15
-26
lines changed

5 files changed

+15
-26
lines changed

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ English | [简体中文](README_zh.md)
55
It's a fork/optimized version from [elifiner/pydump](https://github.com/elifiner/pydump).The main optimization points are:
66
* Save the `Python traceback` anywhere, not just when it's an exception.
77
* Optimize code structure && remove redundant code
8-
* fix bug in python2.7 && support python3.10+
8+
* fix bug in python3.10+
99
* supported more pdb commnd
1010
* a useful command line tool for debug
1111

@@ -22,11 +22,10 @@ pdb and with other popular debuggers (pudb, ipdb and pdbpp).
2222
* If we were able to save the exception error and then use the debugger to recover the traceback at that time, we could see the entire stack variables along the traceback as if you had caught the exception at the local breakpoint.
2323

2424
## Install pydumpling
25-
Python version:>= 2.7, >=3.6
25+
Python version:>=3.7
2626

27-
Not published in pypi,so use the `.whl` file install pydumpling in the dist path.
2827
```
29-
pip install dist/pydumpling-0.1.1-py2.py3-none-any.whl
28+
pip install pydumpling
3029
```
3130

3231
## How to use pydumpling

README_zh.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
这是 [elifiner/pydump](https://github.com/elifiner/pydump) 的fork/优化版本, 主要优化点有:
44
* 支持在任何地方保存`Python traceback`,而不是只在异常发生的时候
55
* 优化代码结构, 去除冗余代码
6-
* 修复其在2.7及3.10版本中的bug
6+
* 修复其在3.10+版本中的bug
77
* 支持更多的pdb命令
88
* 提供了一个方便用来调试的命令行工具
99

@@ -17,11 +17,10 @@ pydumpling可以在代码的任何位置中,将当前Python程序的traceback
1717
* 如果我们能够把线上的异常现场保存下来,然后通过调试器去恢复当时的异常堆栈,我们可以看到这个异常的整条调用链路以及链路上的堆栈变量,就如同你在本地断点捕获到了这个异常一样。
1818

1919
## 安装方法
20-
Python版本支持:>= 2.7, >=3.6
20+
Python版本支持:>=3.7
2121

22-
目前还没有在Pypi上面进行发布,因此直接使用PIP安装dist目录下的whl文件
2322
```
24-
pip install dist/pydumpling-0.1.1-py2.py3-none-any.whl
23+
pip install -i pydumpling
2524
```
2625

2726
## 使用方法

pdm.lock

Lines changed: 1 addition & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pydumpling/fake_types.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from __future__ import absolute_import, division, print_function, unicode_literals
22

33
import os
4-
import six
4+
import sys
55
import dill
66

77

@@ -43,7 +43,7 @@ def _convert(cls, v):
4343
else:
4444
from datetime import date, time, datetime, timedelta
4545

46-
BUILTIN = (str, unicode, int, long, float, date, time, datetime, timedelta) if six.PY2 \
46+
BUILTIN = (str, unicode, int, long, float, date, time, datetime, timedelta) if sys.version_info.major == 2 \
4747
else (str, int, float, date, time, datetime, timedelta) # noqa: F821
4848

4949
if type(v) in BUILTIN:

pyproject.toml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ includes = ["pydumpling/*.py"]
1111
test = [
1212
"pytest-order>=1.2.0",
1313
"flake8>=5.0.4",
14-
"six>=1.16.0",
1514
]
1615
[build-system]
1716
requires = ["pdm-backend"]
@@ -20,15 +19,18 @@ build-backend = "pdm.backend"
2019

2120
[project]
2221
name = "pydumpling"
23-
version = "0.1.2"
24-
description = ""
22+
version = "0.1.3"
23+
description = "Python post-mortem debugger"
2524
authors = [
2625
{name = "cocolato", email = "[email protected]"},
2726
]
2827
dependencies = [
2928
"dill<1.0.0,>=0.3.2",
30-
"six<2.0.0,>=1.16.0",
3129
]
3230
requires-python = ">=3.7"
3331
readme = "README.md"
3432
license = {text = "MIT"}
33+
34+
35+
[project.urls]
36+
homepage = "https://github.com/cocolato/pydumpling"

0 commit comments

Comments
 (0)