Skip to content

Commit 9f7eda0

Browse files
DomAmatoakumlehnHectorMendezHectorMendezNimanicdependabot[bot]
authored
Release 0.9.1 (#18)
* Add Github Actions * Update issue templates use comments to hide extra details when preparing a report * wait for the process to be terminated (#17) * Properly handle when parsing other types of SMS PDUs (#16) * Add chunking for messeages over 512 bytes (#15) * Update test_Modem.py * check python and pip versions (#19) * simplify version check * check python and pip version for update too * call super.disconnect instead of connect (ensures event network.disconnected broadcast) (#22) * remove extraneous parenthesis (#24) * include token * remove extraneous parenthesis (#26) * remove travis and rename actions * use pytest instead of coverage * only test on 3.7 for now * Allow sending raw AT commands to the modem (#28) * Fix PPP Errors with disconnect and routing (#32) Fix #30 and #31 * Concat to bytes not str (#33) * properly convert bytestring ascii value * convert from ascii int value to int * make it possible to renable at sockets (#36) * include support for Huawei Modem E372 (#21) * include support for Huawei Modem E372 and actually works with Ubuntu and Raspbian10 * add support in class for E372 modem Co-authored-by: Hector Mendez <[email protected]> * Add BG96 Support (#37) * add bg96 to modems * update description and enable at sockets * Update BG96.py * check if active * send the right permutation * decode and use command * wait for socket to open and handle other actions * better urc handling * more logging * handle attribute errors too * handle urc types better * better socket state handling * bg96 is send ok not ok * log more info * use set instead of command * add send ok as possible results * handle send ok in process response * close properly and update read_socket * handle recv response from urc * fix missing imports * clean up logging a bit * remove another logging instance * fix merge conflict * fix copy pasta * try adding config on develop * add some more github actions (#41) * add dependency label to config * Dont encode buffer (#39) * add more info to release * Bump actions/setup-python from v1 to v2.0.2 (#51) Bumps [actions/setup-python](https://github.com/actions/setup-python) from v1 to v2.0.2. - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](actions/setup-python@v1...7a69c2b) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Update psutil requirement from ~=5.6.3 to ~=5.7.2 (#50) Updates the requirements on [psutil](https://github.com/giampaolo/psutil) to permit the latest version. - [Release notes](https://github.com/giampaolo/psutil/releases) - [Changelog](https://github.com/giampaolo/psutil/blob/master/HISTORY.rst) - [Commits](giampaolo/psutil@release-5.6.3...release-5.7.2) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Update hjson requirement from ~=3.0.0 to ~=3.0.1 (#48) Updates the requirements on [hjson](https://github.com/hjson/hjson-py) to permit the latest version. - [Release notes](https://github.com/hjson/hjson-py/releases) - [Changelog](https://github.com/hjson/hjson-py/blob/master/history.md) - [Commits](hjson/hjson-py@v3.0.0...v3.0.1) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Update pyudev requirement from ~=0.21.0 to ~=0.22.0 (#45) Updates the requirements on [pyudev](https://github.com/pyudev/pyudev) to permit the latest version. - [Release notes](https://github.com/pyudev/pyudev/releases) - [Changelog](https://github.com/pyudev/pyudev/blob/develop-0.22/CHANGES.rst) - [Commits](pyudev/pyudev@v0.21.0...v0.22) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Update requests requirement from ~=2.22.0 to ~=2.24.0 (#44) Updates the requirements on [requests](https://github.com/psf/requests) to permit the latest version. - [Release notes](https://github.com/psf/requests/releases) - [Changelog](https://github.com/psf/requests/blob/master/HISTORY.md) - [Commits](psf/requests@v2.22.0...v2.24.0) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * add section for dependencies * fix broken python actions * Update psutil requirement from ~=5.7.2 to ~=5.8.0 (#70) Updates the requirements on [psutil](https://github.com/giampaolo/psutil) to permit the latest version. - [Release notes](https://github.com/giampaolo/psutil/releases) - [Changelog](https://github.com/giampaolo/psutil/blob/master/HISTORY.rst) - [Commits](giampaolo/psutil@release-5.7.2...release-5.8.0) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Update pyusb requirement from ~=1.0.2 to ~=1.1.0 (#59) Updates the requirements on [pyusb](https://github.com/pyusb/pyusb) to permit the latest version. - [Release notes](https://github.com/pyusb/pyusb/releases) - [Commits](pyusb/pyusb@v1.0.2...v1.1.0) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Update requests requirement from ~=2.24.0 to ~=2.25.1 (#67) Updates the requirements on [requests](https://github.com/psf/requests) to permit the latest version. - [Release notes](https://github.com/psf/requests/releases) - [Changelog](https://github.com/psf/requests/blob/master/HISTORY.md) - [Commits](psf/requests@v2.24.0...v2.25.1) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Update pyserial requirement from ~=3.4.0 to ~=3.5 (#72) Updates the requirements on [pyserial](https://github.com/pyserial/pyserial) to permit the latest version. - [Release notes](https://github.com/pyserial/pyserial/releases) - [Changelog](https://github.com/pyserial/pyserial/blob/master/CHANGES.rst) - [Commits](pyserial/pyserial@v3.4...v3.5) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Strip AT command result prefix when issued command ends with ? or % (#6) * Strip AT command result prefix when issued command ends with ? or % * Simplify strip of characters from AT command result * Fix type for BG96 (#77) * allow setting APN (#79) * properly handle bytes when reading from an open socket (#74) * Update pyusb requirement from ~=1.1.0 to ~=1.1.1 (#75) Updates the requirements on [pyusb](https://github.com/pyusb/pyusb) to permit the latest version. - [Release notes](https://github.com/pyusb/pyusb/releases) - [Commits](pyusb/pyusb@v1.1.0...v1.1.1) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: akumlehn <[email protected]> Co-authored-by: Héctor <[email protected]> Co-authored-by: Hector Mendez <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Tom Pethtel <[email protected]> Co-authored-by: Reuben Balik <[email protected]>
1 parent f0e521d commit 9f7eda0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+659
-132
lines changed

.github/changelog-drafter.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name-template: 'v$RESOLVED_VERSION 🌈'
2+
3+
tag-template: 'v$RESOLVED_VERSION'
4+
5+
categories:
6+
- title: '🚀 Features'
7+
labels:
8+
- 'feature'
9+
- 'enhancement'
10+
- title: '🐛 Bug Fixes'
11+
labels:
12+
- 'fix'
13+
- 'bugfix'
14+
- 'bug'
15+
- title: '🧰 Maintenance'
16+
labels:
17+
- 'chore'
18+
- 'debt'
19+
- title: '🛠 Dependency Updates'
20+
labels:
21+
- 'dependencies'
22+
23+
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
24+
25+
version-resolver:
26+
major:
27+
labels:
28+
- 'major'
29+
- 'breaking'
30+
minor:
31+
labels:
32+
- 'minor'
33+
- 'feature'
34+
patch:
35+
labels:
36+
- 'patch'
37+
- 'bugfix'
38+
- 'debt'
39+
- 'dependencies'
40+
default: patch
41+
42+
exclude-labels:
43+
- 'skip-changelog'
44+
45+
template: |
46+
## Changes
47+
48+
$CHANGES
49+
50+
**Release Date:** <DATE>
51+
**Release Engineer:** $CONTRIBUTORS
52+
**Previous Release:** $PREVIOUS_TAG

.github/dependabot.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Basic dependabot.yml file with
2+
# minimum configuration for two package managers
3+
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
4+
5+
version: 2
6+
updates:
7+
8+
# Maintain dependencies for GitHub Actions
9+
- package-ecosystem: "github-actions"
10+
directory: "/"
11+
schedule:
12+
interval: "daily"
13+
14+
15+
# Enable version updates for python pip
16+
- package-ecosystem: "pip"
17+
directory: "/"
18+
schedule:
19+
interval: "daily"

.github/workflows/changelog.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Changelog Drafter
2+
3+
on:
4+
push:
5+
# develop is our tracking branch
6+
branches:
7+
- develop
8+
9+
jobs:
10+
update_release_draft:
11+
runs-on: ubuntu-latest
12+
steps:
13+
# Drafts your next Release notes as Pull Requests are merged into "master"
14+
- uses: release-drafter/release-drafter@v5
15+
with:
16+
# (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml
17+
config-name: changelog-drafter.yml
18+
env:
19+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/publish.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Upload Python Package
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
deploy:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- name: Set up Python
13+
uses: actions/[email protected]
14+
with:
15+
python-version: '3.x'
16+
- name: Install dependencies
17+
run: |
18+
python -m pip install --upgrade pip
19+
pip install setuptools wheel twine
20+
- name: Build and publish
21+
env:
22+
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
23+
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
24+
run: |
25+
python setup.py sdist bdist_wheel
26+
twine upload dist/*

.github/workflows/testlint.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Python Test and Lint
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-latest
9+
strategy:
10+
matrix:
11+
python-version: [3.7]
12+
13+
steps:
14+
- uses: actions/checkout@v2
15+
- name: Set up Python ${{ matrix.python-version }}
16+
uses: actions/setup-python@v2
17+
with:
18+
python-version: ${{ matrix.python-version }}
19+
20+
- name: Install dependencies
21+
run: |
22+
python -m pip install --upgrade pip
23+
pip install -r requirements.txt
24+
25+
- name: Lint with flake8
26+
run: |
27+
pip install flake8
28+
# stop the build if there are Python syntax errors or undefined names
29+
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
30+
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
31+
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
32+
33+
- name: Test with coverage and coveralls
34+
env:
35+
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
36+
run: |
37+
pip install coveralls pytest-cov
38+
pytest --cov=Hologram tests/
39+
coveralls

.travis.yml

Lines changed: 0 additions & 33 deletions
This file was deleted.

Hologram/Api/Api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
HOLOGRAM_REST_API_BASEURL = 'https://dashboard.hologram.io/api/1'
1616

17-
class Api():
17+
class Api:
1818

1919
def __init__(self, apikey='', username='', password=''):
2020
# Logging setup.

Hologram/Authentication/AES/AESCipher.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from cryptography.hazmat.primitives import padding
1313
from cryptography.hazmat.backends import default_backend
1414

15-
class AESCipher():
15+
class AESCipher:
1616

1717
# EFFECTS: Constructor that sets the IV to
1818
def __init__(self, iv, key):

Hologram/Authentication/Authentication.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import logging
1111
from logging import NullHandler
1212

13-
class Authentication():
13+
class Authentication:
1414

1515
def __init__(self, credentials):
1616
self.credentials = credentials

Hologram/Cloud.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
__version__ = '0.9.0'
1717

18-
class Cloud():
18+
class Cloud:
1919

2020
def __repr__(self):
2121
return type(self).__name__

0 commit comments

Comments
 (0)