File tree Expand file tree Collapse file tree 3 files changed +12
-1
lines changed Expand file tree Collapse file tree 3 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -72,8 +72,11 @@ xanalyzer -u "https://www.baidu.com/s?wd=hello"
72
72
git clone https : // github.com / qux - bbb / xanalyzer
73
73
cd xanalyzer
74
74
virtualenv venv
75
+ # use venv in windws: .\venv\Scripts\activate
76
+ # use venv in linux: source venv/bin/activate
75
77
pip install - r requirements.txt
76
78
python setup.py develop
79
+ # exit venv: deactivate
77
80
```
78
81
Then you can develop and debug with pycharm or vscode
79
82
Original file line number Diff line number Diff line change @@ -72,8 +72,11 @@ xanalyzer -u "https://www.baidu.com/s?wd=hello"
72
72
git clone https : // github.com / qux - bbb / xanalyzer
73
73
cd xanalyzer
74
74
virtualenv venv
75
+ # windws使用虚拟环境: .\venv\Scripts\activate
76
+ # linux使用虚拟环境: source venv/bin/activate
75
77
pip install - r requirements.txt
76
78
python setup.py develop
79
+ # 退出虚拟环境: deactivate
77
80
```
78
81
这样之后就可以用pycharm或vscode开发调试了
79
82
@@ -82,10 +85,14 @@ python setup.py develop
82
85
83
86
打包前确保版本号和CHANGELOG.md已更新,清空dist文件夹
84
87
85
- 安装依赖并打包 :
88
+ 安装依赖、通过测试项、打包 :
86
89
``` r
90
+ # windws使用虚拟环境: .\venv\Scripts\activate
91
+ # linux使用虚拟环境: source venv/bin/activate
87
92
pip install - r requirements.my.txt
93
+ pytest
88
94
python setup.py sdist bdist_wheel
95
+ # 退出虚拟环境: deactivate
89
96
```
90
97
91
98
重新打开一个命令行,转到dist文件夹下本地安装,检查基本功能,举例:
Original file line number Diff line number Diff line change
1
+ pytest==7.3.1
1
2
setuptools==65.5.1
2
3
wheel==0.38.1
3
4
twine==3.8.0
You can’t perform that action at this time.
0 commit comments