Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 9 additions & 7 deletions .github/workflows/build-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@v5

- name: Set up Python
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: '3.11'

Expand All @@ -65,15 +65,17 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@v5

- name: Set up Python
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: '3.11'

- name: Install requirements
run: pip install -r requirements-dev.txt
run: |
pip install typer-invoke
inv pip install dev

- name: Build app
run: inv build.app
Expand All @@ -89,7 +91,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@v5

- name: Install libEGL
# Implementation of the EGL (Embedded-Systems Graphics Library) API.
Expand All @@ -99,7 +101,7 @@ jobs:
sudo apt-get install -y libegl1-mesa

- name: Set up Python
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: '3.11'

Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,17 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@v5

- name: Set up Python
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: '3.12'

- name: Install requirements
run: pip install -U -r requirements-docs.txt
run: |
pip install typer-invoke
inv pip install docs

- name: Deploy docs
run: mkdocs gh-deploy --force
8 changes: 5 additions & 3 deletions .github/workflows/linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,17 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@v5

- name: Set up Python
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: '3.11'

- name: Install requirements
run: pip install -r requirements-dev.txt
run: |
pip install typer-invoke
inv pip install dev

- name: isort
run: isort .
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,17 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@v5

- name: Set up Python
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: '3.11'

- name: Install requirements
run: pip install -r requirements-dev.txt
run: |
pip install typer-invoke
inv pip install dev

- name: Set git user
run: |
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
name: Python ${{ matrix.python-version }}
steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@v5

- name: Install libEGL (Linux only)
# Implementation of the EGL (Embedded-Systems Graphics Library) API.
Expand All @@ -24,14 +24,14 @@ jobs:
if: runner.os == 'Linux'

- name: Set up Python
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- name: Install requirements
run: |
python -m pip install -U pip
python -m pip install -r requirements.txt -r requirements-dev.txt
pip install typer-invoke
inv pip install dev
- name: Run tests on Linux and Mac
# Test folder(s) configured in `pyproject.toml`
# Skip Windows OS tests
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ This page doesn't go into how to do that.

Install the development packages:
```
python -m pip install -r requirements-dev.txt
pip typer-invoke && inv pip sync
```

This project uses [pyinvoke](https://www.pyinvoke.org/) to facilitate common tasks.
This project uses [typer-invoke](https://github.com/joaonc/typer-invoke) to facilitate common tasks.
For a list of tasks:
```
inv --list
inv --help
```

## Licensing
Expand Down
4 changes: 4 additions & 0 deletions admin/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
from pathlib import Path

PROJECT_ROOT = Path(__file__).parents[1]
SOURCE_DIR = PROJECT_ROOT / 'src'
Loading
Loading