Skip to content

4 pypi release #11

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jun 18, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: PyPI Publish

on:
release:
types: [created]

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry
poetry install
- run: poetry publish --build
env:
POETRY_PYPI_TOKEN_PYPI: ${{secrets.POETRY_PYPI_TOKEN_PYPI}}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -4,3 +4,4 @@ __pycache__
.idea
venv
htmlcov/
dist/
2 changes: 1 addition & 1 deletion examples/upload_firmware.py
Original file line number Diff line number Diff line change
@@ -42,4 +42,4 @@

firmware_path = Path(sys.argv[2])
res = client.upload_firmware(metadata, firmware_path, enable_monitoring=True)
print(res)
print(res)
13 changes: 13 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -5,6 +5,19 @@ description = "IoT Inspector API client"
homepage = "https://www.iot-inspector.com/"
authors = ["IoT Inspector <support@iot-inspector.com>"]
license = "MIT"
readme = "README.md"
keywords = ["iot", "security", "firmware", "analysis"]
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Security"]

[tool.poetry.urls]
"GitHub" = "https://github.com/IoT-Inspector/python-client"
"Bug Tracker" = "https://github.com/IoT-Inspector/python-client/issues"

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