Skip to content

Commit de33569

Browse files
authored
Merge pull request #10 from NetherlandsForensicInstitute/ADBPY-9
Adbpy 9: add github action for release
2 parents c1af5ed + 9164cca commit de33569

File tree

3 files changed

+47
-1
lines changed

3 files changed

+47
-1
lines changed

.github/workflows/publish.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# This workflow will upload a Python Package using Twine when a release is created
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries
3+
4+
# This workflow uses actions that are not certified by GitHub.
5+
# They are provided by a third-party and are governed by
6+
# separate terms of service, privacy policy, and support
7+
# documentation.
8+
9+
name: Upload Python Package
10+
11+
on:
12+
release:
13+
types: [published]
14+
15+
permissions:
16+
contents: read
17+
18+
jobs:
19+
deploy:
20+
21+
runs-on: ubuntu-latest
22+
23+
steps:
24+
- uses: actions/checkout@v3
25+
- name: Set up Python
26+
uses: actions/setup-python@v3
27+
with:
28+
python-version: '3.11'
29+
- name: Install dependencies
30+
run: |
31+
python -m pip install --upgrade pip
32+
pip install build
33+
- name: Build package
34+
run: python -m build
35+
- name: Publish package
36+
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
37+
with:
38+
user: __token__
39+
password: ${{ secrets.PYPI_API_TOKEN }}

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
```
2+
v0.9 - Add Github action to release to PyPi
3+
```
4+
```
25
v0.8 - Removed lru_cache function that caused get_prop output to be cached which is not advisable since these properties can change
36
```
47
```

setup.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
setup(
44
name="adb_py",
5-
version="0.8",
5+
version="0.9",
6+
description="adb_py facilitates seamless interaction with Android devices using the Android Debug Bridge (ADB) "
7+
"directly within Python scripts.",
8+
author="Netherlands Forensic Institute",
9+
licence="EUPL-1.2",
610
py_modules=["adb_py", "adb_init"],
711
)

0 commit comments

Comments
 (0)