Skip to content

Commit e242007

Browse files
committed
update dependencies/ switch to uv
1 parent 3aac0c4 commit e242007

File tree

4 files changed

+624
-26
lines changed

4 files changed

+624
-26
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -21,36 +21,18 @@ jobs:
2121
# Sequence of tasks that will be executed as part of the job
2222
steps:
2323
# Checks-out repository under $GITHUB_WORKSPACE, so the job can access it
24-
- uses: actions/checkout@v4
24+
- uses: actions/checkout@v6
2525

26-
# Run using Python 3.8 for consistency and aiohttp
27-
- name: Set up Python 3.12
28-
uses: actions/setup-python@v5
26+
# Set up UV to manage Python versions
27+
- name: Install uv and set python version
28+
uses: astral-sh/setup-uv@v7
2929
with:
30+
enable-cache: true
3031
python-version: '3.12'
31-
architecture: 'x64'
32-
33-
# Cache dependencies. From:
34-
# https://github.com/actions/cache/blob/master/examples.md#python---pip
35-
- uses: actions/cache@v4
36-
with:
37-
path: ~/.cache/pip
38-
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
39-
restore-keys: |
40-
${{ runner.os }}-pip-
41-
42-
43-
# Install dependencies with `pip`
44-
- name: Install requirements
45-
run: |
46-
python3 -m pip install --upgrade pip setuptools wheel
47-
python3 -m pip install -r requirements.txt
4832

4933
# Generate all statistics images
5034
- name: Generate images
51-
run: |
52-
python3 --version
53-
python3 generate_images.py
35+
run: uv run generate_images.py
5436
env:
5537
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
5638
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

pyproject.toml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[project]
2+
name = "github-stats-transparent"
3+
version = "0.1.0"
4+
description = "Add your description here"
5+
readme = "README.md"
6+
requires-python = ">=3.12"
7+
dependencies = [
8+
"aiohttp>=3.13.2",
9+
"requests>=2.32.5",
10+
]

requirements.txt

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)