-
Notifications
You must be signed in to change notification settings - Fork 2
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
Showing
26 changed files
with
3,616 additions
and
659 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
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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
# Auto detect text files and perform LF normalization | ||
* text=auto | ||
octoprint_virtual_printerconfig/_version.py export-subst |
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,52 @@ | ||
name: Build | ||
on: | ||
push: | ||
|
||
jobs: | ||
build: | ||
name: 🔨 Build distribution | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: 🏗 Set up Python 3.8 | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: 3.8 | ||
- name: 🏗 Install build dependencies | ||
run: | | ||
python -m pip install wheel octoprint --user | ||
- name: 🔨 Build a source zip | ||
run: | | ||
python setup.py sdist --formats=zip | ||
- name: ⬆ Upload build result | ||
uses: actions/upload-artifact@v1 | ||
with: | ||
name: dist | ||
path: dist | ||
|
||
test-install: | ||
name: 🧪 Installation tests | ||
needs: build | ||
strategy: | ||
matrix: | ||
python: ["2.7", "3.7", "3.8"] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: 🏗 Set up Python ${{ matrix.python }} | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: ${{ matrix.python }} | ||
- name: ⬇ Download build result | ||
uses: actions/download-artifact@v1 | ||
with: | ||
name: dist | ||
path: dist | ||
- name: 🏗 Install dependencies | ||
run: | | ||
python -m pip install --upgrade wheel setuptools pip | ||
python -m pip install octoprint | ||
- name: 🧪 Test install of package | ||
run: | | ||
python -m pip install dist/Virtual\ Printer\ Settings-*.zip |
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,83 @@ | ||
name: Release | ||
on: | ||
release: | ||
types: [published, prereleased] | ||
|
||
jobs: | ||
build: | ||
name: 🔨 Build distribution | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: 🏗 Set up Python 3.8 | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: 3.8 | ||
- name: 🏗 Install build dependencies | ||
run: | | ||
python -m pip install wheel octoprint --user | ||
- name: 🔨 Build a source zip | ||
run: | | ||
python setup.py sdist --formats=zip | ||
- name: ⬆ Upload build result | ||
uses: actions/upload-artifact@v1 | ||
with: | ||
name: dist | ||
path: dist | ||
|
||
test-install: | ||
name: 🧪 Installation tests | ||
needs: build | ||
strategy: | ||
matrix: | ||
python: ["2.7", "3.7", "3.8"] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: 🏗 Set up Python ${{ matrix.python }} | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: ${{ matrix.python }} | ||
- name: ⬇ Download build result | ||
uses: actions/download-artifact@v1 | ||
with: | ||
name: dist | ||
path: dist | ||
- name: 🏗 Install dependencies | ||
run: | | ||
python -m pip install --upgrade wheel setuptools pip | ||
python -m pip install octoprint | ||
- name: 🧪 Test install of package | ||
run: | | ||
python -m pip install dist/Virtual\ Printer\ Settings-*.zip | ||
upload-asset: | ||
name: 📦 Upload asset to release | ||
runs-on: ubuntu-latest | ||
needs: | ||
- build | ||
- test-install | ||
steps: | ||
- name: ⬇ Download build result | ||
uses: actions/download-artifact@v1 | ||
with: | ||
name: dist | ||
path: dist | ||
- name: 🚚 Rename to release.zip | ||
run: | | ||
cp dist/Virtual\ Printer\ Settings-*.zip release.zip | ||
- name: 🥅 Catch release ID | ||
id: get_release | ||
uses: bruceadams/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ github.token }} | ||
- name: 📦 Attach release artifact | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.get_release.outputs.upload_url }} | ||
asset_path: release.zip | ||
asset_name: release.zip | ||
asset_content_type: application/zip |
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 |
---|---|---|
|
@@ -8,4 +8,4 @@ dist | |
.DS_Store | ||
*.zip | ||
resources | ||
.vscode | ||
.vscode |
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,40 @@ | ||
exclude: ^(translations/|.*\.css|.*\.svg|octoprint_virtual_printerconfig/_version.py|versioneer.py) | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v2.3.0 | ||
hooks: | ||
- id: end-of-file-fixer | ||
- id: trailing-whitespace | ||
- id: check-case-conflict | ||
- id: check-json | ||
- id: check-yaml | ||
- id: check-toml | ||
- id: check-merge-conflict | ||
- id: fix-encoding-pragma | ||
- repo: https://github.com/OctoPrint/codemods | ||
rev: main | ||
hooks: | ||
- id: codemod_dict_to_literal | ||
stages: ["manual"] | ||
- id: codemod_set_to_literal | ||
stages: ["manual"] | ||
- id: codemod_not_in | ||
stages: ["manual"] | ||
- repo: https://github.com/pre-commit/mirrors-isort | ||
rev: v5.5.4 | ||
hooks: | ||
- id: isort | ||
- repo: https://github.com/psf/black | ||
rev: stable | ||
hooks: | ||
- id: black | ||
- repo: https://gitlab.com/pycqa/flake8 | ||
rev: 3.8.1 | ||
hooks: | ||
- id: flake8 | ||
additional_dependencies: | ||
- flake8-bugbear | ||
- repo: https://github.com/prettier/prettier | ||
rev: master | ||
hooks: | ||
- id: prettier |
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,28 @@ | ||
# Configuration file for the versioneer lookup, manually mapping tags based on branches | ||
# | ||
# Format is | ||
# | ||
# <branch-regex> <tag> <reference commit> | ||
# | ||
# The file is processed from top to bottom, the first matching line wins. If <tag> or <reference commit> are left out, | ||
# the lookup table does not apply to the matched branches | ||
|
||
# These branches should only use tags, use for your release branches | ||
master | ||
main | ||
pre-release | ||
rc/.* | ||
rc | ||
|
||
# neither should disconnected checkouts, e.g. 'git checkout <tag>' | ||
HEAD | ||
\(detached.* | ||
|
||
# here, maintenance is currently the branch for 0.1.4 - hash is of previous tag on this branch | ||
maintenance 0.1.4 60391c634bd7077dae6abd40f4d6afd2b35519e4 pep440-dev | ||
|
||
# devel is currently the branch for work towards 0.2.0 | ||
devel 0.2.0 60391c634bd7077dae6abd40f4d6afd2b35519e4 pep440-dev | ||
|
||
# Every other branch is also development, so is resolved to 0.2.0 as well for now | ||
.* 0.2.0 60391c634bd7077dae6abd40f4d6afd2b35519e4 pep440-dev |
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 @@ | ||
# file GENERATED by distutils, do NOT edit | ||
README.md | ||
setup.cfg | ||
setup.py | ||
versioneer.py | ||
octoprint_virtual_printerconfig\__init__.py | ||
octoprint_virtual_printerconfig\_version.py | ||
octoprint_virtual_printerconfig\static\js\virtual_printerconfig.js | ||
octoprint_virtual_printerconfig\static\sass\virtual_printerconfig.sass | ||
octoprint_virtual_printerconfig\templates\settings_replacement.jinja2 | ||
octoprint_virtual_printerconfig\templates\settings_tab_firmware.jinja2 | ||
octoprint_virtual_printerconfig\templates\settings_tab_physical.jinja2 | ||
octoprint_virtual_printerconfig\templates\settings_tab_responses.jinja2 |
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
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
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
Oops, something went wrong.