Skip to content

Commit 5b59d1f

Browse files
authored
Merge pull request #11 from IoT-Inspector/4-pypi-release
4 pypi release
2 parents 359f08f + f894373 commit 5b59d1f

4 files changed

Lines changed: 38 additions & 1 deletion

File tree

.github/workflows/publish.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: PyPI Publish
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
publish:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- name: Set up Python
13+
uses: actions/setup-python@v2
14+
with:
15+
python-version: '3.x'
16+
- name: Install dependencies
17+
run: |
18+
python -m pip install --upgrade pip
19+
pip install poetry
20+
poetry install
21+
- run: poetry publish --build
22+
env:
23+
POETRY_PYPI_TOKEN_PYPI: ${{secrets.POETRY_PYPI_TOKEN_PYPI}}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ __pycache__
44
.idea
55
venv
66
htmlcov/
7+
dist/

examples/upload_firmware.py

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

4343
firmware_path = Path(sys.argv[2])
4444
res = client.upload_firmware(metadata, firmware_path, enable_monitoring=True)
45-
print(res)
45+
print(res)

pyproject.toml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,19 @@ description = "IoT Inspector API client"
55
homepage = "https://www.iot-inspector.com/"
66
authors = ["IoT Inspector <support@iot-inspector.com>"]
77
license = "MIT"
8+
readme = "README.md"
9+
keywords = ["iot", "security", "firmware", "analysis"]
10+
classifiers = [
11+
"Development Status :: 4 - Beta",
12+
"Environment :: Console",
13+
"License :: OSI Approved :: MIT License",
14+
"Operating System :: OS Independent",
15+
"Programming Language :: Python :: 3 :: Only",
16+
"Topic :: Security"]
17+
18+
[tool.poetry.urls]
19+
"GitHub" = "https://github.com/IoT-Inspector/python-client"
20+
"Bug Tracker" = "https://github.com/IoT-Inspector/python-client/issues"
821

922
[tool.poetry.dependencies]
1023
python = "^3.6.1"

0 commit comments

Comments
 (0)