Skip to content

Commit 3bca4d8

Browse files
authored
Merge pull request #59 from python-project-templates/copier-update-2026-04-02T23-46-16
Update from copier (2026-04-02T23:46:16)
2 parents f3000b3 + c0792ce commit 3bca4d8

File tree

3 files changed

+39
-35
lines changed

3 files changed

+39
-35
lines changed

.copier-answers.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Changes here will be overwritten by Copier
2-
_commit: 34c631c
2+
_commit: fead162
33
_src_path: https://github.com/python-project-templates/base.git
44
add_docs: true
55
add_extension: cpp

.github/workflows/build.yaml

Lines changed: 31 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -84,33 +84,6 @@ jobs:
8484
run: make checks
8585
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.11'
8686

87-
- name: Install build dependencies
88-
run: pip install cibuildwheel
89-
90-
- name: Build (Linux)
91-
run: make build-cibw
92-
env:
93-
CIBW_BUILD: "${{ matrix.cibuildwheel }}-manylinux*"
94-
CIBW_BUILD_VERBOSITY: 3
95-
if: matrix.os == 'ubuntu-latest'
96-
97-
- name: Build (Macos)
98-
run: make build-cibw
99-
env:
100-
CIBW_BUILD: "${{ matrix.cibuildwheel }}-macos*"
101-
CIBW_BUILD_VERBOSITY: 3
102-
if: matrix.os == 'macos-latest'
103-
104-
- name: Build (Windows)
105-
run: |
106-
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
107-
make build-cibw
108-
shell: cmd
109-
env:
110-
CIBW_BUILD: "${{ matrix.cibuildwheel }}-win_amd64"
111-
CIBW_BEFORE_ALL: call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
112-
if: matrix.os == 'windows-latest'
113-
11487
- name: Test
11588
run: make coverage
11689

@@ -132,6 +105,37 @@ jobs:
132105
with:
133106
token: ${{ secrets.CODECOV_TOKEN }}
134107

108+
- name: Install build dependencies
109+
run: pip install cibuildwheel
110+
111+
- name: Make dist (Linux)
112+
run: |
113+
make dist-py-sdist
114+
make dist-py-wheel
115+
make dist-check
116+
env:
117+
CIBW_BUILD: "${{ matrix.cibuildwheel }}-manylinux*"
118+
CIBW_BUILD_VERBOSITY: 3
119+
if: matrix.os == 'ubuntu-latest'
120+
121+
- name: Make dist (Macos)
122+
run: |
123+
make dist-py-wheel
124+
env:
125+
CIBW_BUILD: "${{ matrix.cibuildwheel }}-macos*"
126+
CIBW_BUILD_VERBOSITY: 3
127+
if: matrix.os == 'macos-latest'
128+
129+
- name: Make dist (Windows)
130+
run: |
131+
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
132+
make dist-py-wheel
133+
shell: cmd
134+
env:
135+
CIBW_BUILD: "${{ matrix.cibuildwheel }}-win_amd64"
136+
CIBW_BEFORE_ALL: call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
137+
if: matrix.os == 'windows-latest'
138+
135139
- uses: actions/upload-artifact@v7
136140
with:
137141
name: dist-${{matrix.os}}-${{matrix.python-version}}

Makefile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ build-py:
1212
build-cpp:
1313
python -m hatchling build --hooks-only
1414

15-
build-cibw:
16-
python -m cibuildwheel --output-dir dist
17-
1815
build: build-cpp build-py ## build the project
1916

2017
.PHONY: install
@@ -114,15 +111,18 @@ major: ## bump a major version
114111
########
115112
# DIST #
116113
########
117-
.PHONY: dist dist-py dist-check publish
114+
.PHONY: dist-py-wheel dist-py-sdist dist-check dist publish
115+
116+
dist-py-wheel: ## build python wheel
117+
python -m cibuildwheel --output-dir dist
118118

119-
dist-py: ## build python dists
120-
python -m build -w -s
119+
dist-py-sdist: ## build python sdist
120+
python -m build --sdist -o dist
121121

122122
dist-check: ## run python dist checker with twine
123123
python -m twine check dist/*
124124

125-
dist: clean build dist-js dist-py dist-check ## build all dists
125+
dist: clean build dist-py-wheel dist-py-sdist dist-check ## build all dists
126126

127127
publish: dist ## publish python assets
128128

0 commit comments

Comments
 (0)