From 1d48d494536968be655ad7144333b79f406a5602 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Fri, 12 Jun 2020 11:52:20 +0200 Subject: [PATCH 1/5] =?UTF-8?q?=F0=9F=91=B7=E2=80=8D=E2=99=82=EF=B8=8F=20U?= =?UTF-8?q?se=20build=20matrix=20for=20test=20installs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/test_install.yml | 79 ++++++++++++++++++++++++++ .github/workflows/test_install_py2.yml | 61 -------------------- 2 files changed, 79 insertions(+), 61 deletions(-) create mode 100644 .github/workflows/test_install.yml delete mode 100644 .github/workflows/test_install_py2.yml diff --git a/.github/workflows/test_install.yml b/.github/workflows/test_install.yml new file mode 100644 index 000000000..16a23037c --- /dev/null +++ b/.github/workflows/test_install.yml @@ -0,0 +1,79 @@ +name: Test install of branches and latest release + +on: + push: + branches: + - master + repository_dispatch: + types: [test_install] + schedule: + - cron: '0 */12 * * *' + +jobs: + install-branch: + name: Install branch + strategy: + matrix: + os: ["ubuntu-latest"] + python: ["2.7", "3.7", "3.8"] + branch: ["master"] + runs-on: ${{ matrix.os }} + steps: + - name: 🐍 Set up Python ${{ matrix.python }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python }} + - name: ⬇ Checkout code + uses: actions/checkout@v2 + with: + ref: ${{ matrix.branch }} + - name: 👷 Build and install checkout + run: | + pip install . + - name: 📧 Discord success notification + env: + DISCORD_WEBHOOK: ${{ secrets.discord_webhook }} + uses: Ilshidur/action-discord@master + with: + args: '☑️ Test install on Python {{ matrix.python }} under `${{ matrix.os }}` for `OctoPrint/OctoPrint:${{ matrix.branch }}` was successful' + - name: 📧 Discord failure notification + if: failure() + env: + DISCORD_WEBHOOK: ${{ secrets.discord_webhook }} + uses: Ilshidur/action-discord@master + with: + args: '🚫 Test install on Python {{ matrix.python }} under `${{ matrix.os }}` for `OctoPrint/OctoPrint:${{ matrix.branch }}` failed' + + install-latest: + name: Install latest release + strategy: + matrix: + os: ["ubuntu-latest"] + python: ["2.7", "3.7", "3.8"] + runs-on: ${{ matrix.os }} + steps: + - name: 👀 Determine latest release + id: latest + uses: foosel/github-action-get-latest-release@master + with: + repository: "OctoPrint/OctoPrint" + - name: 🐍 Set up Python ${{ matrix.python }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python }} + - name: 👷 Build and install latest release + run: | + pip install https://github.com/OctoPrint/OctoPrint/archive/${{ steps.latest.outputs.release }}.zip + - name: 📧 Discord success notification + env: + DISCORD_WEBHOOK: ${{ secrets.discord_webhook }} + uses: Ilshidur/action-discord@master + with: + args: '☑️ Test install on Python ${{ matrix.python }} under `${{ matrix.os }}` for `OctoPrint/OctoPrint:${{ steps.latest.outputs.release }}` was successful' + - name: 📧 Discord failure notification + if: failure() + env: + DISCORD_WEBHOOK: ${{ secrets.discord_webhook }} + uses: Ilshidur/action-discord@master + with: + args: '🚫 Test install on Python ${{ matrix.python }} under `${{ matrix.os }}` for `OctoPrint/OctoPrint:${{ steps.latest.outputs.release }}` failed' diff --git a/.github/workflows/test_install_py2.yml b/.github/workflows/test_install_py2.yml deleted file mode 100644 index d6b2290db..000000000 --- a/.github/workflows/test_install_py2.yml +++ /dev/null @@ -1,61 +0,0 @@ -name: Test install on Python 2 - -on: - push: - branches: - - master - repository_dispatch: - types: [test_install_py2] - schedule: - - cron: '0 */12 * * *' - -jobs: - install-master: - runs-on: ubuntu-latest - steps: - - name: 🐍 Set up Python 2.7 - uses: actions/setup-python@v2 - with: - python-version: 2.7 - - name: ⬇ Checkout code - uses: actions/checkout@v2 - - name: 👷 Build and install checkout - run: | - pip install . - - name: 📧 Discord success notification - env: - DISCORD_WEBHOOK: ${{ secrets.discord_webhook }} - uses: Ilshidur/action-discord@master - with: - args: '☑️ Test install on Python 2 for `OctoPrint/OctoPrint:master` was successful' - - name: 📧 Discord failure notification - if: failure() - env: - DISCORD_WEBHOOK: ${{ secrets.discord_webhook_foosel }} - uses: Ilshidur/action-discord@master - with: - args: '🚫 Test install on Python 2 for `OctoPrint/OctoPrint:master` failed' - - install-latest: - runs-on: ubuntu-latest - steps: - - name: 🐍 Set up Python 2.7 - uses: actions/setup-python@v2 - with: - python-version: 2.7 - - name: 👷 Build and install latest from PyPI - run: | - pip install OctoPrint - - name: 📧 Discord success notification - env: - DISCORD_WEBHOOK: ${{ secrets.discord_webhook }} - uses: Ilshidur/action-discord@master - with: - args: '☑️ Test install on Python 2 for latest OctoPrint release was successful' - - name: 📧 Discord failure notification - if: failure() - env: - DISCORD_WEBHOOK: ${{ secrets.discord_webhook_foosel }} - uses: Ilshidur/action-discord@master - with: - args: '🚫 Test install on Python 2 for latest OctoPrint release failed' From 143cffd0603c5c01644e800d09d5c867da31d108 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Fri, 12 Jun 2020 12:10:35 +0200 Subject: [PATCH 2/5] =?UTF-8?q?=F0=9F=92=9A=20Fix=20discord=20CI=20message?= =?UTF-8?q?=20format?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/test_install.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test_install.yml b/.github/workflows/test_install.yml index 16a23037c..68cf094b3 100644 --- a/.github/workflows/test_install.yml +++ b/.github/workflows/test_install.yml @@ -35,14 +35,14 @@ jobs: DISCORD_WEBHOOK: ${{ secrets.discord_webhook }} uses: Ilshidur/action-discord@master with: - args: '☑️ Test install on Python {{ matrix.python }} under `${{ matrix.os }}` for `OctoPrint/OctoPrint:${{ matrix.branch }}` was successful' + args: '☑️ Test install on Python ${{ matrix.python }} under `${{ matrix.os }}` for `OctoPrint/OctoPrint:${{ matrix.branch }}` was successful' - name: 📧 Discord failure notification if: failure() env: DISCORD_WEBHOOK: ${{ secrets.discord_webhook }} uses: Ilshidur/action-discord@master with: - args: '🚫 Test install on Python {{ matrix.python }} under `${{ matrix.os }}` for `OctoPrint/OctoPrint:${{ matrix.branch }}` failed' + args: '🚫 Test install on Python ${{ matrix.python }} under `${{ matrix.os }}` for `OctoPrint/OctoPrint:${{ matrix.branch }}` failed' install-latest: name: Install latest release From 44154816045525417546f84b2a60763c4425a671 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Wed, 17 Jun 2020 13:44:20 +0200 Subject: [PATCH 3/5] Add notice about where to find old wiki content --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b040e5cbb..018efe60f 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ and released under the [GNU Affero General Public License V3](http://www.gnu.org Its website can be found at [octoprint.org](https://octoprint.org/?utm_source=github&utm_medium=readme). -The community forum is available at [community.octoprint.org](https://community.octoprint.org/?utm_source=github&utm_medium=readme). +The community forum is available at [community.octoprint.org](https://community.octoprint.org/?utm_source=github&utm_medium=readme) (also contains the old wiki content). An invite to the Discord server can be found at [discord.octoprint.org](https://discord.octoprint.org). From 45552000277661282fdd81497262fa2b269319b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Wed, 17 Jun 2020 13:59:43 +0200 Subject: [PATCH 4/5] =?UTF-8?q?=E2=9C=8F=20Change=20wording?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 018efe60f..7404a5779 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ and released under the [GNU Affero General Public License V3](http://www.gnu.org Its website can be found at [octoprint.org](https://octoprint.org/?utm_source=github&utm_medium=readme). -The community forum is available at [community.octoprint.org](https://community.octoprint.org/?utm_source=github&utm_medium=readme) (also contains the old wiki content). +The community forum is available at [community.octoprint.org](https://community.octoprint.org/?utm_source=github&utm_medium=readme). It also serves as central knowledge base. An invite to the Discord server can be found at [discord.octoprint.org](https://discord.octoprint.org). From 6625f81b6e6e0fcbd7bd7571898856e5f94d97b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Thu, 18 Jun 2020 10:50:20 +0200 Subject: [PATCH 5/5] =?UTF-8?q?=E2=9C=8F=20Remove=20references=20to=20wiki?= =?UTF-8?q?=20&=20update=20generic=20setup?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 7404a5779..f82bd38fb 100644 --- a/README.md +++ b/README.md @@ -30,17 +30,17 @@ If you enjoy OctoPrint, please consider becoming a regular supporter!** You are currently looking at the source code repository of OctoPrint. If you already installed it (e.g. by using the Raspberry Pi targeted distribution [OctoPi](https://github.com/guysoft/OctoPi)) and only -want to find out how to use it, [the documentation](http://docs.octoprint.org/) and [the public wiki](https://github.com/OctoPrint/OctoPrint/wiki) -might be of more interest for you. You might also want to subscribe to join +want to find out how to use it, [the documentation](http://docs.octoprint.org/) might be of more interest for you. You might also want to subscribe to join [the community forum at community.octoprint.org](https://community.octoprint.org) where there are other active users who might be able to help you with any questions you might have. ## Contributing Contributions of all kinds are welcome, not only in the form of code but also with regards to the -[official documentation](http://docs.octoprint.org/) or [the public wiki](https://github.com/OctoPrint/OctoPrint/wiki), debugging help +[official documentation](http://docs.octoprint.org/), debugging help in the [bug tracker](https://github.com/OctoPrint/OctoPrint/issues), support of other users on -[the community forum at community.octoprint.org](https://community.octoprint.org) +[the community forum at community.octoprint.org](https://community.octoprint.org) or +[the official discord at discord.octoprint.org](https://discord.octoprint.org) and also [financially](https://octoprint.org/support-octoprint/?utm_source=github&utm_medium=readme). If you think something is bad about OctoPrint or its documentation the way it is, please help @@ -53,7 +53,7 @@ For information about how to go about submitting bug reports or pull requests, p ## Installation Installation instructions for installing from source for different operating -systems can be found [on the wiki](https://github.com/OctoPrint/OctoPrint/wiki#assorted-guides). +systems can be found [on the forum](https://community.octoprint.org/tags/c/support/guides/15/setup). If you want to run OctoPrint on a Raspberry Pi, you might want to take a look at [OctoPi](https://github.com/guysoft/OctoPi) which is a custom SD card image that includes OctoPrint plus dependencies. @@ -61,9 +61,11 @@ which is a custom SD card image that includes OctoPrint plus dependencies. The generic steps that should basically be done regardless of operating system and runtime environment are the following (as *regular user*, please keep your hands *off* of the `sudo` command here!) - this assumes -you already have Python 2.7, 3.6 or 3.7, pip and virtualenv set up on your system: +you already have Python 2.7, 3.6 or 3.7, pip and virtualenv and their dependencies set up on your system: -1. Create a user-owned virtual environment therein: `virtualenv venv`. +1. Create a user-owned virtual environment therein: `virtualenv venv`. If you want to specify a specific python + to use instead of whatever version your system defaults to, you can also explicitly require that via the `--python` + parameter, e.g. `virtualenv --python=python3 venv`. 2. Install OctoPrint *into that virtual environment*: `./venv/bin/pip install OctoPrint` Or alternatively, for an install from source: