Skip to content

Commit b0ac02a

Browse files
committed
Reinit
1 parent 39c89f2 commit b0ac02a

File tree

10 files changed

+33
-290
lines changed

10 files changed

+33
-290
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: ca3e4a0
2+
_commit: 788b2a2
33
_src_path: https://github.com/python-project-templates/base.git
44
add_docs: true
55
add_extension: rustjswasm

.github/workflows/build.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ jobs:
3131
matrix:
3232
os: [ubuntu-latest, macos-latest, windows-latest]
3333
python-version: ["3.9"]
34+
cibuildwheel: ["cp39"]
3435
node-version: [20.x]
3536

3637
steps:
@@ -51,6 +52,7 @@ jobs:
5152

5253
- name: Lint
5354
run: make lint
55+
if: matrix.os == 'ubuntu-latest'
5456

5557
- name: Checks
5658
run: make checks
@@ -67,7 +69,7 @@ jobs:
6769
with:
6870
name: test-results-${{ matrix.os }}-${{ matrix.python-version }}
6971
path: '**/junit.xml'
70-
if: ${{ always() }}
72+
if: matrix.os == 'ubuntu-latest'
7173

7274
- name: Publish Unit Test Results
7375
uses: EnricoMi/publish-unit-test-result-action@v2
@@ -92,6 +94,8 @@ jobs:
9294
make dist-py-sdist
9395
make dist-py-wheel
9496
make dist-check
97+
env:
98+
CIBW_BUILD: "${{ matrix.cibuildwheel }}-manylinux*"
9599
if: matrix.os == 'ubuntu-latest'
96100

97101
- name: Make dist

.github/workflows/docs.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ jobs:
1515
- uses: actions-ext/python/setup@main
1616
- uses: actions-ext/rust/setup@main
1717
- uses: actions-ext/node/setup@main
18+
- run: make develop
1819
- run: uv pip install .
1920
- run: uv pip install yardang
2021
- run: yardang build

.prettierignore

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

Cargo.lock

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

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -159,24 +159,24 @@ major: ## bump a major version
159159
########
160160
.PHONY: dist-py-wheel dist-py-sdist dist-rs dist-check dist publish
161161

162-
dist-py-wheel: # build python wheel
162+
dist-py-wheel: ## build python wheel
163163
python -m cibuildwheel --output-dir dist
164164

165-
dist-py-sdist: # build python sdist
165+
dist-py-sdist: ## build python sdist
166166
python -m build --sdist -o dist
167167

168168
dist-js: # build js dists
169169
cd js; pnpm pack
170170

171-
dist-rs: # build rust dists
171+
dist-rs: ## build rust dists
172172
make -C rust dist
173173

174174
dist-check: ## run python dist checker with twine
175175
python -m twine check dist/*
176176

177177
dist: clean build dist-rs dist-js dist-py-wheel dist-py-sdist dist-check ## build all dists
178178

179-
publish: dist # publish python assets
179+
publish: dist ## publish python assets
180180

181181
#########
182182
# CLEAN #

js/.prettierignore

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

js/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,17 @@
3434
"build": "npm-run-all build:rust build:wasm-bindgen build:prod",
3535
"clean": "rm -rf dist lib playwright-report ../python_template_rust/extension",
3636
"dev": "npm-run-all -p start watch",
37-
"lint:js": "prettier --check \"src/**/*.{js,ts,jsx,tsx,less,css}\" \"tests/**/*\" \"*.mjs\" \"*.json\"",
37+
"lint:js": "prettier --check \"src/**/*.{js,ts,jsx,tsx,less,css}\" \"tests/**/*.{js,ts,jsx,tsx}\" \"*.mjs\" \"*.json\"",
3838
"lint:rust": "cargo clippy --all-features && cargo fmt --all -- --check",
3939
"lint": "npm-run-all lint:*",
40-
"fix:js": "prettier --write \"src/**/*.{js,ts,jsx,tsx}\" \"tests/**/*\" \"*.mjs\" \"*.json\"",
40+
"fix:js": "prettier --write \"src/**/*.{js,ts,jsx,tsx,less,css}\" \"tests/**/*.{js,ts,jsx,tsx}\" \"*.mjs\" \"*.json\"",
4141
"fix:rust": "cargo fmt --all",
4242
"fix": "npm-run-all fix:*",
4343
"preinstall": "npx only-allow pnpm",
4444
"prepack": "pnpm run build",
4545
"start": "http-server -p 3000 -o examples/",
4646
"start:tests": "http-server -p 3000 ",
47-
"test:js": "TZ=UTC playwright test",
47+
"test:js": "playwright test",
4848
"test:rust": "cargo test -- --show-output",
4949
"test": "npm-run-all test:rust test:js",
5050
"watch": "nodemon --watch src -e ts,less,html --exec \"pnpm build:debug\""

0 commit comments

Comments
 (0)