Skip to content

Commit

Permalink
feat: publish to PyPI.org
Browse files Browse the repository at this point in the history
  • Loading branch information
luoluoter committed Apr 12, 2024
1 parent c9877a4 commit 586ff1a
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 0 deletions.
39 changes: 39 additions & 0 deletions docs/publish.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# publish

## pypi.org

```sh
# tools update
python3 -m pip install --upgrade build
python3 -m pip install --upgrade twine
```

### Test

```sh
# 1 build
python3 -m build

# 2 publish
python3 -m twine upload --repository testpypi dist/*
### WARNING: do not share you API token !!

# 3 test
pip install -i https://test.pypi.org/simple/ jetson-examples==0.0.1
### make sure version number right
```

### Prod

```sh
# 1 build
python3 -m build

# 2 publish
python3 -m twine upload --repository pypi dist/*
### WARNING: do not share you API token !!

# 3 test
pip install jetson-examples==0.0.1
### make sure version number right
```
16 changes: 16 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[project]
name = "jetson-examples"
version = "0.0.1"
authors = [{ name = "luozhixin", email = "[email protected]" }]
description = "all you need is reComputer"
readme = "README.md"
requires-python = ">=3.8"
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]

[project.urls]
Homepage = "https://github.com/luoluoter/jetson-examples"
Issues = "https://github.com/luoluoter/jetson-examples/issues"

0 comments on commit 586ff1a

Please sign in to comment.