Skip to content

Commit 6d37a27

Browse files
committed
change "-" to "_"
1 parent 225aadf commit 6d37a27

File tree

10 files changed

+17
-7
lines changed

10 files changed

+17
-7
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
/__pycache__
22
/build
33
/*.egg-info
4-
/pyfmm-gui/__pycache__
4+
/pyfmm_gui/__pycache__

README.md

+7-2
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,14 @@
3636

3737

3838
## 使用
39-
39+
直接运行
4040
```bash
41-
python -m pyfmm-gui.main
41+
pyfmm_gui
4242
```
43+
或者
44+
```bash
45+
python -m pyfmm_gui.main
46+
```
47+
4348

4449
功能按钮很简单,基本“所见即所得”。其中`Update Velocity`下的文本框是个Python脚本窗口,可以自定义FMM网格范围(`xmax, ymax`,最小值均为0)、划分数(`nx, ny`),以及2D速度数组`vel2d`。设置好后,点击`Update Velocity`即可计算。

pyfmm-gui/_version.py

-1
This file was deleted.
File renamed without changes.

pyfmm_gui/_version.py

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__version__ = "0.2"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

setup.py

+8-3
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,24 @@
33

44
# 读取版本号
55
def read_version():
6-
version_file = os.path.join('pyfmm-gui', '_version.py')
6+
version_file = os.path.join('pyfmm_gui', '_version.py')
77
with open(version_file) as f:
88
exec(f.read())
99
return locals()['__version__']
1010

1111
setup(
12-
name='pyfmm-gui',
12+
name='pyfmm_gui',
1313
version=read_version(),
1414
description='A simple GUI of PyFMM',
1515
author='Zhu Dengda',
1616
author_email='[email protected]',
1717
packages=find_packages(),
18-
package_data={'pyfmm-gui': ['main.ui']},
18+
package_data={'pyfmm_gui': ['main.ui']},
1919
include_package_data=True,
2020
python_requires='>=3.9',
21+
entry_points={
22+
'console_scripts': [
23+
'pyfmm_gui=pyfmm_gui.main:main',
24+
],
25+
},
2126
)

0 commit comments

Comments
 (0)