Skip to content

Commit 2bd2a6c

Browse files
committed
add Makefile with reproducible build command
1 parent c576432 commit 2bd2a6c

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ jobs:
2121
with:
2222
python-version: "3.10"
2323
- name: Install build frontend
24-
run: pip install "build>=0.9,<2"
24+
run: grep "^build==" requirements-dev.txt | xargs pip install
2525
- name: Build
26-
run: python -m build
26+
run: make build
2727
- name: Upload as build artifact
2828
uses: actions/upload-artifact@v3
2929
with:

Makefile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
build:
2+
env SOURCE_DATE_EPOCH="$(git show -s --format=%ct)" python3 -m build
3+
4+
check:
5+
./check.sh
6+
7+
test:
8+
python3 -m tests
9+
python -m examples.test

requirements-dev.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# building
2+
build==1.2.1
3+
14
# formatting and fixing
25
autoflake==2.*
36
black==24.*

0 commit comments

Comments
 (0)