From 0326d76cfb37255585d9485891a1e833a368683e Mon Sep 17 00:00:00 2001 From: Paul Craven Date: Sun, 25 Sep 2022 09:24:56 -0500 Subject: [PATCH 1/3] Remove print statement in example. --- arcade/examples/maze_recursive.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/arcade/examples/maze_recursive.py b/arcade/examples/maze_recursive.py index 807161a78b..b63b525c0f 100644 --- a/arcade/examples/maze_recursive.py +++ b/arcade/examples/maze_recursive.py @@ -241,9 +241,7 @@ def setup(self): self.view_bottom = 0 def on_draw(self): - """ - Render the screen. - """ + """ Render the screen. """ # This command has to happen before we start drawing self.clear() From d30e4a1b09c0a0479f1a2165825b2c5075835c20 Mon Sep 17 00:00:00 2001 From: Paul Craven Date: Sun, 25 Sep 2022 11:44:15 -0500 Subject: [PATCH 2/3] Work on GitHub action for deployment. --- .github/workflows/push_build_to_test_pypi.yml | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/push_build_to_test_pypi.yml diff --git a/.github/workflows/push_build_to_test_pypi.yml b/.github/workflows/push_build_to_test_pypi.yml new file mode 100644 index 0000000000..d13d89978a --- /dev/null +++ b/.github/workflows/push_build_to_test_pypi.yml @@ -0,0 +1,36 @@ +name: Distribute build to PyPi Test + +on: + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - uses: actions/setup-python@v2 + with: + python-version: 3.10 + + - name: "Installs and upgrades pip, installs other dependencies and installs the package from setup.py" + run: | + # Upgrade pip + python3 -m pip install --upgrade pip + python3 -m pip install setuptools wheel twine + python3 -m pip install pyogg pymunk + python3 -m pip install -e .[dev] + + # Install the package from setup.py + python3 setup.py install + + # Upload to TestPyPI + - name: Build and Upload to TestPyPI + run: | + python3 setup.py sdist bdist_wheel + python3 -m twine upload dist/* + env: + TWINE_USERNAME: __token__ + TWINE_PASSWORD: ${{ secrets.TWINE_TEST_TOKEN }} + TWINE_REPOSITORY: testpypi \ No newline at end of file From d0efeda3b47d77b2ca89b20b3a4e2106d9cf2029 Mon Sep 17 00:00:00 2001 From: Paul Craven Date: Sun, 25 Sep 2022 12:30:57 -0500 Subject: [PATCH 3/3] Work on action for doing releases --- .github/workflows/push_build_to_test_pypi.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/push_build_to_test_pypi.yml b/.github/workflows/push_build_to_test_pypi.yml index d13d89978a..adc28eda29 100644 --- a/.github/workflows/push_build_to_test_pypi.yml +++ b/.github/workflows/push_build_to_test_pypi.yml @@ -4,17 +4,18 @@ on: workflow_dispatch: jobs: - build: + deploy: + runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - - uses: actions/setup-python@v2 + - uses: actions/checkout@v3 + - name: Set up Python + uses: actions/setup-python@v3 with: - python-version: 3.10 + python-version: 3.x - - name: "Installs and upgrades pip, installs other dependencies and installs the package from setup.py" + - name: Install dependencies run: | # Upgrade pip python3 -m pip install --upgrade pip