From 16fb9ab97316fa29e83819d76de90f98edbf4d81 Mon Sep 17 00:00:00 2001 From: Tushar Sadhwani Date: Thu, 20 Jun 2024 00:40:41 +0530 Subject: [PATCH] Replace textual demo with posting --- .github/workflows/build-cross.yml | 22 +++++++++++----------- .github/workflows/build.yml | 22 +++++++++++----------- README.md | 9 ++++++--- 3 files changed, 28 insertions(+), 25 deletions(-) diff --git a/.github/workflows/build-cross.yml b/.github/workflows/build-cross.yml index 091da6e..a99ac35 100644 --- a/.github/workflows/build-cross.yml +++ b/.github/workflows/build-cross.yml @@ -56,11 +56,11 @@ jobs: packaged ./aliens.sh 'pip install pygame' 'python -m pygame.examples.aliens' tar czf $ALIENS_NAME ./aliens.sh - # textual: requires no source - TEXTUAL_NAME="textual-${{ matrix.target }}.tar.gz" - TEXTUAL_PATH=${PWD}/${TEXTUAL_NAME} - packaged ./textual.sh 'pip install textual' 'python -m textual' - tar czf $TEXTUAL_NAME ./textual.sh + # posting: requires no source + POSTING_NAME="posting-${{ matrix.target }}.tar.gz" + POSTING_PATH=${PWD}/${POSTING_NAME} + packaged ./posting.sh 'pip install posting' 'posting' + tar czf $POSTING_NAME ./posting.sh # IPython: requires no source IPYTHON_NAME="ipython-${{ matrix.target }}.tar.gz" @@ -84,8 +84,8 @@ jobs: echo Setting paths in output echo ::set-output name=ALIENS_NAME::"${ALIENS_NAME}" echo ::set-output name=ALIENS_PATH::"${ALIENS_PATH}" - echo ::set-output name=TEXTUAL_NAME::"${TEXTUAL_NAME}" - echo ::set-output name=TEXTUAL_PATH::"${TEXTUAL_PATH}" + echo ::set-output name=POSTING_NAME::"${POSTING_NAME}" + echo ::set-output name=POSTING_PATH::"${POSTING_PATH}" echo ::set-output name=IPYTHON_NAME::"${IPYTHON_NAME}" echo ::set-output name=IPYTHON_PATH::"${IPYTHON_PATH}" echo ::set-output name=MANDELBROT_NAME::"${MANDELBROT_NAME}" @@ -99,11 +99,11 @@ jobs: name: ${{ steps.build.outputs.ALIENS_NAME }} path: ${{ steps.build.outputs.ALIENS_PATH }} - - name: Upload textual + - name: Upload posting uses: actions/upload-artifact@v4 with: - name: ${{ steps.build.outputs.TEXTUAL_NAME }} - path: ${{ steps.build.outputs.TEXTUAL_PATH }} + name: ${{ steps.build.outputs.POSTING_NAME }} + path: ${{ steps.build.outputs.POSTING_PATH }} - name: Upload IPython uses: actions/upload-artifact@v4 @@ -130,7 +130,7 @@ jobs: draft: true files: | ${{ steps.build.outputs.ALIENS_PATH }} - ${{ steps.build.outputs.TEXTUAL_PATH }} + ${{ steps.build.outputs.POSTING_PATH }} ${{ steps.build.outputs.IPYTHON_PATH }} ${{ steps.build.outputs.MANDELBROT_PATH }} ${{ steps.build.outputs.MINESWEEPER_PATH }} diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 562dbc3..dbcf8e3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -61,11 +61,11 @@ jobs: packaged ./aliens.sh 'pip install pygame' 'python -m pygame.examples.aliens' tar czf $ALIENS_NAME ./aliens.sh - # textual: requires no source - TEXTUAL_NAME="textual-${{ matrix.target }}.tar.gz" - TEXTUAL_PATH=${PWD}/${TEXTUAL_NAME} - packaged ./textual.sh 'pip install textual' 'python -m textual' - tar czf $TEXTUAL_NAME ./textual.sh + # posting: requires no source + POSTING_NAME="posting-${{ matrix.target }}.tar.gz" + POSTING_PATH=${PWD}/${POSTING_NAME} + packaged ./posting.sh 'pip install posting' 'posting' + tar czf $POSTING_NAME ./posting.sh # IPython: requires no source IPYTHON_NAME="ipython-${{ matrix.target }}.tar.gz" @@ -88,8 +88,8 @@ jobs: # Setup output paths for upload echo "ALIENS_NAME=${ALIENS_NAME}" >> $GITHUB_OUTPUT echo "ALIENS_PATH=${ALIENS_PATH}" >> $GITHUB_OUTPUT - echo "TEXTUAL_NAME=${TEXTUAL_NAME}" >> $GITHUB_OUTPUT - echo "TEXTUAL_PATH=${TEXTUAL_PATH}" >> $GITHUB_OUTPUT + echo "POSTING_NAME=${POSTING_NAME}" >> $GITHUB_OUTPUT + echo "POSTING_PATH=${POSTING_PATH}" >> $GITHUB_OUTPUT echo "IPYTHON_NAME=${IPYTHON_NAME}" >> $GITHUB_OUTPUT echo "IPYTHON_PATH=${IPYTHON_PATH}" >> $GITHUB_OUTPUT echo "MANDELBROT_NAME=${MANDELBROT_NAME}" >> $GITHUB_OUTPUT @@ -103,11 +103,11 @@ jobs: name: ${{ steps.build.outputs.ALIENS_NAME }} path: ${{ steps.build.outputs.ALIENS_PATH }} - - name: Upload textual + - name: Upload posting uses: actions/upload-artifact@v4 with: - name: ${{ steps.build.outputs.TEXTUAL_NAME }} - path: ${{ steps.build.outputs.TEXTUAL_PATH }} + name: ${{ steps.build.outputs.POSTING_NAME }} + path: ${{ steps.build.outputs.POSTING_PATH }} - name: Upload IPython uses: actions/upload-artifact@v4 @@ -134,7 +134,7 @@ jobs: draft: true files: | ${{ steps.build.outputs.ALIENS_PATH }} - ${{ steps.build.outputs.TEXTUAL_PATH }} + ${{ steps.build.outputs.POSTING_PATH }} ${{ steps.build.outputs.IPYTHON_PATH }} ${{ steps.build.outputs.MANDELBROT_PATH }} ${{ steps.build.outputs.MINESWEEPER_PATH }} diff --git a/README.md b/README.md index a93f9b9..45b0337 100644 --- a/README.md +++ b/README.md @@ -76,17 +76,20 @@ without `pyproject.toml` would be: packaged minesweeper.sh 'pip install .' 'python -m minesweeper' ./example/minesweeper ``` -### Textual (TUI) Demo +### Posting (TUI based API testing app) + +Posting is a Postman alternative that runs entirely in the terminal. A perfect +candidate to build an executable out of! Since the dependencies themselves contain all the source code needed, you can skip the last argument. With this, no other files will be packaged other than what is produced in the build step. ```bash -packaged ./textual.sh 'pip install textual' 'python -m textual' +packaged ./posting.sh 'pip install posting' 'posting' ``` -This will simply package the `textual` library's own demo into a single file. +This will simply package the `posting` app into a single file. ### Aliens (pygame)