Skip to content

Commit 7db405a

Browse files
committed
🏂 Fix pypi pkg name conflict.
1 parent f0d68c4 commit 7db405a

File tree

5 files changed

+32
-4
lines changed

5 files changed

+32
-4
lines changed

.vscode/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@
134134
"editor.guides.bracketPairs": true,
135135
"cSpell.words": [
136136
"initializable",
137-
"phmap"
137+
"phmap",
138+
"pypi"
138139
]
139140
}

README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,33 @@ cd ./scripts/wheel/meshsdk
227227
pip install .
228228
# Check the installed `meshsdk`
229229
pip list | grep meshsdk
230+
231+
232+
# Publish
233+
cd ./scripts/wheel/meshsdk
234+
pip install --upgrade build twine
235+
python -m build
236+
237+
# [distutils]
238+
# index-servers =
239+
# pypi
240+
# testpypi
241+
242+
# [pypi]
243+
# username = __token__
244+
# password = <u-token>
245+
# [testpypi]
246+
# username = __token__
247+
# password = <u-token>
248+
vi ~/.pyirc
249+
250+
# test
251+
twine upload --repository testpypi dist/*
252+
pip install -i https://test.pypi.org/simple meshsdk
253+
254+
# official
255+
twine upload dist/*
256+
pip install meshsdk
230257
```
231258

232259
> Run the generator on different platforms

examples/python-examples/MeshOffset.dox.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@
2020

2121

2222
# Save result
23-
mrmeshpy.saveMesh(result_mesh, "offsetMesh.stl")
23+
mrmeshpy.saveMesh(result_mesh, "MeshOffset.stl")

scripts/wheel/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ requires = ["setuptools >= 61.0"]
33
build-backend = "setuptools.build_meta"
44

55
[project]
6-
name = "meshsdk"
6+
name = "asmesh"
77
description = "3D processing library"
88
authors = [
99
{ name = "alpinebuster", email = "[email protected]" },

scripts/wheel/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
long_description = (here / "README.md").read_text(encoding="utf-8")
3939

4040
setuptools.setup(
41-
name="meshsdk",
41+
name="asmesh",
4242
version=VERSION,
4343
author="alpinebuster",
4444
author_email="[email protected]",

0 commit comments

Comments
 (0)