Skip to content

Commit fd532e8

Browse files
committed
Create reproducable
Signed-off-by: Bernát Gábor <[email protected]>
0 parents  commit fd532e8

File tree

5 files changed

+48
-0
lines changed

5 files changed

+48
-0
lines changed

.github/workflows/test.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: github pages
2+
on:
3+
push:
4+
branches:
5+
- main
6+
7+
jobs:
8+
test:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Install the latest version of uv
12+
uses: astral-sh/setup-uv@v2
13+
with:
14+
enable-cache: true
15+
github-token: ${{ secrets.GITHUB_TOKEN }}
16+
- name: setup python for tox
17+
uses: actions/setup-python@v5
18+
with:
19+
python-version: "3.12"
20+
- uses: actions/checkout@v4
21+
- run: uv venv -p 3.12 --seed
22+
- run: uv pip install .
23+
continue-on-error: true
24+
- run: .venv/bin/pip install .

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.venv
2+
__pycache__

build.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import sys
2+
3+
4+
def prepare_metadata_for_build_wheel(metadata_directory, config_settings=None):
5+
print(sys.executable)
6+
from ruff.__main__ import find_ruff_bin
7+
raise RuntimeError(find_ruff_bin())
8+
9+
10+
11+
def build_wheel(wheel_directory, config_settings=None, metadata_directory=None): ...
12+
def build_sdist(sdist_directory, config_settings=None): ...

pyproject.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[build-system]
2+
build-backend = "build"
3+
requires = [
4+
"ruff",
5+
]
6+
backend-path = [
7+
".",
8+
]

run.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
uv venv -p 3.12 --seed --clear
2+
.venv/bin/pip install .

0 commit comments

Comments
 (0)