Skip to content

Commit 95f58a0

Browse files
committed
updates for style
1 parent 316a490 commit 95f58a0

19 files changed

+375
-288
lines changed

.github/FUNDING.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# These are supported funding model platforms
2+
3+
github: ampledata
4+
patreon: # Replace with a single Patreon username
5+
open_collective: # Replace with a single Open Collective username
6+
ko_fi: ampledata
7+
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8+
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9+
liberapay: # Replace with a single Liberapay username
10+
issuehunt: # Replace with a single IssueHunt username
11+
otechie: # Replace with a single Otechie username
12+
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
13+
custom: https://www.buymeacoffee.com/ampledata

.github/workflows/debian.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,10 @@ jobs:
3030
3131
- name: Build Debian/Apt bdist_deb
3232
run: |
33+
export REPO_NAME=$(echo ${{ github.repository }} | awk -F"/" '{print $2}')
3334
python3 setup.py --command-packages=stdeb.command bdist_deb
3435
ls -al deb_dist/
35-
cp deb_dist/python3-aircot_*_all.deb deb_dist/python3-aircot_latest_all.deb
36+
cp deb_dist/python3-${REPO_NAME}_*_all.deb deb_dist/python3-${REPO_NAME}_latest_all.deb
3637
3738
- uses: actions/upload-artifact@master
3839
with:

.github/workflows/pylint.yml

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

.github/workflows/python-app.yml

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

.github/workflows/python-package.yml

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

.github/workflows/python-publish.yml renamed to .github/workflows/python-publish_to_pypi.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
# This workflow will upload a Python Package using Twine when a release is created
2-
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
2+
name: Publish package to PyPI
33

4-
name: Upload Python Package
5-
6-
on: push
4+
on:
5+
push:
6+
tags:
7+
- '*'
78

89
jobs:
910
deploy:
@@ -18,13 +19,12 @@ jobs:
1819
python-version: '3.x'
1920
- name: Install dependencies
2021
run: |
21-
python -m pip install --upgrade pip
22-
pip install setuptools wheel twine
22+
python3 -m pip install --upgrade pip
23+
python3 -m pip install setuptools wheel twine
2324
- name: Build
2425
run: |
25-
python setup.py sdist bdist_wheel
26+
python3 setup.py sdist bdist_wheel
2627
- name: Publish package
27-
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
2828
uses: pypa/gh-action-pypi-publish@release/v1
2929
with:
3030
user: __token__
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Lint & Test Code
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
python-version: [3.6, 3.7, 3.8, 3.9]
17+
18+
steps:
19+
- uses: actions/checkout@v2
20+
- name: Set up Python ${{ matrix.python-version }}
21+
uses: actions/setup-python@v2
22+
with:
23+
python-version: ${{ matrix.python-version }}
24+
- name: Install test requirements
25+
run: |
26+
make install_test_requirements
27+
- name: Install package itself (editable)
28+
run: |
29+
make editable
30+
- name: Lint with pylint
31+
run: |
32+
make pylint
33+
- name: Lint with flake8
34+
run: |
35+
make flake8
36+
- name: Test with pytest-cov
37+
run: |
38+
make test_cov

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
.vscode/
12
*.deb
23
*.egg
34
*.egg-info/

.travis.yml

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

LICENSE

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
Copyright 2021 Orion Labs, Inc.
1+
Copyright 2022 Greg Albrecht <oss@undef.net>
22

33
Licensed under the Apache License, Version 2.0 (the "License");
44
you may not use this file except in compliance with the License.
5-
You may obtain a copy of the License at
6-
7-
http://www.apache.org/licenses/LICENSE-2.0
5+
You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
86

97
Unless required by applicable law or agreed to in writing, software
108
distributed under the License is distributed on an "AS IS" BASIS,

0 commit comments

Comments
 (0)