-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit f8edaf8
Showing
56 changed files
with
2,194 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# These are supported funding model platforms | ||
|
||
github: ampledata | ||
patreon: # Replace with a single Patreon username | ||
open_collective: # Replace with a single Open Collective username | ||
ko_fi: ampledata | ||
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel | ||
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry | ||
liberapay: # Replace with a single Liberapay username | ||
issuehunt: # Replace with a single IssueHunt username | ||
otechie: # Replace with a single Otechie username | ||
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry | ||
custom: https://www.buymeacoffee.com/ampledata |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
name: Build Debian package | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*' | ||
|
||
env: | ||
DEB_BUILD_OPTIONS: nocheck | ||
|
||
jobs: | ||
build-artifact: | ||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- uses: actions/checkout@master | ||
|
||
- name: Install packaging dependencies | ||
run: | | ||
sudo apt-get update -qq | ||
sudo apt-get install -y \ | ||
python3 python3-dev python3-pip python3-venv python3-all \ | ||
dh-python debhelper devscripts dput software-properties-common \ | ||
python3-distutils python3-setuptools python3-wheel python3-stdeb \ | ||
python3-all | ||
- name: Build Debian/Apt sdist_dsc | ||
run: | | ||
python3 -m pip install . | ||
rm -Rf deb_dist/* | ||
python3 setup.py --command-packages=stdeb.command sdist_dsc | ||
- name: Build Debian/Apt bdist_deb | ||
run: | | ||
python3 -m pip install . | ||
export REPO_NAME=$(echo ${{ github.repository }} | awk -F"/" '{print $2}') | ||
python3 setup.py --command-packages=stdeb.command bdist_deb | ||
ls -al deb_dist/ | ||
cp deb_dist/python3-${REPO_NAME}_*_all.deb deb_dist/python3-${REPO_NAME}_latest_all.deb | ||
- uses: actions/upload-artifact@master | ||
with: | ||
name: artifact-deb | ||
path: | | ||
deb_dist/*.deb | ||
- name: Create Release | ||
id: create_release | ||
uses: actions/create-release@master | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: ${{ github.ref }} | ||
release_name: Release ${{ github.ref }} | ||
draft: false | ||
prerelease: false | ||
|
||
- name: Upload Release Asset | ||
id: upload-release-asset | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
file: deb_dist/*.deb | ||
tag: ${{ github.ref }} | ||
overwrite: true | ||
file_glob: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# This workflow will upload a Python Package using Twine when a release is created | ||
name: Publish package to PyPI | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*' | ||
|
||
jobs: | ||
deploy: | ||
|
||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.x' | ||
- name: Install dependencies | ||
run: | | ||
python3 -m pip install --upgrade pip | ||
python3 -m pip install setuptools wheel twine | ||
- name: Build | ||
run: | | ||
python3 setup.py sdist bdist_wheel | ||
- name: Publish package | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.PYPI_API_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Lint & Test Code | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-20.04 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: [3.9, "3.10", "3.11", "3.12"] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install test requirements | ||
run: | | ||
make install_test_requirements | ||
- name: Install package itself (editable) | ||
run: | | ||
make editable | ||
- name: Lint with pylint | ||
run: | | ||
make pylint | ||
- name: Lint with flake8 | ||
run: | | ||
make flake8 | ||
- name: Test with pytest-cov | ||
run: | | ||
make test_cov |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
.vscode/ | ||
.devcontainer/ | ||
*.deb | ||
*.egg | ||
*.egg-info/ | ||
*.egg/ | ||
*.ignore | ||
*.py[co] | ||
*.py[oc] | ||
*.spl | ||
*.vagrant | ||
.DS_Store | ||
.coverage | ||
.eggs/ | ||
.eggs/* | ||
.idea | ||
.idea/ | ||
.pt | ||
.vagrant/ | ||
RELEASE-VERSION.txt | ||
build/ | ||
cover/ | ||
dist/ | ||
dump.rdb | ||
flake8.log | ||
local/ | ||
local_* | ||
metadata/ | ||
nosetests.xml | ||
output.xml | ||
pylint.log | ||
redis-server.log | ||
redis-server/ | ||
__pycache__ | ||
known_craft.csv | ||
.mypy_cache/ | ||
.pytest_cache/config.ini |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# .readthedocs.yaml | ||
# Read the Docs configuration file | ||
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details | ||
|
||
version: 2 | ||
|
||
build: | ||
os: ubuntu-22.04 | ||
tools: | ||
python: "3.11" | ||
|
||
mkdocs: | ||
configuration: mkdocs.yml | ||
|
||
python: | ||
install: | ||
- requirements: docs/requirements.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
## DroneCOT 1.0.0 | ||
|
||
Initial release of DroneCOT. |
Oops, something went wrong.