msopmodeling 0.0.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.
- msopmodeling-0.0.1/.claude/settings.local.json +10 -0
- msopmodeling-0.0.1/.gitignore +14 -0
- msopmodeling-0.0.1/.idea/.gitignore +10 -0
- msopmodeling-0.0.1/.idea/inspectionProfiles/Project_Default.xml +6 -0
- msopmodeling-0.0.1/.idea/inspectionProfiles/profiles_settings.xml +6 -0
- msopmodeling-0.0.1/.idea/misc.xml +7 -0
- msopmodeling-0.0.1/.idea/modules.xml +8 -0
- msopmodeling-0.0.1/.idea/pip_helloworld.iml +17 -0
- msopmodeling-0.0.1/.idea/workspace.xml +52 -0
- msopmodeling-0.0.1/PKG-INFO +62 -0
- msopmodeling-0.0.1/README.md +55 -0
- msopmodeling-0.0.1/pyproject.toml +16 -0
- msopmodeling-0.0.1/src/msopmodeling/__init__.py +1 -0
- msopmodeling-0.0.1/src/msopmodeling/__main__.py +6 -0
- msopmodeling-0.0.1/src/pip_helloworld/__init__.py +8 -0
- msopmodeling-0.0.1/src/pip_helloworld/__main__.py +6 -0
- msopmodeling-0.0.1/src/pip_helloworld/hello.py +18 -0
- msopmodeling-0.0.1/tests/__init__.py +0 -0
- msopmodeling-0.0.1/tests/test_hello.py +33 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"permissions": {
|
|
3
|
+
"allow": [
|
|
4
|
+
"Bash(pip --version)",
|
|
5
|
+
"Bash(pip install:*)",
|
|
6
|
+
"Bash(powershell -Command \"Get-Content 'D:\\\\code\\\\sandbox\\\\ascend_op_tool_insights\\\\docs\\\\public\\\\design\\\\007.install_opt\\\\MindStudio工具安装易用性提升方案.md' -Raw\")",
|
|
7
|
+
"Bash(powershell -Command \"\\(Get-Content 'D:\\\\code\\\\sandbox\\\\ascend_op_tool_insights\\\\docs\\\\public\\\\design\\\\007.install_opt\\\\MindStudio工具安装易用性提升方案.md'\\).Count\")"
|
|
8
|
+
]
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<project version="4">
|
|
3
|
+
<component name="Black">
|
|
4
|
+
<option name="sdkName" value="Python 3.11 (PyCharmMiscProject) (2)" />
|
|
5
|
+
</component>
|
|
6
|
+
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.11 (PyCharmMiscProject) (2)" project-jdk-type="Python SDK" />
|
|
7
|
+
</project>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<project version="4">
|
|
3
|
+
<component name="ProjectModuleManager">
|
|
4
|
+
<modules>
|
|
5
|
+
<module fileurl="file://$PROJECT_DIR$/.idea/pip_helloworld.iml" filepath="$PROJECT_DIR$/.idea/pip_helloworld.iml" />
|
|
6
|
+
</modules>
|
|
7
|
+
</component>
|
|
8
|
+
</project>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<module type="PYTHON_MODULE" version="4">
|
|
3
|
+
<component name="NewModuleRootManager">
|
|
4
|
+
<content url="file://$MODULE_DIR$">
|
|
5
|
+
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
|
|
6
|
+
</content>
|
|
7
|
+
<orderEntry type="jdk" jdkName="Python 3.11 (PyCharmMiscProject) (2)" jdkType="Python SDK" />
|
|
8
|
+
<orderEntry type="sourceFolder" forTests="false" />
|
|
9
|
+
</component>
|
|
10
|
+
<component name="PyDocumentationSettings">
|
|
11
|
+
<option name="format" value="GOOGLE" />
|
|
12
|
+
<option name="myDocStringFormat" value="Google" />
|
|
13
|
+
</component>
|
|
14
|
+
<component name="TestRunnerService">
|
|
15
|
+
<option name="PROJECT_TEST_RUNNER" value="py.test" />
|
|
16
|
+
</component>
|
|
17
|
+
</module>
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<project version="4">
|
|
3
|
+
<component name="ChangeListManager">
|
|
4
|
+
<list default="true" id="6a5b9851-3f2e-4a14-bb92-a0b4a23aab75" name="更改" comment="" />
|
|
5
|
+
<option name="SHOW_DIALOG" value="false" />
|
|
6
|
+
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
|
7
|
+
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
|
8
|
+
<option name="LAST_RESOLUTION" value="IGNORE" />
|
|
9
|
+
</component>
|
|
10
|
+
<component name="ProjectColorInfo">{
|
|
11
|
+
"associatedIndex": 7
|
|
12
|
+
}</component>
|
|
13
|
+
<component name="ProjectId" id="3C3QlF0ZDrYMBjv3KWoTeKLAiRl" />
|
|
14
|
+
<component name="ProjectViewState">
|
|
15
|
+
<option name="autoscrollFromSource" value="true" />
|
|
16
|
+
<option name="hideEmptyMiddlePackages" value="true" />
|
|
17
|
+
<option name="showLibraryContents" value="true" />
|
|
18
|
+
</component>
|
|
19
|
+
<component name="PropertiesComponent">{
|
|
20
|
+
"keyToString": {
|
|
21
|
+
"ModuleVcsDetector.initialDetectionPerformed": "true",
|
|
22
|
+
"RunOnceActivity.ShowReadmeOnStart": "true",
|
|
23
|
+
"RunOnceActivity.TerminalTabsStorage.copyFrom.TerminalArrangementManager.252": "true",
|
|
24
|
+
"RunOnceActivity.typescript.service.memoryLimit.init": "true",
|
|
25
|
+
"nodejs_package_manager_path": "npm",
|
|
26
|
+
"vue.rearranger.settings.migration": "true"
|
|
27
|
+
}
|
|
28
|
+
}</component>
|
|
29
|
+
<component name="SharedIndexes">
|
|
30
|
+
<attachedChunks>
|
|
31
|
+
<set>
|
|
32
|
+
<option value="bundled-js-predefined-d6986cc7102b-c7e53b3be11b-JavaScript-PY-253.28294.336" />
|
|
33
|
+
<option value="bundled-python-sdk-0978a7220b69-9867c7d4c0a4-com.jetbrains.pycharm.pro.sharedIndexes.bundled-PY-253.28294.336" />
|
|
34
|
+
</set>
|
|
35
|
+
</attachedChunks>
|
|
36
|
+
</component>
|
|
37
|
+
<component name="TaskManager">
|
|
38
|
+
<task active="true" id="Default" summary="默认任务">
|
|
39
|
+
<changelist id="6a5b9851-3f2e-4a14-bb92-a0b4a23aab75" name="更改" comment="" />
|
|
40
|
+
<created>1775611922909</created>
|
|
41
|
+
<option name="number" value="Default" />
|
|
42
|
+
<option name="presentableId" value="Default" />
|
|
43
|
+
<updated>1775611922909</updated>
|
|
44
|
+
<workItem from="1775611924223" duration="8187000" />
|
|
45
|
+
<workItem from="1775800634482" duration="49000" />
|
|
46
|
+
</task>
|
|
47
|
+
<servers />
|
|
48
|
+
</component>
|
|
49
|
+
<component name="TypeScriptGeneratedFilesManager">
|
|
50
|
+
<option name="version" value="3" />
|
|
51
|
+
</component>
|
|
52
|
+
</project>
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: msopmodeling
|
|
3
|
+
Version: 0.0.1
|
|
4
|
+
Summary: Coming soon
|
|
5
|
+
Requires-Python: >=3.8
|
|
6
|
+
Description-Content-Type: text/markdown
|
|
7
|
+
|
|
8
|
+
# pip-helloworld
|
|
9
|
+
|
|
10
|
+
一个用于学习 PyPI 发布流程的 Hello World 示例包。
|
|
11
|
+
|
|
12
|
+
## 安装
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
pip install pip-helloworld
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## 使用
|
|
19
|
+
|
|
20
|
+
### 作为命令行工具
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
pip-helloworld
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
### 在 Python 中使用
|
|
27
|
+
|
|
28
|
+
```python
|
|
29
|
+
from pip_helloworld import greet, hello
|
|
30
|
+
|
|
31
|
+
# 自定义问候
|
|
32
|
+
print(greet("Alice"))
|
|
33
|
+
# 输出: Hello, Alice! 👋 来自 pip_helloworld 包
|
|
34
|
+
|
|
35
|
+
# 默认问候
|
|
36
|
+
hello()
|
|
37
|
+
# 输出: Hello, World! 👋 来自 pip_helloworld 包
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
### 作为模块运行
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
python -m pip_helloworld
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
## 开发
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
# 克隆项目
|
|
50
|
+
git clone https://github.com/yourname/pip-helloworld.git
|
|
51
|
+
cd pip-helloworld
|
|
52
|
+
|
|
53
|
+
# 安装开发依赖
|
|
54
|
+
pip install -e ".[dev]"
|
|
55
|
+
|
|
56
|
+
# 运行测试
|
|
57
|
+
pytest
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
## License
|
|
61
|
+
|
|
62
|
+
MIT
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# pip-helloworld
|
|
2
|
+
|
|
3
|
+
一个用于学习 PyPI 发布流程的 Hello World 示例包。
|
|
4
|
+
|
|
5
|
+
## 安装
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
pip install pip-helloworld
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## 使用
|
|
12
|
+
|
|
13
|
+
### 作为命令行工具
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
pip-helloworld
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
### 在 Python 中使用
|
|
20
|
+
|
|
21
|
+
```python
|
|
22
|
+
from pip_helloworld import greet, hello
|
|
23
|
+
|
|
24
|
+
# 自定义问候
|
|
25
|
+
print(greet("Alice"))
|
|
26
|
+
# 输出: Hello, Alice! 👋 来自 pip_helloworld 包
|
|
27
|
+
|
|
28
|
+
# 默认问候
|
|
29
|
+
hello()
|
|
30
|
+
# 输出: Hello, World! 👋 来自 pip_helloworld 包
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
### 作为模块运行
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
python -m pip_helloworld
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## 开发
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
# 克隆项目
|
|
43
|
+
git clone https://github.com/yourname/pip-helloworld.git
|
|
44
|
+
cd pip-helloworld
|
|
45
|
+
|
|
46
|
+
# 安装开发依赖
|
|
47
|
+
pip install -e ".[dev]"
|
|
48
|
+
|
|
49
|
+
# 运行测试
|
|
50
|
+
pytest
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## License
|
|
54
|
+
|
|
55
|
+
MIT
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["hatchling"]
|
|
3
|
+
build-backend = "hatchling.build"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "msopmodeling"
|
|
7
|
+
version = "0.0.1"
|
|
8
|
+
description = "Coming soon"
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
requires-python = ">=3.8"
|
|
11
|
+
|
|
12
|
+
[project.scripts]
|
|
13
|
+
msopmodeling = "msopmodeling.__main__:main"
|
|
14
|
+
|
|
15
|
+
[tool.hatch.build.targets.wheel]
|
|
16
|
+
packages = ["msopmodeling"]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.0.1"
|
|
File without changes
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"""测试核心功能"""
|
|
2
|
+
|
|
3
|
+
import pytest
|
|
4
|
+
from pip_helloworld import greet, hello
|
|
5
|
+
from pip_helloworld import __version__
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
def test_greet_returns_string():
|
|
9
|
+
result = greet("Alice")
|
|
10
|
+
assert isinstance(result, str)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
def test_greet_contains_name():
|
|
14
|
+
result = greet("Alice")
|
|
15
|
+
assert "Alice" in result
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
def test_greet_world():
|
|
19
|
+
result = greet("World")
|
|
20
|
+
assert "World" in result
|
|
21
|
+
assert "Hello" in result
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
def test_hello_prints(capsys):
|
|
25
|
+
hello()
|
|
26
|
+
captured = capsys.readouterr()
|
|
27
|
+
assert "Hello" in captured.out
|
|
28
|
+
assert "World" in captured.out
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
def test_version_exists():
|
|
32
|
+
assert __version__ is not None
|
|
33
|
+
assert isinstance(__version__, str)
|